Skip to content

Commit 2114ab8

Browse files
committed
ARM: dts: r8a7779: Add PWM support
Add support for the 7 PWM channels provided by PWM Timers on R-Car H1, by describing the PWM Timers and their module clock. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/71622584db692f571d542ef2dcf088ce549aed3f.1679329211.git.geert+renesas@glider.be
1 parent f054507 commit 2114ab8

1 file changed

Lines changed: 78 additions & 13 deletions

File tree

arch/arm/boot/dts/r8a7779.dtsi

Lines changed: 78 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,69 @@
324324
status = "disabled";
325325
};
326326

327+
pwm0: pwm@ffe50000 {
328+
compatible = "renesas,pwm-r8a7779", "renesas,pwm-rcar";
329+
reg = <0xffe50000 0x8>;
330+
clocks = <&mstp0_clks R8A7779_CLK_PWM>;
331+
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
332+
#pwm-cells = <2>;
333+
status = "disabled";
334+
};
335+
336+
pwm1: pwm@ffe51000 {
337+
compatible = "renesas,pwm-r8a7779", "renesas,pwm-rcar";
338+
reg = <0xffe51000 0x8>;
339+
clocks = <&mstp0_clks R8A7779_CLK_PWM>;
340+
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
341+
#pwm-cells = <2>;
342+
status = "disabled";
343+
};
344+
345+
pwm2: pwm@ffe52000 {
346+
compatible = "renesas,pwm-r8a7779", "renesas,pwm-rcar";
347+
reg = <0xffe52000 0x8>;
348+
clocks = <&mstp0_clks R8A7779_CLK_PWM>;
349+
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
350+
#pwm-cells = <2>;
351+
status = "disabled";
352+
};
353+
354+
pwm3: pwm@ffe53000 {
355+
compatible = "renesas,pwm-r8a7779", "renesas,pwm-rcar";
356+
reg = <0xffe53000 0x8>;
357+
clocks = <&mstp0_clks R8A7779_CLK_PWM>;
358+
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
359+
#pwm-cells = <2>;
360+
status = "disabled";
361+
};
362+
363+
pwm4: pwm@ffe54000 {
364+
compatible = "renesas,pwm-r8a7779", "renesas,pwm-rcar";
365+
reg = <0xffe54000 0x8>;
366+
clocks = <&mstp0_clks R8A7779_CLK_PWM>;
367+
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
368+
#pwm-cells = <2>;
369+
status = "disabled";
370+
};
371+
372+
pwm5: pwm@ffe55000 {
373+
compatible = "renesas,pwm-r8a7779", "renesas,pwm-rcar";
374+
reg = <0xffe55000 0x8>;
375+
clocks = <&mstp0_clks R8A7779_CLK_PWM>;
376+
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
377+
#pwm-cells = <2>;
378+
status = "disabled";
379+
};
380+
381+
pwm6: pwm@ffe56000 {
382+
compatible = "renesas,pwm-r8a7779", "renesas,pwm-rcar";
383+
reg = <0xffe56000 0x8>;
384+
clocks = <&mstp0_clks R8A7779_CLK_PWM>;
385+
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
386+
#pwm-cells = <2>;
387+
status = "disabled";
388+
};
389+
327390
pfc: pinctrl@fffc0000 {
328391
compatible = "renesas,pfc-r8a7779";
329392
reg = <0xfffc0000 0x23c>;
@@ -554,7 +617,8 @@
554617
compatible = "renesas,r8a7779-mstp-clocks",
555618
"renesas,cpg-mstp-clocks";
556619
reg = <0xffc80030 4>;
557-
clocks = <&cpg_clocks R8A7779_CLK_S>,
620+
clocks = <&cpg_clocks R8A7779_CLK_P>,
621+
<&cpg_clocks R8A7779_CLK_S>,
558622
<&cpg_clocks R8A7779_CLK_P>,
559623
<&cpg_clocks R8A7779_CLK_P>,
560624
<&cpg_clocks R8A7779_CLK_P>,
@@ -572,20 +636,21 @@
572636
<&cpg_clocks R8A7779_CLK_P>;
573637
#clock-cells = <1>;
574638
clock-indices = <
575-
R8A7779_CLK_HSPI R8A7779_CLK_TMU2
576-
R8A7779_CLK_TMU1 R8A7779_CLK_TMU0
577-
R8A7779_CLK_HSCIF1 R8A7779_CLK_HSCIF0
578-
R8A7779_CLK_SCIF5 R8A7779_CLK_SCIF4
579-
R8A7779_CLK_SCIF3 R8A7779_CLK_SCIF2
580-
R8A7779_CLK_SCIF1 R8A7779_CLK_SCIF0
581-
R8A7779_CLK_I2C3 R8A7779_CLK_I2C2
582-
R8A7779_CLK_I2C1 R8A7779_CLK_I2C0
639+
R8A7779_CLK_PWM R8A7779_CLK_HSPI
640+
R8A7779_CLK_TMU2 R8A7779_CLK_TMU1
641+
R8A7779_CLK_TMU0 R8A7779_CLK_HSCIF1
642+
R8A7779_CLK_HSCIF0 R8A7779_CLK_SCIF5
643+
R8A7779_CLK_SCIF4 R8A7779_CLK_SCIF3
644+
R8A7779_CLK_SCIF2 R8A7779_CLK_SCIF1
645+
R8A7779_CLK_SCIF0 R8A7779_CLK_I2C3
646+
R8A7779_CLK_I2C2 R8A7779_CLK_I2C1
647+
R8A7779_CLK_I2C0
583648
>;
584649
clock-output-names =
585-
"hspi", "tmu2", "tmu1", "tmu0", "hscif1",
586-
"hscif0", "scif5", "scif4", "scif3", "scif2",
587-
"scif1", "scif0", "i2c3", "i2c2", "i2c1",
588-
"i2c0";
650+
"pwm", "hspi", "tmu2", "tmu1", "tmu0",
651+
"hscif1", "hscif0", "scif5", "scif4", "scif3",
652+
"scif2", "scif1", "scif0", "i2c3", "i2c2",
653+
"i2c1", "i2c0";
589654
};
590655
mstp1_clks: clocks@ffc80034 {
591656
compatible = "renesas,r8a7779-mstp-clocks",

0 commit comments

Comments
 (0)