Add PWM and TPU support
cover Add PWM and TPU support
Hello Ben,
this series backports PWM and TPU support for the r8a7745 SoC, and it applies on top of branch linux-4.4.y-cip, commit 4d769b2b8749e89dfc7ea179a44f652dcfbedb37 ("PM / OPP: Move error message to debug level").
Thanks,
Fab
Fabrizio Castro (2):
ARM: dts: r8a7745: Add PWM SoC support
ARM: dts: r8a7745: Add TPU support
arch/arm/boot/dts/r8a7745.dtsi | 72 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+)
Signature · 1 line
2.7.4
PATCH 1/2 ARM: dts: r8a7745: Add PWM SoC support
Add the definitions for pwm[0123456] to the SoC .dtsi.
(modified clocks and power-domains properties. removed resets property)
--- arch/arm/boot/dts/r8a7745.dtsi | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+)
arch/arm/boot/dts/r8a7745.dtsi +63 -0
@@ -772,6 +772,69 @@ status = "disabled"; }; + pwm0: pwm at e6e30000 { + compatible = "renesas,pwm-r8a7745", "renesas,pwm-rcar"; + reg = <0 0xe6e30000 0 0x8>; + clocks = <&mstp5_clks R8A7745_CLK_PWM>; + power-domains = <&cpg_clocks>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm1: pwm at e6e31000 { + compatible = "renesas,pwm-r8a7745", "renesas,pwm-rcar"; + reg = <0 0xe6e31000 0 0x8>; + clocks = <&mstp5_clks R8A7745_CLK_PWM>; + power-domains = <&cpg_clocks>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm2: pwm at e6e32000 { + compatible = "renesas,pwm-r8a7745", "renesas,pwm-rcar"; + reg = <0 0xe6e32000 0 0x8>; + clocks = <&mstp5_clks R8A7745_CLK_PWM>; + power-domains = <&cpg_clocks>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm3: pwm at e6e33000 { + compatible = "renesas,pwm-r8a7745", "renesas,pwm-rcar"; + reg = <0 0xe6e33000 0 0x8>; + clocks = <&mstp5_clks R8A7745_CLK_PWM>; + power-domains = <&cpg_clocks>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm4: pwm at e6e34000 { + compatible = "renesas,pwm-r8a7745", "renesas,pwm-rcar"; + reg = <0 0xe6e34000 0 0x8>; + clocks = <&mstp5_clks R8A7745_CLK_PWM>; + power-domains = <&cpg_clocks>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm5: pwm at e6e35000 { + compatible = "renesas,pwm-r8a7745", "renesas,pwm-rcar"; + reg = <0 0xe6e35000 0 0x8>; + clocks = <&mstp5_clks R8A7745_CLK_PWM>; + power-domains = <&cpg_clocks>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm6: pwm at e6e36000 { + compatible = "renesas,pwm-r8a7745", "renesas,pwm-rcar"; + reg = <0 0xe6e36000 0 0x8>; + clocks = <&mstp5_clks R8A7745_CLK_PWM>; + power-domains = <&cpg_clocks>; + #pwm-cells = <2>; + status = "disabled"; + }; + pci0: pci at ee090000 { compatible = "renesas,pci-r8a7745", "renesas,pci-rcar-gen2";
Signature · 1 line
2.7.4
PATCH 2/2 ARM: dts: r8a7745: Add TPU support
In reply to Fabrizio CastroAdd TPU support to SoC DT.
(moved node to a better location to allow for better sorting. modified clocks and power-domains properties. removed resets property)
--- arch/arm/boot/dts/r8a7745.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/r8a7745.dtsi +9 -0
@@ -173,6 +173,15 @@ reg = <0 0xe6060000 0 0x11c>; }; + tpu: pwm at e60f0000 { + compatible = "renesas,tpu-r8a7745", "renesas,tpu"; + reg = <0 0xe60f0000 0 0x148>; + clocks = <&mstp3_clks R8A7745_CLK_TPU0>; + power-domains = <&cpg_clocks>; + #pwm-cells = <3>; + status = "disabled"; + }; + gic: interrupt-controller at f1001000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;
Signature · 1 line
2.7.4
Ben Hutchings
Appliedcover Add PWM and TPU support
In reply to Fabrizio CastroQuoted 6 lines · Fabrizio Castro
Hello Ben,
this series backports PWM and TPU support for the r8a7745 SoC, and it applies on top of branch linux-4.4.y-cip, commit
4d769b2b8749e89dfc7ea179a44f652dcfbedb37("PM / OPP: Move error message to debug level").
Applied, thanks.
Ben.
Signature · 3 lines
Ben Hutchings, Software Developer ? Codethink Ltd
https://www.codethink.co.uk/ Dale House, 35 Dale Street
Manchester, M1 2HF, United Kingdom