From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: dumitru.ceclan@analog.com
Cc: Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Jonathan Cameron <jic23@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
David Lechner <dlechner@baylibre.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Dumitru Ceclan <mitrutzceclan@gmail.com>,
Conor Dooley <conor.dooley@microchip.com>,
Nuno Sa <nuno.sa@analog.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH v7 0/9] Add support for AD411x
Date: Sat, 13 Jul 2024 12:11:35 +0200 [thread overview]
Message-ID: <466a7ea3-52be-43d7-920e-c991f8c4f30a@linaro.org> (raw)
In-Reply-To: <20240607-ad4111-v7-0-97e3855900a0@analog.com>
On 07/06/2024 16:53, Dumitru Ceclan via B4 Relay wrote:
> This patch series adds support for the Analog Devices AD4111, AD4112,
> AD4114, AD4115, AD4116 within the existing AD7173 driver.
>
> The AD411X family encompasses a series of low power, low noise, 24-bit,
> sigma-delta analog-to-digital converters that offer a versatile range of
> specifications. They integrate an analog front end suitable for processing
> fully differential/single-ended and bipolar voltage inputs.
>
> Particularities of the models:
> - All ADCs have inputs with a precision voltage divider with a division
> ratio of 10.
> - AD4116 has 5 low level inputs without a voltage divider.
> - AD4111 and AD4112 support current inputs (0 mA to 20 mA) using a 50ohm
> shunt resistor.
>
> Discussions from this patch series have concluded with:
> -Datasheets mention single-ended and pseudo differential capabilities by
> the means of connecting the negative input of a differential pair (IN-)
> to a constant voltage supply and letting the positive input fluctuate.
> This is not a special operating mode, it is a capability of the
> differential channels to also measure such signals.
>
> -Single-ended and pseudo differential do not need any specific
> configuration and cannot be differentiated from differential usage by
> the driver side =>
> offer adi,channel-type attribute to flag the usage of the channel
>
> -VINCOM is described as a dedicated pin for single-ended channels but as
> seen in AD4116, it is a normal input connected to the cross-point
> multiplexer (VIN10, VINCOM (single-ended or differential pair)).
> This does not mean full functionality in any configuration:
> AD4111:"If any two voltage inputs are paired in a configuration other
> than what is described in this data sheet, the accuracy of the device
> cannot be guaranteed".
>
> -ADCIN15 input pin from AD4116 is specified as the dedicated pin for
> pseudo-differential but from the datasheet it results that this pin is
> also able to measure single-ended and fully differential channels
> ("ADCIN11, ADCIN15. (pseudo differential or differential pair)";
> "An example is to connect the ADCIN15 pin externally to the AVSS
> pin in a single-ended configuration")
>
> As such, detecting the type of usage of a channel is not possible and
> will be the responsibility of the user to specify.
> If the user has connected a non 0V (in regards to AVSS) supply to
> the negative input pin of a channel in a pseudo differential
> configuration, the offset of the measurement from AVSS will not be known
> from the driver and will need to be measured by other means.
>
> Datasheets:
> https://www.analog.com/media/en/technical-documentation/data-sheets/AD4111.pdf
> https://www.analog.com/media/en/technical-documentation/data-sheets/AD4112.pdf
> https://www.analog.com/media/en/technical-documentation/data-sheets/AD4114.pdf
> https://www.analog.com/media/en/technical-documentation/data-sheets/AD4115.pdf
> https://www.analog.com/media/en/technical-documentation/data-sheets/AD4116.pdf
>
> This series depends on patches:
> (iio: adc: ad7173: Use device_for_each_child_node_scoped() to simplify error paths.)
> https://lore.kernel.org/all/20240330190849.1321065-6-jic23@kernel.org
> (dt-bindings: iio: adc: Add single-channel property)
> https://lore.kernel.org/linux-iio/20240514120222.56488-5-alisa.roman@analog.com/
>
> And patch series:
> (AD7173 fixes)
> https://lore.kernel.org/all/20240521-ad7173-fixes-v1-0-8161cc7f3ad1@analog.com/
Three dependencies? That's making it untestable.
Best regards,
Krzysztof
prev parent reply other threads:[~2024-07-13 10:11 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-07 14:53 [PATCH v7 0/9] Add support for AD411x Dumitru Ceclan via B4 Relay
2024-06-07 14:53 ` [PATCH v7 1/9] dt-bindings: iio: adc: Add common-mode-channel property Dumitru Ceclan via B4 Relay
2024-06-07 14:53 ` [PATCH v7 2/9] dt-bindings: adc: ad7173: add support for ad411x Dumitru Ceclan via B4 Relay
2024-06-07 14:53 ` [PATCH v7 3/9] iio: adc: ad_sigma_delta: add disable_one callback Dumitru Ceclan via B4 Relay
2024-06-07 14:53 ` [PATCH v7 4/9] iio: adc: ad7173: refactor channel configuration parsing Dumitru Ceclan via B4 Relay
2024-06-07 14:53 ` [PATCH v7 5/9] iio: adc: ad7173: refactor ain and vref selection Dumitru Ceclan via B4 Relay
2024-06-10 7:23 ` Nuno Sá
2024-06-10 14:35 ` Nuno Sá
2024-06-07 14:53 ` [PATCH v7 6/9] iio: adc: ad7173: add support for special inputs Dumitru Ceclan via B4 Relay
2024-06-10 7:24 ` Nuno Sá
2024-06-07 14:53 ` [PATCH v7 7/9] iio: adc: ad7173: refactor device info structs Dumitru Ceclan via B4 Relay
2024-06-07 14:53 ` [PATCH v7 8/9] iio: adc: ad7173: document sampling frequency behaviour Dumitru Ceclan via B4 Relay
2024-06-07 14:53 ` [PATCH v7 9/9] iio: adc: ad7173: Add support for AD411x devices Dumitru Ceclan via B4 Relay
2024-06-10 7:27 ` Nuno Sá
2024-07-12 18:23 ` Rob Herring
2024-07-13 10:12 ` Krzysztof Kozlowski
2024-07-15 17:17 ` Ceclan, Dumitru
2024-07-16 6:31 ` Krzysztof Kozlowski
2024-07-22 7:14 ` Ceclan, Dumitru
2024-06-08 16:37 ` [PATCH v7 0/9] Add support for AD411x Jonathan Cameron
2024-06-13 18:30 ` Jonathan Cameron
2024-06-17 18:02 ` Jonathan Cameron
2024-06-10 13:40 ` David Lechner
2024-07-13 10:11 ` Krzysztof Kozlowski [this message]
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=466a7ea3-52be-43d7-920e-c991f8c4f30a@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=Michael.Hennerich@analog.com \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=dumitru.ceclan@analog.com \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mitrutzceclan@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).