Skip to content

Commit 82462ae

Browse files
Hau Hoquytranpzz
authored andcommitted
tests: drivers: adc: Add overlay file for FPB-RX261 board
Add overlay file for FPB-RX261 board Signed-off-by: Hau Ho <[email protected]>
1 parent 538b5fc commit 82462ae

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_REFERENCE_VOLTAGE_TEST=y
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 = <&adc 0>;
10+
reference-mv = <3300>;
11+
expected-accuracy = <32>;
12+
};
13+
};
14+
15+
&adc {
16+
pinctrl-0 = <&adc_default>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
status = "okay";
21+
22+
channel@0 {
23+
reg = <0>;
24+
zephyr,gain = "ADC_GAIN_1";
25+
zephyr,reference = "ADC_REF_INTERNAL";
26+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
27+
zephyr,resolution = <12>;
28+
zephyr,vref-mv = <3300>;
29+
zephyr,oversampling = <1>;
30+
};
31+
32+
channel@1 {
33+
reg = <1>;
34+
zephyr,gain = "ADC_GAIN_1";
35+
zephyr,reference = "ADC_REF_INTERNAL";
36+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
37+
zephyr,resolution = <12>;
38+
zephyr,vref-mv = <3300>;
39+
};
40+
};
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 = <&adc 0>, <&adc 2>;
10+
};
11+
};
12+
13+
&adc {
14+
pinctrl-0 = <&adc_default>;
15+
pinctrl-names = "default";
16+
status = "okay";
17+
#address-cells = <1>;
18+
#size-cells = <0>;
19+
20+
channel@0 {
21+
reg = <0>;
22+
zephyr,gain = "ADC_GAIN_1";
23+
zephyr,reference = "ADC_REF_INTERNAL";
24+
zephyr,resolution = <12>;
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,vref-mv = <3300>;
27+
};
28+
29+
channel@2 {
30+
reg = <2>;
31+
zephyr,gain = "ADC_GAIN_1";
32+
zephyr,reference = "ADC_REF_INTERNAL";
33+
zephyr,resolution = <12>;
34+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
35+
zephyr,vref-mv = <3300>;
36+
};
37+
};

0 commit comments

Comments
 (0)