Skip to content

Commit daea3a3

Browse files
yopejic23
authored andcommitted
iio: adc: Add TI ADS131M0x ADC driver
Add a new IIO ADC driver for Texas Instruments ADS131M0x devices (ADS131M02/03/04/06/08). These are 24-bit, up to 64 kSPS, simultaneous- sampling delta-sigma ADCs accessed via SPI. Highlights: - Supports 2/3/4/6/8-channel variants with per-channel RAW and SCALE. - Implements device-required full-duplex fixed-frame transfers. - Handles both input and output CRC Note: Despite the almost identical name, this hardware is not compatible with the ADS131E0x series handled by drivers/iio/adc/ti-ads131e08.c. Signed-off-by: David Jander <david@protonic.nl> Co-developed-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: David Lechner <dlechner@baylibre.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 02d1af1 commit daea3a3

File tree

3 files changed

+980
-0
lines changed

3 files changed

+980
-0
lines changed

drivers/iio/adc/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,6 +1722,17 @@ config TI_ADS131E08
17221722
This driver can also be built as a module. If so, the module will be
17231723
called ti-ads131e08.
17241724

1725+
config TI_ADS131M02
1726+
tristate "Texas Instruments ADS131M02"
1727+
depends on SPI && REGULATOR
1728+
select CRC_ITU_T
1729+
help
1730+
Say yes here to get support for Texas Instruments ADS131M02, ADS131M03,
1731+
ADS131M04, ADS131M06 and ADS131M08 chips.
1732+
1733+
This driver can also be built as a module. If so, the module will be
1734+
called ti-ads131m02.
1735+
17251736
config TI_ADS7138
17261737
tristate "Texas Instruments ADS7128 and ADS7138 ADC driver"
17271738
depends on I2C

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ obj-$(CONFIG_TI_ADS1119) += ti-ads1119.o
150150
obj-$(CONFIG_TI_ADS124S08) += ti-ads124s08.o
151151
obj-$(CONFIG_TI_ADS1298) += ti-ads1298.o
152152
obj-$(CONFIG_TI_ADS131E08) += ti-ads131e08.o
153+
obj-$(CONFIG_TI_ADS131M02) += ti-ads131m02.o
153154
obj-$(CONFIG_TI_ADS7138) += ti-ads7138.o
154155
obj-$(CONFIG_TI_ADS7924) += ti-ads7924.o
155156
obj-$(CONFIG_TI_ADS7950) += ti-ads7950.o

0 commit comments

Comments
 (0)