Skip to content

Commit f20b381

Browse files
khoa-nguyen-18kartben
authored andcommitted
dts: arm: renesas: ra: Add DAC support for Renesas RA4
Add support DAC for Renesas ra4-cm4 (RA4M1, RA4W1), RA4E1, RA4L1 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 9093598 commit f20b381

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

dts/arm/renesas/ra/ra4/r7fa4e10x.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/delete-node/ &spi1;
1212
/delete-node/ &agt4;
1313
/delete-node/ &adc1;
14+
/delete-node/ &dac1;
1415
/delete-node/ &iic1;
1516
/delete-node/ &pwm0;
1617

@@ -259,3 +260,7 @@
259260
port-irq6-pins = <9>;
260261
port-irq7-pins = <8>;
261262
};
263+
264+
&dac_global {
265+
has-output-amplifier;
266+
};

dts/arm/renesas/ra/ra4/r7fa4l1bx.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,21 @@
244244
status = "disabled";
245245
};
246246

247+
dac_global: dac_global@40171000 {
248+
compatible = "renesas,ra-dac-global";
249+
reg = <0x40171000 0x10c4>;
250+
#address-cells = <1>;
251+
#size-cells = <0>;
252+
has-davrefcr;
253+
254+
dac0: dac@0 {
255+
compatible = "renesas,ra-dac";
256+
#io-channel-cells = <1>;
257+
reg = <0>;
258+
status = "disabled";
259+
};
260+
};
261+
247262
iic0: iic0@4009f000 {
248263
compatible = "renesas,ra-iic";
249264
channel = <0>;

dts/arm/renesas/ra/ra4/r7fa4m1ax.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,3 +333,7 @@
333333
&pwm3 {
334334
clocks = <&pclkd MSTPD 6>;
335335
};
336+
337+
&dac_global {
338+
has-davrefcr;
339+
};

dts/arm/renesas/ra/ra4/r7fa4w1ad2cng.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,7 @@
237237
&pwm3 {
238238
clocks = <&pclkd MSTPD 5>;
239239
};
240+
241+
&dac_global {
242+
has-davrefcr;
243+
};

dts/arm/renesas/ra/ra4/ra4-cm4-common.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,21 @@
218218
status = "disabled";
219219
};
220220

221+
dac_global: dac_global@4005e000 {
222+
compatible = "renesas,ra-dac-global";
223+
reg = <0x4005e000 0x10c4>;
224+
#address-cells = <1>;
225+
#size-cells = <0>;
226+
status = "okay";
227+
228+
dac0: dac@0 {
229+
compatible = "renesas,ra-dac";
230+
#io-channel-cells = <1>;
231+
reg = <0>;
232+
status = "disabled";
233+
};
234+
};
235+
221236
iic0: iic0@40053000 {
222237
compatible = "renesas,ra-iic";
223238
channel = <0>;

0 commit comments

Comments
 (0)