Skip to content

Commit ed1888b

Browse files
tests: adc: add configuration and overlay for DMA support on Silabs IADC
This commit introduces a new configuration file for DMA support specific to the Silabs IADC, along with updates to the test case YAML and device tree overlay for the xg29_rb4412a board. The changes ensure that the ADC driver can utilize DMA operations effectively. Signed-off-by: Martin Hoff <[email protected]>
1 parent bced612 commit ed1888b

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

tests/drivers/adc/adc_api/boards/xg29_rb4412a.overlay

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
status = "okay";
1717
#address-cells = <1>;
1818
#size-cells = <0>;
19+
dmas = <&dma0 DMA_REQSEL_IADC0IADC_SCAN>;
1920

2021
channel@0 {
2122
reg = <0>;
@@ -35,3 +36,7 @@
3536
zephyr,input-positive = <IADC_INPUT_VBAT>;
3637
};
3738
};
39+
40+
&dma0 {
41+
status = "okay";
42+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2025 Silicon Laboratories Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_TEST_USERSPACE=n
8+
CONFIG_DMA=y
9+
CONFIG_ADC_SILABS_IADC_DMA=y

tests/drivers/adc/adc_api/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,12 @@ tests:
8484
- dma
8585
platform_allow:
8686
- esp32s3_devkitc/esp32s3/procpu
87+
drivers.adc.dma_silabs:
88+
extra_args:
89+
- DTC_OVERLAY_FILE="boards/xg29_rb4412a.overlay"
90+
- EXTRA_CONF_FILE="overlay-dma-silabs.conf"
91+
depends_on:
92+
- adc
93+
- dma
94+
platform_allow:
95+
- xg29_rb4412a

0 commit comments

Comments
 (0)