From: Conor Dooley <conor@kernel.org>
To: Angelo Dureghello <adureghello@baylibre.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 4/5] dt-bindings: iio: adc: adi,ad7606: add gain calibration support
Date: Fri, 2 May 2025 17:30:14 +0100 [thread overview]
Message-ID: <20250502-yarn-answering-f395beaa1440@spud> (raw)
In-Reply-To: <20250502-wip-bl-ad7606-calibration-v2-4-174bd0af081b@baylibre.com>
[-- Attachment #1: Type: text/plain, Size: 2431 bytes --]
On Fri, May 02, 2025 at 03:27:01PM +0200, Angelo Dureghello wrote:
> From: Angelo Dureghello <adureghello@baylibre.com>
>
> Add gain calibration support by a per-channel resistor value.
>
> Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
> ---
> .../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/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml
> index 29f12d650442b8ff2eb455306ce59a0e87867ddd..d4b8ea51f60be367e79a4db18d932cbca9c7dc91 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 bipolar
> single-ended.
>
> + adi,rfilter-ohms:
> + description:
> + For ADCs that supports gain calibration, this property must be set to
> + the value of the external RFilter resistor. Proper gain error
> + correction is applied based on this value.
> + default: 0
> + minimum: 0
Perhaps obvious to those working on these ADCs, but this is a series
resistor so a default of zero for the existing devices makes sense.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
> + maximum: 65536
> +
> required:
> - reg
> - bipolar
> @@ -256,6 +265,25 @@ allOf:
> properties:
> adi,oversampling-ratio-gpios: false
>
> + - 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 = <8>;
> diff-channels = <8 8>;
> bipolar;
> + adi,rfilter-ohms = <2048>;
> };
>
> };
>
> --
> 2.49.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-05-02 16:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-02 13:26 [PATCH v2 0/5] iio: adc: add ad7606 calibration support Angelo Dureghello
2025-05-02 13:26 ` [PATCH v2 1/5] Documentation: ABI: IIO: add calibconv_delay documentation Angelo Dureghello
2025-05-04 15:16 ` Jonathan Cameron
2025-05-04 19:48 ` David Lechner
2025-05-05 13:28 ` Jonathan Cameron
2025-05-02 13:26 ` [PATCH v2 2/5] iio: core: add ADC delay calibration definition Angelo Dureghello
2025-05-02 13:27 ` [PATCH v2 3/5] iio: adc: ad7606: add offset and phase calibration support Angelo Dureghello
2025-05-02 13:39 ` Andy Shevchenko
2025-05-06 12:59 ` Angelo Dureghello
2025-05-07 14:45 ` Andy Shevchenko
2025-05-06 14:46 ` Angelo Dureghello
2025-05-07 14:46 ` Andy Shevchenko
2025-05-02 19:04 ` David Lechner
2025-05-04 8:30 ` Nuno Sá
2025-05-04 8:34 ` Nuno Sá
2025-05-04 15:21 ` Jonathan Cameron
2025-05-02 13:27 ` [PATCH v2 4/5] dt-bindings: iio: adc: adi,ad7606: add gain " Angelo Dureghello
2025-05-02 16:30 ` Conor Dooley [this message]
2025-05-02 18:54 ` David Lechner
2025-05-02 13:27 ` [PATCH v2 5/5] iio: adc: ad7606: " Angelo Dureghello
2025-05-02 13:36 ` Andy Shevchenko
2025-05-02 19:04 ` David Lechner
2025-05-04 8:35 ` Nuno Sá
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250502-yarn-answering-f395beaa1440@spud \
--to=conor@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=adureghello@baylibre.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox