Skip to content

Commit 538e797

Browse files
khoa-nguyen-18kartben
authored andcommitted
boards: renesas: Add DAC support for Renesas RA4 boards
Add support DAC for Renesas ek_ra4m1, ek_ra4w1, fpb_ra4e1, voice_ra4e1, ek_ra4l1 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent f20b381 commit 538e797

File tree

10 files changed

+70
-0
lines changed

10 files changed

+70
-0
lines changed

boards/renesas/ek_ra4l1/ek_ra4l1-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
};
3131
};
3232

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

boards/renesas/ek_ra4l1/ek_ra4l1.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@
141141
pinctrl-names = "default";
142142
};
143143

144+
&dac0 {
145+
pinctrl-0 = <&dac0_default>;
146+
pinctrl-names = "default";
147+
status = "okay";
148+
};
149+
144150
&port_irq6 {
145151
interrupts = <14 12>;
146152
status = "okay";

boards/renesas/ek_ra4m1/ek_ra4m1-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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_ra4m1/ek_ra4m1.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@
102102
pinctrl-names = "default";
103103
};
104104

105+
&dac0 {
106+
pinctrl-0 = <&dac0_default>;
107+
pinctrl-names = "default";
108+
status = "okay";
109+
};
110+
105111
&port_irq0 {
106112
interrupts = <27 12>;
107113
status = "okay";

boards/renesas/ek_ra4w1/ek_ra4w1-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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_ra4w1/ek_ra4w1.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@
9090
pinctrl-names = "default";
9191
};
9292

93+
&dac0 {
94+
pinctrl-0 = <&dac0_default>;
95+
pinctrl-names = "default";
96+
status = "okay";
97+
};
98+
9399
&port_irq4 {
94100
interrupts = <27 12>;
95101
status = "okay";

boards/renesas/fpb_ra4e1/fpb_ra4e1-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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/fpb_ra4e1/fpb_ra4e1.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@
120120
pinctrl-names = "default";
121121
};
122122

123+
&dac0 {
124+
pinctrl-0 = <&dac0_default>;
125+
pinctrl-names = "default";
126+
status = "okay";
127+
};
128+
123129
&port_irq1 {
124130
interrupts = <41 12>;
125131
status = "okay";

boards/renesas/voice_ra4e1/voice_ra4e1-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,12 @@
1919
drive-strength = "high";
2020
};
2121
};
22+
23+
dac0_default: dac0_default {
24+
group1 {
25+
/* output */
26+
psels = <RA_PSEL(RA_PSEL_DAC, 0, 14)>;
27+
renesas,analog-enable;
28+
};
29+
};
2230
};

boards/renesas/voice_ra4e1/voice_ra4e1.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,9 @@
138138
&wdt {
139139
status = "okay";
140140
};
141+
142+
&dac0 {
143+
pinctrl-0 = <&dac0_default>;
144+
pinctrl-names = "default";
145+
status = "okay";
146+
};

0 commit comments

Comments
 (0)