Skip to content

Commit e64e901

Browse files
acuscomachschmitt
authored andcommitted
iio: adc: Add support for AD4170
Add support for the AD4170 ADC with the following features: - Single-shot read (read_raw), scale, sampling freq - Multi channel buffer support - Buffered capture in triggered mode - Buffered capture with SPI-Engine - Gain and offset calibration - Support for gpio controller - chop_iexc and chop_adc device configuration - Powerdown switch configuration Signed-off-by: Ana-Maria Cusco <[email protected]> Signed-off-by: Dragos Bogdan <[email protected]> Signed-off-by: Marcelo Schmitt <[email protected]>
1 parent a9783f0 commit e64e901

File tree

5 files changed

+3269
-0
lines changed

5 files changed

+3269
-0
lines changed

drivers/iio/Kconfig.adi

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ config IIO_ALL_ADI_DRIVERS
4040
imply AD400X
4141
imply AD4630
4242
imply AD4130
43+
imply AD4170
4344
imply AD4134
4445
imply AD6676
4546
imply AD7091R5

drivers/iio/adc/Kconfig

+16
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,22 @@ config AD4130
5959
To compile this driver as a module, choose M here: the module will be
6060
called ad4130.
6161

62+
63+
config AD4170
64+
tristate "Analog Device AD4170 ADC Driver"
65+
depends on SPI
66+
depends on GPIOLIB
67+
select IIO_BUFFER
68+
select IIO_TRIGGERED_BUFFER
69+
select REGMAP_SPI
70+
depends on COMMON_CLK
71+
help
72+
Say yes here to build support for Analog Devices AD4170 SPI analog
73+
to digital converters (ADC).
74+
75+
To compile this driver as a module, choose M here: the module will be
76+
called ad4170.
77+
6278
config AD4630
6379
tristate "Analog Device AD4630 ADC Driver"
6480
depends on SPI_MASTER

drivers/iio/adc/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
99
obj-$(CONFIG_AD_PULSAR) += ad_pulsar.o
1010
obj-$(CONFIG_AD400X) += ad400x.o
1111
obj-$(CONFIG_AD4130) += ad4130.o
12+
obj-$(CONFIG_AD4170) += ad4170.o
1213
obj-$(CONFIG_AD4134) += ad4134.o
1314
obj-$(CONFIG_AD4630) += ad4630.o
1415
obj-$(CONFIG_AD6676) += ad6676.o

0 commit comments

Comments
 (0)