Skip to content

Commit edf2fc7

Browse files
M-Vaittinenjic23
authored andcommitted
iio: adc: Support ROHM BD79112 ADC/GPIO
The ROHM BD79112 is an ADC/GPIO with 32 channels. The channel inputs can be used as ADC or GPIO. Using the GPIOs as IRQ sources isn't supported. The ADC is 12-bit, supporting input voltages up to 5.7V, and separate I/O voltage supply. Maximum SPI clock rate is 20 MHz (10 MHz with daisy-chain configuration) and maximum sampling rate is 1MSPS. The IC does also support CRC but it is not implemented in the driver. Signed-off-by: Matti Vaittinen <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent d021fb3 commit edf2fc7

File tree

3 files changed

+567
-0
lines changed

3 files changed

+567
-0
lines changed

drivers/iio/adc/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,16 @@ config RN5T618_ADC
13421342
This driver can also be built as a module. If so, the module
13431343
will be called rn5t618-adc.
13441344

1345+
config ROHM_BD79112
1346+
tristate "Rohm BD79112 ADC driver"
1347+
depends on SPI && GPIOLIB
1348+
select REGMAP_SPI
1349+
select IIO_ADC_HELPER
1350+
help
1351+
Say yes here to build support for the ROHM BD79112 ADC. The
1352+
ROHM BD79112 is a 12-bit, 32-channel, SAR ADC. Analog inputs
1353+
can also be used for GPIO.
1354+
13451355
config ROHM_BD79124
13461356
tristate "Rohm BD79124 ADC driver"
13471357
depends on I2C && GPIOLIB

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ obj-$(CONFIG_QCOM_VADC_COMMON) += qcom-vadc-common.o
119119
obj-$(CONFIG_RCAR_GYRO_ADC) += rcar-gyroadc.o
120120
obj-$(CONFIG_RICHTEK_RTQ6056) += rtq6056.o
121121
obj-$(CONFIG_RN5T618_ADC) += rn5t618-adc.o
122+
obj-$(CONFIG_ROHM_BD79112) += rohm-bd79112.o
122123
obj-$(CONFIG_ROHM_BD79124) += rohm-bd79124.o
123124
obj-$(CONFIG_ROCKCHIP_SARADC) += rockchip_saradc.o
124125
obj-$(CONFIG_RZG2L_ADC) += rzg2l_adc.o

0 commit comments

Comments
 (0)