From nobody Tue Feb 10 06:59:07 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41E3923BF9F for ; Tue, 3 Jun 2025 14:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748961482; cv=none; b=rkqGD1Jc9jK4UoE8RPYUmzl6MGsr7EyiTCUyp3TzU35bIsj+1+U3AWmdiYWfvGlvWLeQa9clTHNDQeSMJuWRUFRf1hJkv23GNmt0Zx5PNPdCXH8BeDXsMwMgQQT2Agcmyduc5EtYIOzePPEeR/hya8dB+XdOOKfGgGCFDf5RnHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748961482; c=relaxed/simple; bh=NtotUFQE861trIH/6KVUMJlh1RHFkSekY2PpGsDNTzs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Tu6QycVcQ0Vc3PXexwV8BKvboIt065aKluUCS7gOnmydwyKocPi2RL9V5sEPp0QvJGu4Z/Fl/P+yep3L7eNlbt33CjEYi4xrg4WGp4u5awu6clkmg2+m90i7m1NODMgRpfuiSOL9D4jVt+0gh+ppf4zm2wmNm94Q94HiWLKCx4w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Xxwo/I0a; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Xxwo/I0a" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-442ea341570so39953135e9.1 for ; Tue, 03 Jun 2025 07:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1748961478; x=1749566278; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SSPYC82OHD2BI/YU/tjmuoLa3AQcRKZBypSGl/10x2A=; b=Xxwo/I0al5C88RlybEB/YPWsaflUQDk7jl1n3RmfMrpvE+KMYsIU6+ruMEAJ7kiPM4 HznLkJRP75jZymqi/fgdAHBttGeh5FHqPX3oMZ1uIcSD+IjJkt+x0Y1K6E9VFCNRSOLx gI9YY1I2ufn06dxocj3y47V+nPc/YbHZyONKnj8gFzRSoRHgXA/tHUY7oNUkpi/78/Ao CNi31ghrhpAr/3nOQtHEfiu7t5StD1vgQpkh52S3oPW6tXibzuVeWCXSqpDwxG46N3Sg p2hzJ0SzH+m32699Uz6DM7eraZ2TzjVFO/pwP8a/mRSma3SLXAUfdoyjxjxlaDdouMll f/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748961478; x=1749566278; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SSPYC82OHD2BI/YU/tjmuoLa3AQcRKZBypSGl/10x2A=; b=vpMY1Ntn7HB6WhQpTZpaCfXq9PotS6hOtIdP76TfKWxwM7GRGt2nY4xKg5AVsssj8Z 77rd9a+NzCZVhdcDFUJa/MrqxeXqxqKgxZdHosOemuQP/CHV0t0nOsOZdEGB5hJZbuwk qWCjDaGDF3lI9H4aCEZd1g750DsS6FlHsIaI5jTI4dq8MQ4erMRNLk8sjEoXmW6JS1Q3 Ka7n3NFzGI1qY7R7DhbxxOWbqDFFpQygkz8BXh7W54FUWf1q/Rn1DGKyCRov0/Y4Kqnl uIGX1DhQvhmD8EqVmcwsEtNES2rQv3I4a87pkJirjK0D1VxW5s546o0/OSCN6lSUwCXH Z5Dw== X-Forwarded-Encrypted: i=1; AJvYcCUa4k+xTcfMTnNeMMx8SF/zLDAB7asgpwgRVi+KycqRm73KlQLevh0mNc2a7SVmqsPUC40oPrL4+9A2UYs=@vger.kernel.org X-Gm-Message-State: AOJu0YwzLoBCQAKcHA5k/HVL9iI2tATUzaElBkw3oB45McWcsTSFkMIk uMzPSkuWwidDNUUeqbXUWdSQWkztH7U0Yu8vd5EOTo7zZ19Nl1/JxEtX9zeG1bIT4W0= X-Gm-Gg: ASbGncvPl+AZCpgUO+MewM0Xoa6L5X+JqioG8Ivk8TGw3mYaWTh2ItpICUHrnQkO6Ze /P7tScDa/uyTrb+S0OyKnZFvt+Z1Ld7w8yXdKWbJB868OwYVU6z7spnxgD5ijUouGnyVLt3tyhN eTXwgh31c4AiyvwtSGUIB9gBj3QkvbeJq8BsKRb1GfqWcXbX85QXUrijX34PXKD1yaTLdYJuONh lMinORitl8ZjHW0y9LPUVLLBJtxCJNlYhoyM8i+RPYI5VdAJJSas6umClEDKsMC8yL5fst2veJg SkqDtbs201n0q8qVgofV9gnBDRtV0m5y67VSGaof+LRYKrKYRhWv6yoTfMxu4UaoPmXDsbc2vbo qddxuLar4XdFLlHRvmEVNdq5UQkNFkPHA/tY= X-Google-Smtp-Source: AGHT+IE0ay3TaXzLDWAP/dNwd5fQ89r4ju7gAMCQZHoJLFzN5B7l/vO0UtTerMKUawT9fSdC1vHEFg== X-Received: by 2002:a05:600c:1553:b0:442:f482:c42d with SMTP id 5b1f17b1804b1-450d884316fmr166379835e9.9.1748961478419; Tue, 03 Jun 2025 07:37:58 -0700 (PDT) Received: from [192.168.0.2] (host-80-116-51-117.pool80116.interbusiness.it. [80.116.51.117]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-450d7f1afebsm164430945e9.0.2025.06.03.07.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jun 2025 07:37:58 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello Date: Tue, 03 Jun 2025 16:36:26 +0200 Subject: [PATCH v8 4/6] dt-bindings: iio: adc: adi,ad7606: add gain calibration support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250603-wip-bl-ad7606-calibration-v8-4-2371e7108f32@baylibre.com> References: <20250603-wip-bl-ad7606-calibration-v8-0-2371e7108f32@baylibre.com> In-Reply-To: <20250603-wip-bl-ad7606-calibration-v8-0-2371e7108f32@baylibre.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Hennerich , devicetree@vger.kernel.org, Angelo Dureghello , Conor Dooley X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2030; i=adureghello@baylibre.com; h=from:subject:message-id; bh=mK1GoQiX2hS20/yC/1czrPjfc5t1uAwSltJDkMx72Mc=; b=owGbwMvMwCXGf3bn1e/btlsznlZLYsiw56iwuL953qYdS3pm+n8y2ZR1oUZrgUK0r/GGPk8eh T1xsvxtHaUsDGJcDLJiiix1iREmobdDpZQXMM6GmcPKBDKEgYtTACYSGMvIsGSO+43EvYfSDwvb GopVfJmuv7TabHXM5f4pzpOlpeMuOjL8zz2rNDtAY9WeFb8zc+4ES1U4rv2S/yQpPIY9x0aYYRo 7BwA= X-Developer-Key: i=adureghello@baylibre.com; a=openpgp; fpr=703CDFAD8B573EB00850E38366D1CB9419AF3953 From: Angelo Dureghello Add gain calibration support by a per-channel resistor value. Acked-by: Conor Dooley Signed-off-by: Angelo Dureghello --- .../devicetree/bindings/iio/adc/adi,ad7606.yaml | 29 ++++++++++++++++++= ++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad7606.yaml index 29f12d650442b8ff2eb455306ce59a0e87867ddd..6926f5f090ad6bbbe7bfd9327dc= 5ae17dafcd1fd 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml @@ -204,6 +204,15 @@ patternProperties: considered a bipolar differential channel. Otherwise it is bipol= ar single-ended. =20 + adi,rfilter-ohms: + description: + For ADCs that supports gain calibration, this property must be s= et to + the value of the external RFilter resistor. Proper gain error + correction is applied based on this value. + default: 0 + minimum: 0 + maximum: 64512 + required: - reg - bipolar @@ -256,6 +265,25 @@ allOf: properties: adi,oversampling-ratio-gpios: false =20 + - if: + properties: + compatible: + contains: + enum: + - adi,ad7605-4 + - adi,ad7606-4 + - adi,ad7606-6 + - adi,ad7606-8 + - adi,ad7607 + - adi,ad7608 + - adi,ad7609 + - adi,ad7616 + then: + patternProperties: + "^channel@[0-9a-f]+$": + properties: + adi,rfilter-ohms: false + - if: properties: compatible: @@ -398,6 +426,7 @@ examples: reg =3D <8>; diff-channels =3D <8 8>; bipolar; + adi,rfilter-ohms =3D <2048>; }; =20 }; --=20 2.49.0