Skip to content

Commit

Permalink
drivers: adc: add ads131m02 adc driver
Browse files Browse the repository at this point in the history
ADS131M02 is Texas Instruments 2-channel, 24-Bit differential
input ADC which support wide range datarate.
Driver add support for adc read, channel configure, adc sampling
mode configuration and power management.

[1]. https://www.ti.com/lit/ds/symlink/ads131m02.pdf

Signed-off-by: Karthikeyan Krishnasamy <[email protected]>
  • Loading branch information
karthi012 authored and kartben committed Dec 18, 2024
1 parent 1f2e15d commit b0389ce
Show file tree
Hide file tree
Showing 6 changed files with 806 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/adc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ zephyr_library_sources_ifdef(CONFIG_ADC_ADS1112 adc_ads1112.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS1119 adc_ads1119.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS7052 adc_ads7052.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS114S0X adc_ads114s0x.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS131M02 adc_ads131m02.c)
zephyr_library_sources_ifdef(CONFIG_ADC_RPI_PICO adc_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_ADC_XMC4XXX adc_xmc4xxx.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ESP32 adc_esp32.c)
Expand Down
2 changes: 2 additions & 0 deletions drivers/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ source "drivers/adc/Kconfig.ads7052"

source "drivers/adc/Kconfig.ads114s0x"

source "drivers/adc/Kconfig.ads131m02"

source "drivers/adc/Kconfig.rpi_pico"

source "drivers/adc/Kconfig.xmc4xxx"
Expand Down
13 changes: 13 additions & 0 deletions drivers/adc/Kconfig.ads131m02
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2024 Linumiz
#
# SPDX-License-Identifier: Apache-2.0

config ADC_ADS131M02
bool "Texas instruments ADS131M02"
default y
depends on DT_HAS_TI_ADS131M02_ENABLED
select ADC_CONFIGURABLE_INPUTS
select SPI
select GPIO
help
Enable the driver for ADS131M02 ADC.
Loading

0 comments on commit b0389ce

Please sign in to comment.