cip-dev.lists.cip-project.org archive mirror
 help / color / mirror / Atom feed
* [cip-dev] [PATCH 0/2] Add PWM and TPU support
@ 2018-07-24 10:32 Fabrizio Castro
  2018-07-24 10:32 ` [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PWM SoC support Fabrizio Castro
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrizio Castro @ 2018-07-24 10:32 UTC (permalink / raw)
  To: cip-dev

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(+)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PWM SoC support
  2018-07-24 10:32 [cip-dev] [PATCH 0/2] Add PWM and TPU support Fabrizio Castro
@ 2018-07-24 10:32 ` Fabrizio Castro
  2018-07-24 10:32 ` [cip-dev] [PATCH 2/2] ARM: dts: r8a7745: Add TPU support Fabrizio Castro
  2018-08-24 19:03 ` [cip-dev] [PATCH 0/2] Add PWM and " Ben Hutchings
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrizio Castro @ 2018-07-24 10:32 UTC (permalink / raw)
  To: cip-dev

Add the definitions for pwm[0123456] to the SoC .dtsi.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit 3711d0ede24d2e3c90ae10e1a79746ac87169609)
(modified clocks and power-domains properties. removed resets
property)
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Biju Das <biju.das@bp.renesas.com>
---
 arch/arm/boot/dts/r8a7745.dtsi | 63 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi
index 68ef545..4163ae4 100644
--- a/arch/arm/boot/dts/r8a7745.dtsi
+++ b/arch/arm/boot/dts/r8a7745.dtsi
@@ -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";
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [cip-dev] [PATCH 2/2] ARM: dts: r8a7745: Add TPU support
  2018-07-24 10:32 [cip-dev] [PATCH 0/2] Add PWM and TPU support Fabrizio Castro
  2018-07-24 10:32 ` [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PWM SoC support Fabrizio Castro
@ 2018-07-24 10:32 ` Fabrizio Castro
  2018-08-24 19:03 ` [cip-dev] [PATCH 0/2] Add PWM and " Ben Hutchings
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrizio Castro @ 2018-07-24 10:32 UTC (permalink / raw)
  To: cip-dev

Add TPU support to SoC DT.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit b9db514555274eb325c9b13a0b0587c0e600d75a)
(moved node to a better location to allow for better sorting. modified
clocks and power-domains properties. removed resets property)
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Biju Das <biju.das@bp.renesas.com>
---
 arch/arm/boot/dts/r8a7745.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi
index 4163ae4..6fdd3c2 100644
--- a/arch/arm/boot/dts/r8a7745.dtsi
+++ b/arch/arm/boot/dts/r8a7745.dtsi
@@ -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>;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [cip-dev] [PATCH 0/2] Add PWM and TPU support
  2018-07-24 10:32 [cip-dev] [PATCH 0/2] Add PWM and TPU support Fabrizio Castro
  2018-07-24 10:32 ` [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PWM SoC support Fabrizio Castro
  2018-07-24 10:32 ` [cip-dev] [PATCH 2/2] ARM: dts: r8a7745: Add TPU support Fabrizio Castro
@ 2018-08-24 19:03 ` Ben Hutchings
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2018-08-24 19:03 UTC (permalink / raw)
  To: cip-dev

On Tue, 2018-07-24 at 11:32 +0100, Fabrizio Castro wrote:
> 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.

-- 
Ben Hutchings, Software Developer                ?        Codethink Ltd
https://www.codethink.co.uk/                 Dale House, 35 Dale Street
                                     Manchester, M1 2HF, United Kingdom

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-24 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24 10:32 [cip-dev] [PATCH 0/2] Add PWM and TPU support Fabrizio Castro
2018-07-24 10:32 ` [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PWM SoC support Fabrizio Castro
2018-07-24 10:32 ` [cip-dev] [PATCH 2/2] ARM: dts: r8a7745: Add TPU support Fabrizio Castro
2018-08-24 19:03 ` [cip-dev] [PATCH 0/2] Add PWM and " Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).