Re: [PATCH 00/18] iio: adc: ad4170-4: Fixes and AD4171-8/AD4190-8/AD4195-8 support
From: Andy Shevchenko
Date: Thu Dec 03 2026 - 12:18:25 EST
On Thu, Dec 03, 2026 at 04:19:40PM +0100, Janani Sunil wrote:
> This series fixes several issues in the existing AD4170-4 driver and
> binding. The series also adds support for the eight differential input
> AD4171-8, AD4190-8 and AD4195-8.
>
> Datasheets:
> https://www.analog.com/media/en/technical-documentation/data-sheets/ad4171-8.pdf
> https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-8.pdf
> https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-8.pdf
>
> **Device Overview:**
> The AD4171-8, AD4190-8 and AD4195-8 are 24-bit, low noise, multichannel
> precision sigma-delta ADCs with an integrated PGA, sinc3/sinc5/sinc5+avg
> digital filters, internal 16MHz oscillator, on-chip temperature sensor,
> bias voltage generator, low-side power switches and four GPIOs.
>
> Compared to the 4 differential input parts, they double the analog front
> end with 16 analog inputs, AIN0 to AIN15, plus a dedicated AINCOM pin,
> configurable as 8 differential or 16 single-ended/pseudo-differential
> inputs.
>
> **Patch Summary:**
> Patches 1-15 are fixes and are placed first so they can be applied
> independently of the new device support:
> 1. Restrict DAC, crystal, extra excitation current and GPIO AC
> excitation properties to AD4170-4 in the binding.
> 2. Restrict single-channel, common-mode-channel and excitation pin
> inputs to valid codes in the binding.
> 3. Allow running from the internal oscillator only in the binding.
> 4. Fix the voltage bias description in the binding.
> 5. Fix out-of-bounds accesses to pins_fn[].
> 6. Fix voltage bias programming.
> 7. Fix an overflow in the sample rate fractional part.
> 8. Fix the output data rate on AD4190-4 and AD4195-4 (CLOCKDIV).
> 9. Fix filter_fs adjustment on filter type change.
> 10. Fix a lock order inversion between st->lock and IIO direct mode.
> 11. Fix the sinc5 FILTER_FS range on AD4190-4 and AD4195-4.
> 12. Do not drive XTAL2 (CLK on AD419x) when using the internal clock.
> 13. Restrict current sources and GPIO AC excitation to the parts that
> have them.
> 14. Require equal chopped excitation currents.
> 15. Fix the channel count with 15 external channels.
>
> Patches 16-18 add the new devices:
> 16. Replace ad4170_iout_pin_tbl with range checks (no functional change).
> 17. Add the AD4171-8, AD4190-8 and AD4195-8 binding.
> 18. Add driver support for AD4171-8, AD4190-8 and AD4195-8.
>
> **Testing:**
> The driver was hardware tested on a Raspberry Pi 4 using the
> EVAL-AD4171-8ARDZ evaluation board, on a v6.12.y kernel with the AD4170-4
> driver and this series backported.
In this series and in the future try to preserve reversed xmas tree order.
Several patches in several places break that.
--
With Best Regards,
Andy Shevchenko