Skip to content

Commit e2e6771

Browse files
arnopobroonie
authored andcommitted
IIO: ADC: add STM32 DFSDM sigma delta ADC support
Add DFSDM driver to handle sigma delta ADC. Signed-off-by: Arnaud Pouliquen <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent bed7390 commit e2e6771

File tree

3 files changed

+742
-0
lines changed

3 files changed

+742
-0
lines changed

drivers/iio/adc/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,19 @@ config STM32_DFSDM_CORE
680680
This driver can also be built as a module. If so, the module
681681
will be called stm32-dfsdm-core.
682682

683+
config STM32_DFSDM_ADC
684+
tristate "STMicroelectronics STM32 dfsdm adc"
685+
depends on (ARCH_STM32 && OF) || COMPILE_TEST
686+
select STM32_DFSDM_CORE
687+
select REGMAP_MMIO
688+
select IIO_BUFFER_HW_CONSUMER
689+
help
690+
Select this option to support ADCSigma delta modulator for
691+
STMicroelectronics STM32 digital filter for sigma delta converter.
692+
693+
This driver can also be built as a module. If so, the module
694+
will be called stm32-dfsdm-adc.
695+
683696
config STX104
684697
tristate "Apex Embedded Systems STX104 driver"
685698
depends on PC104 && X86 && ISA_BUS_API

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ obj-$(CONFIG_SUN4I_GPADC) += sun4i-gpadc-iio.o
6565
obj-$(CONFIG_STM32_ADC_CORE) += stm32-adc-core.o
6666
obj-$(CONFIG_STM32_ADC) += stm32-adc.o
6767
obj-$(CONFIG_STM32_DFSDM_CORE) += stm32-dfsdm-core.o
68+
obj-$(CONFIG_STM32_DFSDM_ADC) += stm32-dfsdm-adc.o
6869
obj-$(CONFIG_TI_ADC081C) += ti-adc081c.o
6970
obj-$(CONFIG_TI_ADC0832) += ti-adc0832.o
7071
obj-$(CONFIG_TI_ADC084S021) += ti-adc084s021.o

0 commit comments

Comments
 (0)