Skip to content

Commit 8f13b37

Browse files
cyliangtwnashif
authored andcommitted
tests: drivers: adc: adc_api: support numaker_m3334ki
Add support for Nuvoton numaker board numaker_m3334ki. Signed-off-by: cyliang tw <[email protected]>
1 parent 452e001 commit 8f13b37

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_USERSPACE=n
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/ {
4+
zephyr,user {
5+
io-channels = <&eadc0 0>, <&eadc0 2>;
6+
};
7+
};
8+
9+
&pinctrl {
10+
/* EVB's UNO Pin A4 & D0 for channel 0 & 2 --> PB0, PB2 */
11+
eadc0_default: eadc0_default {
12+
group0 {
13+
pinmux = <PB0MFP_EADC0_CH0>, <PB2MFP_EADC0_CH2>;
14+
};
15+
};
16+
};
17+
18+
&eadc0 {
19+
status = "okay";
20+
pinctrl-0 = <&eadc0_default>;
21+
pinctrl-names = "default";
22+
#address-cells = <1>;
23+
#size-cells = <0>;
24+
25+
channel@0 {
26+
reg = <0>;
27+
zephyr,gain = "ADC_GAIN_1";
28+
zephyr,reference = "ADC_REF_INTERNAL";
29+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
30+
zephyr,resolution = <10>;
31+
};
32+
33+
channel@2 {
34+
reg = <2>;
35+
zephyr,gain = "ADC_GAIN_1";
36+
zephyr,reference = "ADC_REF_INTERNAL";
37+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
38+
zephyr,resolution = <10>;
39+
};
40+
};

0 commit comments

Comments
 (0)