Skip to content

Commit 2734aeb

Browse files
dlechnunojsa
authored andcommitted
iio: adc: ad4695: Add driver for AD4695 and similar ADCs
This is a new driver for Analog Devices Inc. AD4695 and similar ADCs. The initial driver supports initializing the chip including configuring all possible LDO and reference voltage sources as well as any possible voltage input channel wiring configuration. Only the 4-wire SPI wiring mode where the CNV pin is tied to the CS pin is supported at this time. And reading sample data from the ADC can only be done in direct mode for now. Co-developed-by: Ramona Gradinariu <ramona.gradinariu@analog.com> Signed-off-by: Ramona Gradinariu <ramona.gradinariu@analog.com> Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://patch.msgid.link/20240711-iio-adc-ad4695-v4-2-c31621113b57@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent b7769be commit 2734aeb

File tree

3 files changed

+749
-0
lines changed

3 files changed

+749
-0
lines changed

drivers/iio/adc/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ config AD4630
7373
To compile this driver as a module, choose M here: the module will be
7474
called ad4630.
7575

76+
config AD4695
77+
tristate "Analog Device AD4695 ADC Driver"
78+
depends on SPI
79+
select REGMAP_SPI
80+
help
81+
Say yes here to build support for Analog Devices AD4695 and similar
82+
analog to digital converters (ADC).
83+
84+
To compile this driver as a module, choose M here: the module will be
85+
called ad4695.
86+
7687
config AD7091R5
7788
tristate "Analog Devices AD7091R5 ADC Driver"
7889
depends on I2C

drivers/iio/adc/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ obj-$(CONFIG_AD4630) += ad4630.o
1414
obj-$(CONFIG_AD6676) += ad6676.o
1515
obj-$(CONFIG_AD7173) += ad7173.o
1616
obj-$(CONFIG_AD7091R5) += ad7091r5.o ad7091r-base.o
17+
obj-$(CONFIG_AD4695) += ad4695.o
18+
obj-$(CONFIG_AD7091R) += ad7091r-base.o
19+
obj-$(CONFIG_AD7091R5) += ad7091r5.o
20+
obj-$(CONFIG_AD7091R8) += ad7091r8.o
1721
obj-$(CONFIG_AD7124) += ad7124.o
1822
obj-$(CONFIG_AD7173) += ad7173.o
1923
obj-$(CONFIG_AD7192) += ad7192.o

0 commit comments

Comments
 (0)