[PATCH 00/18] iio: adc: ad4170-4: Fixes and AD4171-8/AD4190-8/AD4195-8 support
From: Janani Sunil
Date: Thu Dec 03 2026 - 10:20:47 EST
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.
Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>
---
Janani Sunil (18):
dt-bindings: iio: adc: ad4170-4: Restrict AD4170-4 only properties
dt-bindings: iio: adc: ad4170-4: Restrict channel inputs to valid codes
dt-bindings: iio: adc: ad4170-4: Allow running from the internal oscillator only
dt-bindings: iio: adc: ad4170-4: Fix the voltage bias description
iio: adc: ad4170-4: Fix out-of-bounds accesses to pins_fn[]
iio: adc: ad4170-4: Fix voltage bias programming
iio: adc: ad4170-4: Fix overflow in sample rate fractional part
iio: adc: ad4170-4: Fix output data rate on AD4190-4 and AD4195-4
iio: adc: ad4170-4: Fix filter_fs adjustment on filter type change
iio: adc: ad4170-4: Fix lock order inversion with IIO direct mode
iio: adc: ad4170-4: Fix sinc5 filter FILTER_FS range on AD4190-4 and AD4195-4
iio: adc: ad4170-4: Do not drive XTAL2 when using the internal clock
iio: adc: ad4170-4: Restrict current sources and AC excitation to supported parts
iio: adc: ad4170-4: Require equal chopped excitation currents
iio: adc: ad4170-4: Fix channel count with 15 external channels
iio: adc: ad4170-4: Drop ad4170_iout_pin_tbl
dt-bindings: iio: adc: ad4170-4: Add AD4171-8, AD4190-8 and AD4195-8
iio: adc: ad4170-4: Add support for AD4171-8, AD4190-8 and AD4195-8
.../devicetree/bindings/iio/adc/adi,ad4170-4.yaml | 193 +++++++++++++--
drivers/iio/adc/Kconfig | 5 +-
drivers/iio/adc/ad4170-4.c | 265 +++++++++++++--------
3 files changed, 349 insertions(+), 114 deletions(-)
---
base-commit: fba506008a5b548ad2708bc2765a039cb00a47ab
change-id: 20261203-ad419x-release-93554b60f924
Best regards,
--
Janani Sunil <janani.sunil@xxxxxxxxxx>