Skip to contentSkip to conversation

Add R8A7792 VSP1V support

PATCH New Sergei Shtylyov 3 participants 6 messages Aug 19, 2016 – Aug 23, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover Add R8A7792 VSP1V support

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160817-v4.8-rc2' tag. We're adding the R8A7792 VSP1V clocks and device nodes. The 2nd patch depends on the VSP1 driver patch in order for the VSP1V core to be recognized by the driver. The patches have been tested on the Blanche board...

[1/2] ARM: dts: r8a7792: add VSP1V clocks
[2/2] ARM: dts: r8a7792: add VSP1V support

WBR, Sergei

#1 lore raw

PATCH 1/2 ARM: dts: r8a7792: add VSP1V clocks

Describe the VSP1V clocks in the R8A7792 device tree.

---
 arch/arm/boot/dts/r8a7792.dtsi |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
arch/arm/boot/dts/r8a7792.dtsi +8 -3
Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
@@ -757,10 +757,15 @@
 			compatible = "renesas,r8a7792-mstp-clocks",
 				     "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
-			clocks = <&m2_clk>;
+			clocks = <&m2_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>;
 			#clock-cells = <1>;
-			clock-indices = <R8A7792_CLK_JPU>;
-			clock-output-names = "jpu";
+			clock-indices = <
+				R8A7792_CLK_JPU
+				R8A7792_CLK_VSP1DU1 R8A7792_CLK_VSP1DU0
+				R8A7792_CLK_VSP1_SY
+			>;
+			clock-output-names = "jpu", "vsp1du1", "vsp1du0",
+					     "vsp1-sy";
 		};
 		mstp2_clks: mstp2_clks at e6150138 {
 			compatible = "renesas,r8a7792-mstp-clocks",
#2 lore raw

PATCH 1/2 ARM: dts: r8a7792: add VSP1V clocks

Quoted 3 lines · Sergei Shtylyov

Describe the VSP1V clocks in the R8A7792 device tree.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#3 lore raw

PATCH 2/2 ARM: dts: r8a7792: add VSP1V support

In reply to Sergei Shtylyov

Describe 3 instances (VSPS, VSPD0, and VSPD1) of the VSP1V in the R8A7792 device tree.

---
 arch/arm/boot/dts/r8a7792.dtsi |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm/boot/dts/r8a7792.dtsi +24 -0
Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
@@ -668,6 +668,30 @@
 			status = "disabled";
 		};
 
+		vsp1 at fe928000 {
+			compatible = "renesas,vsp1";
+			reg = <0 0xfe928000 0 0x8000>;
+			interrupts = <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp1_clks R8A7792_CLK_VSP1_SY>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+		};
+
+		vsp1 at fe930000 {
+			compatible = "renesas,vsp1";
+			reg = <0 0xfe930000 0 0x8000>;
+			interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp1_clks R8A7792_CLK_VSP1DU0>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+		};
+
+		vsp1 at fe938000 {
+			compatible = "renesas,vsp1";
+			reg = <0 0xfe938000 0 0x8000>;
+			interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp1_clks R8A7792_CLK_VSP1DU1>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+		};
+
 		/* Special CPG clocks */
 		cpg_clocks: cpg_clocks at e6150000 {
 			compatible = "renesas,r8a7792-cpg-clocks",
#4 lore raw

PATCH 2/2 ARM: dts: r8a7792: add VSP1V support

Quoted 4 lines · Sergei Shtylyov

Describe 3 instances (VSPS, VSPD0, and VSPD1) of the VSP1V in the R8A7792 device tree.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#5 lore raw

cover Add R8A7792 VSP1V support

In reply to Sergei Shtylyov
Quoted 10 lines · Sergei Shtylyov

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160817-v4.8-rc2' tag. We're adding the R8A7792 VSP1V clocks and device nodes. The 2nd patch depends on the VSP1 driver patch in order for the VSP1V core to be recognized by the driver. The patches have been tested on the Blanche board...

[1/2] ARM: dts: r8a7792: add VSP1V clocks
[2/2] ARM: dts: r8a7792: add VSP1V support

Thanks, I have queued these up.