Skip to content

Commit d9e92b0

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 7a1741d commit d9e92b0

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
@@ -88,3 +88,12 @@ tests:
8888
- dma
8989
platform_allow:
9090
- esp32s3_devkitc/esp32s3/procpu
91+
drivers.adc.dma_silabs:
92+
extra_args:
93+
- DTC_OVERLAY_FILE="boards/xg29_rb4412a.overlay"
94+
- EXTRA_CONF_FILE="overlay-dma-silabs.conf"
95+
depends_on:
96+
- adc
97+
- dma
98+
platform_allow:
99+
- xg29_rb4412a

0 commit comments

Comments
 (0)