Skip to content

Commit d42f10e

Browse files
khoa-nguyen-18fabiobaltieri
authored andcommitted
boards: renesas: Initial support DAC driver for Renesas RA
Add support DAC driver for ek_ra8m1, ek_ra8d1, mck_ra8t1, ek_ra6m5, ek_ra6m4, ek_ra6m3, ek_ra6m2, ek_ra6m1, ek_ra6e2, fpb_ra6e2, fpb_ra6e1, ek_ra4m3, ek_ra4m2, ek_ra4e2, ek_ra2a1 Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
1 parent 2f0420b commit d42f10e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+266
-26
lines changed

boards/renesas/ek_ra2a1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ hardware features:
8888
+-----------+------------+-------------------------------+
8989
| I2C | on-chip | i2c |
9090
+-----------+------------+-------------------------------+
91+
| DAC | on-chip | dac |
92+
+-----------+------------+-------------------------------+
9193

9294
The default configuration can be found in
9395
:zephyr_file:`boards/renesas/ek_ra2a1/ek_ra2a1_defconfig`

boards/renesas/ek_ra2a1/ek_ra2a1-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,12 @@
4343
drive-strength = "medium";
4444
};
4545
};
46+
47+
dac0_default: dac0_default {
48+
group1 {
49+
/* output */
50+
psels = <RA_PSEL(RA_PSEL_CAC_DAC, 5, 0)>;
51+
renesas,analog-enable;
52+
};
53+
};
4654
};

boards/renesas/ek_ra2a1/ek_ra2a1.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,9 @@
109109
interrupt-names = "rxi", "txi", "tei", "eri";
110110
status = "okay";
111111
};
112+
113+
&dac0 {
114+
pinctrl-0 = <&dac0_default>;
115+
pinctrl-names = "default";
116+
status = "okay";
117+
};

boards/renesas/ek_ra4e2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ The below features are currently supported on Zephyr OS for EK-RA4E2 board:
108108
+-----------+------------+----------------------+
109109
| FLASH | on-chip | flash |
110110
+-----------+------------+----------------------+
111+
| DAC | on-chip | dac |
112+
+-----------+------------+----------------------+
111113

112114
Other hardware features are currently not supported by the port.
113115

boards/renesas/ek_ra4e2/ek_ra4e2-pinctrl.dtsi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
2+
* Copyright (c) 2024-2025 Renesas Electronics Corporation
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -39,6 +39,14 @@
3939
};
4040
};
4141

42+
dac0_default: dac0_default {
43+
group1 {
44+
/* output */
45+
psels = <RA_PSEL(RA_PSEL_DAC, 0, 14)>;
46+
renesas,analog-enable;
47+
};
48+
};
49+
4250
pwm1_default: pwm1_default {
4351
group1 {
4452
/* GTIOC1A GTIOC1B */

boards/renesas/ek_ra4e2/ek_ra4e2.dts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
2+
* Copyright (c) 2024-2025 Renesas Electronics Corporation
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -142,6 +142,12 @@
142142
pinctrl-names = "default";
143143
};
144144

145+
&dac0 {
146+
pinctrl-0 = <&dac0_default>;
147+
pinctrl-names = "default";
148+
status = "okay";
149+
};
150+
145151
&ioport3 {
146152
status = "okay";
147153
};

boards/renesas/ek_ra4m2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M2 board:
112112
+-----------+------------+----------------------+
113113
| ENTROPY | on-chip | entropy |
114114
+-----------+------------+----------------------+
115+
| DAC | on-chip | dac |
116+
+-----------+------------+----------------------+
115117

116118
Other hardware features are currently not supported by the port.
117119

boards/renesas/ek_ra4m2/ek_ra4m2-pinctrl.dtsi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
2+
* Copyright (c) 2024-2025 Renesas Electronics Corporation
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -30,6 +30,14 @@
3030
};
3131
};
3232

33+
dac0_default: dac0_default {
34+
group1 {
35+
/* output */
36+
psels = <RA_PSEL(RA_PSEL_DAC, 0, 14)>;
37+
renesas,analog-enable;
38+
};
39+
};
40+
3341
pwm1_default: pwm1_default {
3442
group1 {
3543
/* GTIOC1A GTIOC1B */

boards/renesas/ek_ra4m2/ek_ra4m2.dts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
2+
* Copyright (c) 2024-2025 Renesas Electronics Corporation
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -109,6 +109,12 @@
109109
pinctrl-names = "default";
110110
};
111111

112+
&dac0 {
113+
pinctrl-0 = <&dac0_default>;
114+
pinctrl-names = "default";
115+
status = "okay";
116+
};
117+
112118
&port_irq10 {
113119
interrupts = <41 12>;
114120
status = "okay";

boards/renesas/ek_ra4m3/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M3 board:
114114
+-----------+------------+----------------------+
115115
| ENTROPY | on-chip | entropy |
116116
+-----------+------------+----------------------+
117+
| DAC | on-chip | dac |
118+
+-----------+------------+----------------------+
117119

118120
Other hardware features are currently not supported by the port.
119121

0 commit comments

Comments
 (0)