Skip to content

Commit 9be0f88

Browse files
tests: drivers: adc: Add support test ADC for ek_ra4c1
Add support test app adc_accuracy_test and adc_api for ek_ra4c1 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 2539d02 commit 9be0f88

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
io-channels = <&adc0 0>;
10+
reference-mv = <3300>;
11+
expected-accuracy = <32>;
12+
};
13+
};
14+
15+
&adc0{
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
status = "okay";
19+
20+
channel@0 {
21+
reg = <0>;
22+
zephyr,gain = "ADC_GAIN_1";
23+
zephyr,reference = "ADC_REF_INTERNAL";
24+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25+
zephyr,resolution = <12>;
26+
zephyr,vref-mv = <3300>;
27+
};
28+
};
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 = <3300>;
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 = <3300>;
35+
};
36+
};

0 commit comments

Comments
 (0)