Skip to content

Commit 2ff7552

Browse files
acuscojic23
authored andcommitted
iio: adc: Add basic support for AD4170-4
The AD4170-4 is a multichannel, low noise, 24-bit precision sigma-delta analog to digital converter. The AD4170-4 design offers a flexible data acquisition solution with crosspoint multiplexed analog inputs, configurable ADC voltage reference inputs, ultra-low noise integrated PGA, digital filtering, wide range of configurable output data rates, internal oscillator and temperature sensor, four GPIOs, and integrated features for interfacing with load cell weigh scales, RTD, and thermocouple sensors. Add basic support for the AD4170-4 ADC with the following features: - Single-shot read. - Analog front end PGA configuration. - Differential and pseudo-differential input configuration. Signed-off-by: Ana-Maria Cusco <ana-maria.cusco@analog.com> Co-developed-by: Marcelo Schmitt <marcelo.schmitt@analog.com> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com> Link: https://patch.msgid.link/ce3fd150bd63a2aed6eb6fe59aad6d60c0f9fb67.1751895245.git.marcelo.schmitt@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent bb91bf7 commit 2ff7552

File tree

4 files changed

+1587
-0
lines changed

4 files changed

+1587
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,7 @@ L: linux-iio@vger.kernel.org
13981398
S: Supported
13991399
W: https://ez.analog.com/linux-software-drivers
14001400
F: Documentation/devicetree/bindings/iio/adc/adi,ad4170-4.yaml
1401+
F: drivers/iio/adc/ad4170-4.c
14011402

14021403
ANALOG DEVICES INC AD4695 DRIVER
14031404
M: Michael Hennerich <michael.hennerich@analog.com>

drivers/iio/adc/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ config AD4130
8484
To compile this driver as a module, choose M here: the module will be
8585
called ad4130.
8686

87+
88+
config AD4170_4
89+
tristate "Analog Device AD4170-4 ADC Driver"
90+
depends on SPI
91+
select REGMAP_SPI
92+
help
93+
Say yes here to build support for Analog Devices AD4170-4 SPI analog
94+
to digital converters (ADC).
95+
96+
To compile this driver as a module, choose M here: the module will be
97+
called ad4170-4.
98+
8799
config AD4695
88100
tristate "Analog Device AD4695 ADC Driver"
89101
depends on SPI

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_AD4000) += ad4000.o
1212
obj-$(CONFIG_AD4030) += ad4030.o
1313
obj-$(CONFIG_AD4080) += ad4080.o
1414
obj-$(CONFIG_AD4130) += ad4130.o
15+
obj-$(CONFIG_AD4170_4) += ad4170-4.o
1516
obj-$(CONFIG_AD4695) += ad4695.o
1617
obj-$(CONFIG_AD4851) += ad4851.o
1718
obj-$(CONFIG_AD7091R) += ad7091r-base.o

0 commit comments

Comments
 (0)