Skip to content

Commit dd5ed02

Browse files
jpanisblkartben
authored andcommitted
drivers: adc: Add support for cc23x0 ADC
Add support for 16-channel ADC to cc23x0 SoC. The driver supports the following conversion modes: - Single channel | Single conversion, - Sequence of channels (up to 4) | Single conversion. Signed-off-by: Julien Panis <[email protected]>
1 parent 66eb61a commit dd5ed02

File tree

5 files changed

+498
-0
lines changed

5 files changed

+498
-0
lines changed

drivers/adc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ zephyr_library_sources_ifdef(CONFIG_ADC_NPCX adc_npcx.c)
2828
zephyr_library_sources_ifdef(CONFIG_USERSPACE adc_handlers.c)
2929
zephyr_library_sources_ifdef(CONFIG_ADC_CC32XX adc_cc32xx.c)
3030
zephyr_library_sources_ifdef(CONFIG_ADC_CC13XX_CC26XX adc_cc13xx_cc26xx.c)
31+
zephyr_library_sources_ifdef(CONFIG_ADC_CC23X0 adc_cc23x0.c)
3132
zephyr_library_sources_ifdef(CONFIG_ADC_EMUL adc_emul.c)
3233
zephyr_library_sources_ifdef(CONFIG_ADC_TEST adc_test.c)
3334
zephyr_library_sources_ifdef(CONFIG_ADC_ADS1X1X adc_ads1x1x.c)

drivers/adc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ source "drivers/adc/Kconfig.cc32xx"
8686

8787
source "drivers/adc/Kconfig.cc13xx_cc26xx"
8888

89+
source "drivers/adc/Kconfig.cc23x0"
90+
8991
source "drivers/adc/Kconfig.adc_emul"
9092

9193
source "drivers/adc/Kconfig.vf610"

drivers/adc/Kconfig.cc23x0

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2024 BayLibre, SAS
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config ADC_CC23X0
5+
bool "CC23X0 ADC driver"
6+
default y
7+
depends on DT_HAS_TI_CC23X0_ADC_ENABLED
8+
select PINCTRL
9+
help
10+
Enable the TI CC23X0 ADC driver.

0 commit comments

Comments
 (0)