Skip to content

Commit 9857af2

Browse files
Phuc Phamtiennguyenzg
authored andcommitted
tests: drivers: adc: Add ADC support for Renesas RZ/A3UL, T2M, N2L, V2L
Add ADC test support for Renesas RZ/A3UL-SMARC, RZ/T2M-RSK, RZ/N2L-RSK, RZ/V2L-SMARC Signed-off-by: Phuc Pham <[email protected]> Signed-off-by: Tien Nguyen <[email protected]>
1 parent 70675a7 commit 9857af2

File tree

4 files changed

+144
-0
lines changed

4 files changed

+144
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
/ {
9+
zephyr,user {
10+
io-channels = <&adc 0>, <&adc 1>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
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,resolution = <12>;
24+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25+
zephyr,vref-mv = <1800>;
26+
};
27+
28+
channel@1 {
29+
reg = <1>;
30+
zephyr,gain = "ADC_GAIN_1";
31+
zephyr,reference = "ADC_REF_INTERNAL";
32+
zephyr,resolution = <12>;
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,vref-mv = <1800>;
35+
};
36+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
/ {
9+
zephyr,user {
10+
io-channels = <&adc0 0>, <&adc0 2>;
11+
};
12+
};
13+
14+
&adc0 {
15+
status = "okay";
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,resolution = <12>;
24+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25+
zephyr,vref-mv = <1800>;
26+
};
27+
28+
channel@2 {
29+
reg = <2>;
30+
zephyr,gain = "ADC_GAIN_1";
31+
zephyr,reference = "ADC_REF_INTERNAL";
32+
zephyr,resolution = <12>;
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,vref-mv = <1800>;
35+
};
36+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
/ {
9+
zephyr,user {
10+
io-channels = <&adc0 0>, <&adc0 2>;
11+
};
12+
};
13+
14+
&adc0 {
15+
status = "okay";
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,resolution = <12>;
24+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25+
zephyr,vref-mv = <1800>;
26+
};
27+
28+
channel@2 {
29+
reg = <2>;
30+
zephyr,gain = "ADC_GAIN_1";
31+
zephyr,reference = "ADC_REF_INTERNAL";
32+
zephyr,resolution = <12>;
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,vref-mv = <1800>;
35+
};
36+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
/ {
9+
zephyr,user {
10+
io-channels = <&adc 0>, <&adc 2>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
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,resolution = <12>;
24+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25+
zephyr,vref-mv = <1800>;
26+
};
27+
28+
channel@2 {
29+
reg = <2>;
30+
zephyr,gain = "ADC_GAIN_1";
31+
zephyr,reference = "ADC_REF_INTERNAL";
32+
zephyr,resolution = <12>;
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,vref-mv = <1800>;
35+
};
36+
};

0 commit comments

Comments
 (0)