Skip to content

Commit ebab733

Browse files
Yasin UstunerYasin Ustuner
authored andcommitted
drivers: adc: Introduce AD7124 adc driver
This commit introduces ad7124 adc driver. Signed-off-by: Yasin Ustuner <[email protected]>
1 parent e416496 commit ebab733

File tree

4 files changed

+1405
-0
lines changed

4 files changed

+1405
-0
lines changed

drivers/adc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_AMBIQ adc_ambiq.c)
5757
zephyr_library_sources_ifdef(CONFIG_ADC_RENESAS_RA adc_renesas_ra.c)
5858
zephyr_library_sources_ifdef(CONFIG_ADC_MAX32 adc_max32.c)
5959
zephyr_library_sources_ifdef(CONFIG_ADC_AD4114 adc_ad4114.c)
60+
zephyr_library_sources_ifdef(CONFIG_ADC_AD7124 adc_ad7124.c)

drivers/adc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,6 @@ source "drivers/adc/Kconfig.max32"
138138

139139
source "drivers/adc/Kconfig.ad4114"
140140

141+
source "drivers/adc/Kconfig.ad7124"
142+
141143
endif # ADC

drivers/adc/Kconfig.ad7124

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2025 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config ADC_AD7124
5+
bool "ADI AD7124 Analog-to-Digital Converter"
6+
default y
7+
depends on DT_HAS_ADI_AD7124_ADC_ENABLED
8+
select SPI
9+
select CRC
10+
select ADC_CONFIGURABLE_INPUTS
11+
help
12+
Enable the ad7124 adc
13+
14+
config ADI_AD7124_ADC_ACQUISITION_THREAD_INIT_PRIO
15+
int "ADC data acquisition thread priority"
16+
default 0
17+
depends on ADC_AD7124 && ADC_ASYNC
18+
19+
config ADI_AD7124_ADC_ACQUISITION_THREAD_STACK_SIZE
20+
int "Stack size for the ADC data acquisition thread"
21+
default 400
22+
depends on ADC_AD7124 && ADC_ASYNC
23+
help
24+
Size of the stack used for the internal data acquisition
25+
thread.

0 commit comments

Comments
 (0)