Skip to content

Commit 3bf1ee7

Browse files
cyliangtwkartben
authored andcommitted
tests: drivers: adc: adc_api: support numaker_m55m1
Add support for Nuvoton numaker board numaker_m55m1. Signed-off-by: cyliang tw <[email protected]>
1 parent 082a3a0 commit 3bf1ee7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
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 6>, <&eadc0 8>;
6+
};
7+
};
8+
9+
&pinctrl {
10+
/* EVB's UNO Pin A0 & A2 for ADC channel 6 & 8 */
11+
eadc0_default: eadc0_default {
12+
group0 {
13+
pinmux = <PB6MFP_EADC0_CH6>, <PB8MFP_EADC0_CH8>;
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@6 {
26+
reg = <6>;
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@8 {
34+
reg = <8>;
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)