Skip to content

Commit a35747f

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 a35747f

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
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
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+
};

0 commit comments

Comments
 (0)