Skip to content

Commit 1804855

Browse files
shimodayhorms
authored andcommitted
arm64: dts: renesas: r8a77990: Enable PWM for Ebisu board
This patch adds PWM device nodes and enables PWM3 and PWM5 for R-Car E3 Ebisu board. These devices are used for backlight control. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 0dba24a commit 1804855

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@
6767
};
6868
};
6969

70+
pwm3_pins: pwm3 {
71+
groups = "pwm3_b";
72+
function = "pwm3";
73+
};
74+
75+
pwm5_pins: pwm5 {
76+
groups = "pwm5_a";
77+
function = "pwm5";
78+
};
79+
7080
usb0_pins: usb {
7181
groups = "usb0_b";
7282
function = "usb0";
@@ -78,6 +88,20 @@
7888
};
7989
};
8090

91+
&pwm3 {
92+
pinctrl-0 = <&pwm3_pins>;
93+
pinctrl-names = "default";
94+
95+
status = "okay";
96+
};
97+
98+
&pwm5 {
99+
pinctrl-0 = <&pwm5_pins>;
100+
pinctrl-names = "default";
101+
102+
status = "okay";
103+
};
104+
81105
&rwdt {
82106
timeout-sec = <60>;
83107
status = "okay";

arch/arm64/boot/dts/renesas/r8a77990.dtsi

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,76 @@
337337
status = "disabled";
338338
};
339339

340+
pwm0: pwm@e6e30000 {
341+
compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar";
342+
reg = <0 0xe6e30000 0 0x8>;
343+
clocks = <&cpg CPG_MOD 523>;
344+
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
345+
resets = <&cpg 523>;
346+
#pwm-cells = <2>;
347+
status = "disabled";
348+
};
349+
350+
pwm1: pwm@e6e31000 {
351+
compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar";
352+
reg = <0 0xe6e31000 0 0x8>;
353+
clocks = <&cpg CPG_MOD 523>;
354+
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
355+
resets = <&cpg 523>;
356+
#pwm-cells = <2>;
357+
status = "disabled";
358+
};
359+
360+
pwm2: pwm@e6e32000 {
361+
compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar";
362+
reg = <0 0xe6e32000 0 0x8>;
363+
clocks = <&cpg CPG_MOD 523>;
364+
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
365+
resets = <&cpg 523>;
366+
#pwm-cells = <2>;
367+
status = "disabled";
368+
};
369+
370+
pwm3: pwm@e6e33000 {
371+
compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar";
372+
reg = <0 0xe6e33000 0 0x8>;
373+
clocks = <&cpg CPG_MOD 523>;
374+
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
375+
resets = <&cpg 523>;
376+
#pwm-cells = <2>;
377+
status = "disabled";
378+
};
379+
380+
pwm4: pwm@e6e34000 {
381+
compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar";
382+
reg = <0 0xe6e34000 0 0x8>;
383+
clocks = <&cpg CPG_MOD 523>;
384+
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
385+
resets = <&cpg 523>;
386+
#pwm-cells = <2>;
387+
status = "disabled";
388+
};
389+
390+
pwm5: pwm@e6e35000 {
391+
compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar";
392+
reg = <0 0xe6e35000 0 0x8>;
393+
clocks = <&cpg CPG_MOD 523>;
394+
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
395+
resets = <&cpg 523>;
396+
#pwm-cells = <2>;
397+
status = "disabled";
398+
};
399+
400+
pwm6: pwm@e6e36000 {
401+
compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar";
402+
reg = <0 0xe6e36000 0 0x8>;
403+
clocks = <&cpg CPG_MOD 523>;
404+
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
405+
resets = <&cpg 523>;
406+
#pwm-cells = <2>;
407+
status = "disabled";
408+
};
409+
340410
scif2: serial@e6e88000 {
341411
compatible = "renesas,scif-r8a77990",
342412
"renesas,rcar-gen3-scif", "renesas,scif";

0 commit comments

Comments
 (0)