Skip to contentSkip to conversation

ARM: shmobile: r8a7794: Add SGX, MMP and VSP1 to device tree

PATCH New Simon Horman 2 participants 4 messages Nov 12, 2014 – Nov 17, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: shmobile: r8a7794: Add SGX, MMP and VSP1 to device tree

Hi,

this short series adds SGX, MMP and VSP1 clocks to device tree for the r8a7794 SoC

Based on the renesas-devel-20141112-v3.18-rc4 tag of my renesas tree

Changes between v1 and v2
* Drop VIN patch which has been queued up
* Address review by Geert Uytterhoeven as noted in per-patch changelogs

Kouei Abe (1):
ARM: shmobile: r8a7794: Add SGX clock to device tree

Yoshifumi Hosoya (1):
ARM: shmobile: r8a7794: Add MMP and VSP1 clocks to device tree

 arch/arm/boot/dts/r8a7794.dtsi            | 15 +++++++++------
 include/dt-bindings/clock/r8a7794-clock.h |  7 +++++++
 2 files changed, 16 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.1
#1 lore raw

PATCH v2 1/2 ARM: shmobile: r8a7794: Add SGX clock to device tree

From: Kouei Abe <[email protected]>

---
v2
* As suggested by Geert Uytterhoeven
- Use "3dg" for names

---
 arch/arm/boot/dts/r8a7794.dtsi            | 11 +++++------
 include/dt-bindings/clock/r8a7794-clock.h |  1 +
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/r8a7794.dtsi +5 -6
index 95f656d..b6f8f45 100644
@@ -461,16 +461,15 @@
 		mstp1_clks: mstp1_clks at e6150134 {
 			compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
-			clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
-				 <&cp_clk>,
-				 <&zs_clk>, <&zs_clk>, <&zs_clk>;
+			clocks = <&p_clk>, <&zg_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
+				 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>;
 			#clock-cells = <1>;
 			renesas,clock-indices = <
-				R8A7794_CLK_TMU1 R8A7794_CLK_TMU3 R8A7794_CLK_TMU2
-				R8A7794_CLK_CMT0 R8A7794_CLK_TMU0
+				R8A7794_CLK_TMU1 R8A7794_CLK_3DG R8A7794_CLK_TMU3
+				R8A7794_CLK_TMU2 R8A7794_CLK_CMT0 R8A7794_CLK_TMU0
 			>;
 			clock-output-names =
-				"tmu1", "tmu3", "tmu2", "cmt0", "tmu0";
+				"tmu1", "3dg", "tmu3", "tmu2", "cmt0", "tmu0";
 		};
 		mstp2_clks: mstp2_clks at e6150138 {
 			compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
include/dt-bindings/clock/r8a7794-clock.h +1 -0
index fd7cdee..9066213 100644
@@ -27,6 +27,7 @@
 
 /* MSTP1 */
 #define R8A7794_CLK_TMU1		11
+#define R8A7794_CLK_3DG			12
 #define R8A7794_CLK_TMU3		21
 #define R8A7794_CLK_TMU2		22
 #define R8A7794_CLK_CMT0		24
Signature · 1 line
2.1.1
#2 lore raw

PATCH v2 2/2 ARM: shmobile: r8a7794: Add MMP and VSP1 clocks to device tree

In reply to Simon Horman

From: Yoshifumi Hosoya <[email protected]>

---
v2
* As suggested by Geert Uytterhoeven
- Use "2ddmac" and "fdp1-0" for names

---
 arch/arm/boot/dts/r8a7794.dtsi            | 14 +++++++++-----
 include/dt-bindings/clock/r8a7794-clock.h |  6 ++++++
 2 files changed, 15 insertions(+), 5 deletions(-)
arch/arm/boot/dts/r8a7794.dtsi +9 -5
index b6f8f45..19c9de3 100644
@@ -461,15 +461,19 @@
 		mstp1_clks: mstp1_clks at e6150134 {
 			compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
-			clocks = <&p_clk>, <&zg_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
-				 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>;
+			clocks = <&zs_clk>, <&zs_clk>, <&p_clk>, <&zg_clk>, <&zs_clk>,
+				 <&zs_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, <&cp_clk>,
+				 <&zs_clk>, <&zs_clk>;
 			#clock-cells = <1>;
 			renesas,clock-indices = <
-				R8A7794_CLK_TMU1 R8A7794_CLK_3DG R8A7794_CLK_TMU3
-				R8A7794_CLK_TMU2 R8A7794_CLK_CMT0 R8A7794_CLK_TMU0
+				R8A7794_CLK_VCP0 R8A7794_CLK_VPC0 R8A7794_CLK_TMU1
+				R8A7794_CLK_3DG R8A7794_CLK_2DDMAC R8A7794_CLK_FDP1_0
+				R8A7794_CLK_TMU3 R8A7794_CLK_TMU2 R8A7794_CLK_CMT0
+				R8A7794_CLK_TMU0 R8A7794_CLK_VSP1_DU0 R8A7794_CLK_VSP1_S
 			>;
 			clock-output-names =
-				"tmu1", "3dg", "tmu3", "tmu2", "cmt0", "tmu0";
+				"vcp0", "vpc0", "tmu1", "3dg", "2ddmac", "fdp1-0",
+				"tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du0", "vsps";
 		};
 		mstp2_clks: mstp2_clks at e6150138 {
 			compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
include/dt-bindings/clock/r8a7794-clock.h +6 -0
index 9066213..aa9c286 100644
@@ -26,12 +26,18 @@
 #define R8A7794_CLK_MSIOF0		0
 
 /* MSTP1 */
+#define R8A7794_CLK_VCP0		1
+#define R8A7794_CLK_VPC0		3
 #define R8A7794_CLK_TMU1		11
 #define R8A7794_CLK_3DG			12
+#define R8A7794_CLK_2DDMAC		15
+#define R8A7794_CLK_FDP1_0		19
 #define R8A7794_CLK_TMU3		21
 #define R8A7794_CLK_TMU2		22
 #define R8A7794_CLK_CMT0		24
 #define R8A7794_CLK_TMU0		25
+#define R8A7794_CLK_VSP1_DU0		28
+#define R8A7794_CLK_VSP1_S		31
 
 /* MSTP2 */
 #define R8A7794_CLK_SCIFA2		2
Signature · 1 line
2.1.1
#3 lore raw

v2 cover ARM: shmobile: r8a7794: Add SGX, MMP and VSP1 to device tree

In reply to Simon Horman
Quoted 14 lines · Simon Horman

Hi,

this short series adds SGX, MMP and VSP1 clocks to device tree for the r8a7794 SoC

Based on the renesas-devel-20141112-v3.18-rc4 tag of my renesas tree

Changes between v1 and v2
* Drop VIN patch which has been queued up
* Address review by Geert Uytterhoeven as noted in per-patch changelogs

Kouei Abe (1):
ARM: shmobile: r8a7794: Add SGX clock to device tree

Quoted 6 lines

Yoshifumi Hosoya (1):
ARM: shmobile: r8a7794: Add MMP and VSP1 clocks to device tree

 arch/arm/boot/dts/r8a7794.dtsi            | 15 +++++++++------
 include/dt-bindings/clock/r8a7794-clock.h |  7 +++++++
 2 files changed, 16 insertions(+), 6 deletions(-)

I have queued up this series.