Skip to content

Commit b8d6b1e

Browse files
tests: drivers: adc: add imx93_evk support for adc_api case
Add necessary configuration for sar_adc1 on imx93 core cm33 There are some issues with USERSPACE, so add an overlay to disable CONFIG_TEST_USERSPACE, will drop it once it works. Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
1 parent aa3e729 commit b8d6b1e

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright 2025 NXP
5+
*/
6+
7+
#include <zephyr/dt-bindings/adc/adc.h>
8+
9+
/ {
10+
zephyr,user {
11+
io-channels = <&sar_adc1 0>, <&sar_adc1 1>;
12+
};
13+
};
14+
15+
&sar_adc1 {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
channel@0 {
20+
reg = <0>;
21+
zephyr,gain = "ADC_GAIN_1";
22+
zephyr,reference = "ADC_REF_INTERNAL";
23+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
24+
zephyr,resolution = <12>;
25+
};
26+
27+
channel@1 {
28+
reg = <1>;
29+
zephyr,gain = "ADC_GAIN_1";
30+
zephyr,reference = "ADC_REF_INTERNAL";
31+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
32+
zephyr,resolution = <12>;
33+
};
34+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2025, NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_TEST_USERSPACE=n

tests/drivers/adc/adc_api/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ tests:
7575
- frdm_k82f
7676
integration_platforms:
7777
- frdm_k82f
78+
drivers.adc.nxp_imx:
79+
extra_args:
80+
- DTC_OVERLAY_FILE="boards/imx93_evk_mimx9352_m33.dts.overlay"
81+
- EXTRA_CONF_FILE="overlay-imx.conf"
82+
depends_on:
83+
- adc
84+
platform_allow:
85+
- imx93_evk/mimx9352/m33
7886
drivers.adc.dma_espressif:
7987
extra_args:
8088
- DTC_OVERLAY_FILE="boards/esp32s3_devkitc_procpu.overlay"

0 commit comments

Comments
 (0)