Skip to content

Commit e376670

Browse files
TerryGengnathaniel-greaseboss
authored andcommitted
drivers: adc: ads1x4s0x: Add ADS124S0X support into existing drivers
Refactor code for ADS114S08 (12 ch, 16 bit) to accommodate ADS114S06 (6 ch, 16 bit), ADS124S06 (6 ch, 24 bit), and ADS124S08 (12 ch, 24 bit). Signed-off-by: Terry Geng <[email protected]>
1 parent 693769a commit e376670

File tree

11 files changed

+2067
-55
lines changed

11 files changed

+2067
-55
lines changed

doc/releases/release-notes-4.1.rst

Lines changed: 179 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,185 @@ Drivers and Sensors
8383

8484
* CAN
8585

86-
* Charger
86+
* :kconfig:option:`CONFIG_MBEDTLS_PSA_STATIC_KEY_SLOTS`
87+
* :kconfig:option:`CONFIG_MBEDTLS_PSA_KEY_SLOT_COUNT`
88+
89+
* Other
90+
91+
* :kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA`
92+
* :c:macro:`DT_ANY_INST_HAS_BOOL_STATUS_OKAY`
93+
* :c:struct:`led_dt_spec`
94+
* :kconfig:option:`CONFIG_STEP_DIR_STEPPER`
95+
96+
New Boards
97+
**********
98+
..
99+
You may update this list as you contribute a new board during the release cycle, in order to make
100+
is visible to people who might be looking at the working draft of the release notes. However, note
101+
that this list will be recomputed at the time of the release, so you don't *have* to update it.
102+
In any case, just link the board, further details go in the board description.
103+
104+
* Adafruit Industries, LLC
105+
106+
* :zephyr:board:`adafruit_feather_m4_express` (``adafruit_feather_m4_express``)
107+
* :zephyr:board:`adafruit_qt_py_esp32s3` (``adafruit_qt_py_esp32s3``)
108+
109+
* Advanced Micro Devices (AMD), Inc.
110+
111+
* :zephyr:board:`acp_6_0_adsp` (``acp_6_0_adsp``)
112+
113+
* Analog Devices, Inc.
114+
115+
* :zephyr:board:`max78000evkit` (``max78000evkit``)
116+
* :zephyr:board:`max78000fthr` (``max78000fthr``)
117+
* :zephyr:board:`max78002evkit` (``max78002evkit``)
118+
119+
* Antmicro
120+
121+
* :zephyr:board:`myra_sip_baseboard` (``myra_sip_baseboard``)
122+
123+
* BeagleBoard.org Foundation
124+
125+
* :zephyr:board:`beagley_ai` (``beagley_ai``)
126+
127+
* FANKE Technology Co., Ltd.
128+
129+
* :zephyr:board:`fk750m1_vbt6` (``fk750m1_vbt6``)
130+
131+
* Google, Inc.
132+
133+
* :zephyr:board:`google_icetower` (``google_icetower``)
134+
* :zephyr:board:`google_quincy` (``google_quincy``)
135+
136+
* Infineon Technologies
137+
138+
* :zephyr:board:`cy8ckit_062s2_ai` (``cy8ckit_062s2_ai``)
139+
140+
* Lilygo Shenzhen Xinyuan Electronic Technology Co., Ltd
141+
142+
* :zephyr:board:`ttgo_t7v1_5` (``ttgo_t7v1_5``)
143+
* :zephyr:board:`ttgo_t8s3` (``ttgo_t8s3``)
144+
145+
* M5Stack
146+
147+
* :zephyr:board:`m5stack_cores3` (``m5stack_cores3``)
148+
149+
* Makerbase Co., Ltd.
150+
151+
* :zephyr:board:`mks_canable_v20` (``mks_canable_v20``)
152+
153+
* MediaTek Inc.
154+
155+
* MT8186 (``mt8186``)
156+
* MT8188 (``mt8188``)
157+
* MT8196 (``mt8196``)
158+
159+
* NXP Semiconductors
160+
161+
* :zephyr:board:`mimxrt700_evk` (``mimxrt700_evk``)
162+
163+
* Nordic Semiconductor
164+
165+
* :zephyr:board:`nrf54l09pdk` (``nrf54l09pdk``)
166+
167+
* Norik Systems
168+
169+
* :zephyr:board:`octopus_io_board` (``octopus_io_board``)
170+
* :zephyr:board:`octopus_som` (``octopus_som``)
171+
172+
* Qorvo, Inc.
173+
174+
* :zephyr:board:`decawave_dwm3001cdk` (``decawave_dwm3001cdk``)
175+
176+
* Raspberry Pi Foundation
177+
178+
* :zephyr:board:`rpi_pico2` (``rpi_pico2``)
179+
180+
* Realtek Semiconductor Corp.
181+
182+
* :zephyr:board:`rts5912_evb` (``rts5912_evb``)
183+
184+
* Renesas Electronics Corporation
185+
186+
* :zephyr:board:`fpb_ra4e1` (``fpb_ra4e1``)
187+
* :zephyr:board:`rzg3s_smarc` (``rzg3s_smarc``)
188+
* :zephyr:board:`voice_ra4e1` (``voice_ra4e1``)
189+
190+
* STMicroelectronics
191+
192+
* :zephyr:board:`nucleo_c071rb` (``nucleo_c071rb``)
193+
* :zephyr:board:`nucleo_f072rb` (``nucleo_f072rb``)
194+
* :zephyr:board:`nucleo_h7s3l8` (``nucleo_h7s3l8``)
195+
* :zephyr:board:`nucleo_wb07cc` (``nucleo_wb07cc``)
196+
* :zephyr:board:`stm32f413h_disco` (``stm32f413h_disco``)
197+
198+
* Seeed Technology Co., Ltd
199+
200+
* :zephyr:board:`xiao_esp32c6` (``xiao_esp32c6``)
201+
202+
* Shenzhen Fuyuansheng Electronic Technology Co., Ltd.
203+
204+
* :zephyr:board:`ucan` (``ucan``)
205+
206+
* Silicon Laboratories
207+
208+
* :zephyr:board:`xg23_rb4210a` (``xg23_rb4210a``)
209+
* :zephyr:board:`xg24_ek2703a` (``xg24_ek2703a``)
210+
* :zephyr:board:`xg29_rb4412a` (``xg29_rb4412a``)
211+
212+
* Toradex AG
213+
214+
* :zephyr:board:`verdin_imx8mm` (``verdin_imx8mm``)
215+
216+
* Waveshare Electronics
217+
218+
* :zephyr:board:`rp2040_zero` (``rp2040_zero``)
219+
220+
* WeAct Studio
221+
222+
* :zephyr:board:`mini_stm32h7b0` (``mini_stm32h7b0``)
223+
224+
* WinChipHead
225+
226+
* :zephyr:board:`ch32v003evt` (``ch32v003evt``)
227+
228+
* Würth Elektronik GmbH.
229+
230+
* :zephyr:board:`we_oceanus1ev` (``we_oceanus1ev``)
231+
* :zephyr:board:`we_orthosie1ev` (``we_orthosie1ev``)
232+
233+
* others
234+
235+
* :zephyr:board:`canbardo` (``canbardo``)
236+
* :zephyr:board:`candlelight` (``candlelight``)
237+
* :zephyr:board:`candlelightfd` (``candlelightfd``)
238+
* :zephyr:board:`esp32c3_supermini` (``esp32c3_supermini``)
239+
* :zephyr:board:`promicro_nrf52840` (``promicro_nrf52840``)
240+
241+
New Drivers
242+
***********
243+
..
244+
Same as above for boards, this will also be recomputed at the time of the release.
245+
Just link the driver, further details go in the binding description
246+
247+
* :abbr:`ADC (Analog to Digital Converter)`
248+
249+
* :dtcompatible:`adi,ad4114-adc`
250+
* :dtcompatible:`ti,ads131m02`
251+
* :dtcompatible:`ti,tla2022`
252+
* :dtcompatible:`ti,tla2024`
253+
* :dtcompatible:`ti,ads114s06`
254+
* :dtcompatible:`ti,ads124s06`
255+
* :dtcompatible:`ti,ads124s08`
256+
257+
* ARM architecture
258+
259+
* :dtcompatible:`nxp,nbu`
260+
261+
* Bluetooth
262+
263+
* :dtcompatible:`renesas,bt-hci-da1453x`
264+
* :dtcompatible:`st,hci-stm32wb0`
87265

88266
* Clock control
89267

drivers/adc/Kconfig.ads1x4s0x

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright (c) 2023 SILA Embedded Solutions GmbH
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
menuconfig ADC_ADS1X4S0X
6+
bool "Texas instruments ADS1X4S0X"
7+
default y
8+
depends on DT_HAS_TI_ADS114S06_ENABLED || DT_HAS_TI_ADS114S08_ENABLED \
9+
|| DT_HAS_TI_ADS124S06_ENABLED || DT_HAS_TI_ADS124S08_ENABLED
10+
select SPI
11+
select ADC_CONFIGURABLE_INPUTS
12+
select ADC_CONFIGURABLE_EXCITATION_CURRENT_SOURCE_PIN
13+
select ADC_CONFIGURABLE_VBIAS_PIN
14+
help
15+
Enable the driver implementation for the ADS1X4S0X family
16+
17+
config ADC_ADS1X4S0X_ASYNC_THREAD_INIT_PRIO
18+
int "ADC ADS1X4S0X async thread priority"
19+
default 0
20+
depends on ADC_ADS1X4S0X
21+
22+
config ADC_ADS1X4S0X_ACQUISITION_THREAD_STACK_SIZE
23+
int "Stack size for the ADC data acquisition thread"
24+
default 400
25+
depends on ADC_ADS1X4S0X
26+
help
27+
Size of the stack used for the internal data acquisition
28+
thread.
29+
30+
config ADC_ADS1X4S0X_GPIO
31+
bool "GPIO support"
32+
default n
33+
depends on GPIO && ADC_ADS1X4S0X
34+
help
35+
Enable GPIO child device support in the ADS1X4S0X ADC driver.
36+
37+
The GPIO functionality is handled by the ADS1X4S0X GPIO
38+
driver.
39+
40+
config ADC_ADS1X4S0X_WAIT_FOR_COMPLETION_TIMEOUT_MS
41+
int "Timeout for wait for completion of a read in ms"
42+
default 1000
43+
depends on ADC_ADS1X4S0X
44+
help
45+
This is the wait time in ms until a read is completed.

0 commit comments

Comments
 (0)