Skip to content

Commit c040a9e

Browse files
thaoluonguwkartben
authored andcommitted
tests: drivers: adc: Add support ek_ra2l1 for adc test
Add support ek_ra2l1 for adc_api and adc_accurarcy_test Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
1 parent 741da64 commit c040a9e

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DAC_BUFFER_NOT_SUPPORTED=y
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+
dac = <&dac0>;
11+
dac-channel-id = <0>;
12+
dac-resolution = <12>;
13+
};
14+
};
15+
16+
&adc0{
17+
#address-cells = <1>;
18+
#size-cells = <0>;
19+
status = "okay";
20+
21+
channel@0 {
22+
reg = <0>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_INTERNAL";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,resolution = <12>;
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 1>, <&adc0 2>;
11+
};
12+
};
13+
14+
&adc0 {
15+
status = "okay";
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
channel@1 {
20+
reg = <1>;
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)