Devicetree
 help / color / mirror / Atom feed
* [PATCH 00/18] iio: adc: ad4170-4: Fixes and AD4171-8/AD4190-8/AD4195-8 support
@ 2026-12-03 15:19 Janani Sunil
  2026-12-03 15:19 ` [PATCH 01/18] dt-bindings: iio: adc: ad4170-4: Restrict AD4170-4 only properties Janani Sunil
                   ` (17 more replies)
  0 siblings, 18 replies; 21+ messages in thread
From: Janani Sunil @ 2026-12-03 15:19 UTC (permalink / raw)
  To: Marcelo Schmitt, Nuno Sá, Michael Hennerich,
	Jonathan Cameron, David Lechner, Andy Shevchenko, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Ana-Maria Cusco
  Cc: Conor Dooley, linux-iio, linux-kernel, linux, devicetree,
	Janani Sunil, Janani Sunil, Jonathan Cameron

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@analog.com>
---
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@analog.com>


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2026-12-03 16:40 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 15:19 [PATCH 00/18] iio: adc: ad4170-4: Fixes and AD4171-8/AD4190-8/AD4195-8 support Janani Sunil
2026-12-03 15:19 ` [PATCH 01/18] dt-bindings: iio: adc: ad4170-4: Restrict AD4170-4 only properties Janani Sunil
2026-12-03 15:19 ` [PATCH 02/18] dt-bindings: iio: adc: ad4170-4: Restrict channel inputs to valid codes Janani Sunil
2026-12-03 15:19 ` [PATCH 03/18] dt-bindings: iio: adc: ad4170-4: Allow running from the internal oscillator only Janani Sunil
2026-12-03 15:19 ` [PATCH 04/18] dt-bindings: iio: adc: ad4170-4: Fix the voltage bias description Janani Sunil
2026-12-03 15:19 ` [PATCH 05/18] iio: adc: ad4170-4: Fix out-of-bounds accesses to pins_fn[] Janani Sunil
2026-12-03 15:19 ` [PATCH 06/18] iio: adc: ad4170-4: Fix voltage bias programming Janani Sunil
2026-12-03 15:19 ` [PATCH 07/18] iio: adc: ad4170-4: Fix overflow in sample rate fractional part Janani Sunil
2026-12-03 16:22   ` sashiko-bot
2026-12-03 15:19 ` [PATCH 08/18] iio: adc: ad4170-4: Fix output data rate on AD4190-4 and AD4195-4 Janani Sunil
2026-12-03 16:40   ` sashiko-bot
2026-12-03 15:19 ` [PATCH 09/18] iio: adc: ad4170-4: Fix filter_fs adjustment on filter type change Janani Sunil
2026-12-03 15:19 ` [PATCH 10/18] iio: adc: ad4170-4: Fix lock order inversion with IIO direct mode Janani Sunil
2026-12-03 15:19 ` [PATCH 11/18] iio: adc: ad4170-4: Fix sinc5 filter FILTER_FS range on AD4190-4 and AD4195-4 Janani Sunil
2026-12-03 15:19 ` [PATCH 12/18] iio: adc: ad4170-4: Do not drive XTAL2 when using the internal clock Janani Sunil
2026-12-03 15:19 ` [PATCH 13/18] iio: adc: ad4170-4: Restrict current sources and AC excitation to supported parts Janani Sunil
2026-12-03 15:19 ` [PATCH 14/18] iio: adc: ad4170-4: Require equal chopped excitation currents Janani Sunil
2026-12-03 15:19 ` [PATCH 15/18] iio: adc: ad4170-4: Fix channel count with 15 external channels Janani Sunil
2026-12-03 15:19 ` [PATCH 16/18] iio: adc: ad4170-4: Drop ad4170_iout_pin_tbl Janani Sunil
2026-12-03 15:19 ` [PATCH 17/18] dt-bindings: iio: adc: ad4170-4: Add AD4171-8, AD4190-8 and AD4195-8 Janani Sunil
2026-12-03 15:19 ` [PATCH 18/18] iio: adc: ad4170-4: Add support for " Janani Sunil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox