Skip to contentSkip to conversation

Add R8A7790 EtherAVB DT support

PATCH New Sergei Shtylyov 2 participants 5 messages Jun 15, 2015 – Jun 17, 2015

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

v2 cover Add R8A7790 EtherAVB DT support

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20150610-v4.1-rc7' tag. Here we add the EtherAVB device tree support for the R8A7790 SoC. The 2nd patch depends on the EtherAVB driver merged into the 'net-next.git' repo recently for the bindings...

[1/2] ARM: shmobile: r8a7790: add EtherAVB clocks [2/2] ARM: shmobile: r8a7790: add EtherAVB DT support

WBR, Sergei

#1 lore raw

PATCH v2 1/2 ARM: shmobile: r8a7790: add EtherAVB clocks

Add the EtherAVB clock to the R8A7790 device tree.

Based on original patch by Mitsuhiro Kimura <[email protected]>.

---
Changes in version 2:
- fixed the order of the clock property values;
- refreshed the patch.

 arch/arm/boot/dts/r8a7790.dtsi            |   10 ++++++----
 include/dt-bindings/clock/r8a7790-clock.h |    1 +
 2 files changed, 7 insertions(+), 4 deletions(-)
arch/arm/boot/dts/r8a7790.dtsi +6 -4
Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
===================================================================
@@ -1249,16 +1249,18 @@
 			compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
 			clocks = <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>,
-			         <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>;
+			         <&zg_clk>, <&hp_clk>, <&p_clk>, <&zs_clk>,
+				 <&zs_clk>;
 			#clock-cells = <1>;
 			clock-indices = <
 				R8A7790_CLK_MLB R8A7790_CLK_VIN3 R8A7790_CLK_VIN2
-				R8A7790_CLK_VIN1 R8A7790_CLK_VIN0 R8A7790_CLK_ETHER
+				R8A7790_CLK_VIN1 R8A7790_CLK_VIN0
+				R8A7790_CLK_ETHERAVB R8A7790_CLK_ETHER
 				R8A7790_CLK_SATA1 R8A7790_CLK_SATA0
 			>;
 			clock-output-names =
-				"mlb", "vin3", "vin2", "vin1", "vin0", "ether",
-				"sata1", "sata0";
+				"mlb", "vin3", "vin2", "vin1", "vin0",
+				"etheravb", "ether", "sata1", "sata0";
 		};
 		mstp9_clks: mstp9_clks at e6150994 {
 			compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
include/dt-bindings/clock/r8a7790-clock.h +1 -0
Index: renesas/include/dt-bindings/clock/r8a7790-clock.h
===================================================================
@@ -108,6 +108,7 @@
 #define R8A7790_CLK_VIN2		9
 #define R8A7790_CLK_VIN1		10
 #define R8A7790_CLK_VIN0		11
+#define R8A7790_CLK_ETHERAVB		12
 #define R8A7790_CLK_ETHER		13
 #define R8A7790_CLK_SATA1		14
 #define R8A7790_CLK_SATA0		15
#2 lore raw

PATCH v2 2/2 ARM: shmobile: r8a7790: add EtherAVB DT support

In reply to Sergei Shtylyov

Define the generic R8A7790 part of the EtherAVB device node.

Based on original patch by Mitsuhiro Kimura <[email protected]>.

---
Changes in version 2:
- changed the "compatible" property to match the driver;
- refreshed the patch.

 arch/arm/boot/dts/r8a7790.dtsi |   10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/r8a7790.dtsi +10 -0
Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
===================================================================
@@ -671,6 +671,16 @@
 		status = "disabled";
 	};
 
+	avb: ethernet at e6800000 {
+		compatible = "renesas,etheravb-r8a7790";
+		reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
+		interrupts = <0 163 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp8_clks R8A7790_CLK_ETHERAVB>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
 	sata0: sata at ee300000 {
 		compatible = "renesas,sata-r8a7790";
 		reg = <0 0xee300000 0 0x2000>;
#3 lore raw

v2 cover Add R8A7790 EtherAVB DT support

In reply to Sergei Shtylyov
Quoted 9 lines · Sergei Shtylyov

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20150610-v4.1-rc7' tag. Here we add the EtherAVB device tree support for the R8A7790 SoC. The 2nd patch depends on the EtherAVB driver merged into the 'net-next.git' repo recently for the bindings...

[1/2] ARM: shmobile: r8a7790: add EtherAVB clocks [2/2] ARM: shmobile: r8a7790: add EtherAVB DT support

Thanks Sergei, I have queued these up.

#4 lore raw

v2 cover Add R8A7790 EtherAVB DT support

Quoted 8 lines · Simon Horman
Quoted 7 lines · Sergei Shtylyov

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20150610-v4.1-rc7' tag. Here we add the EtherAVB device tree support for the R8A7790 SoC. The 2nd patch depends on the EtherAVB driver merged into the 'net-next.git' repo recently for the bindings...

Quoted 4 lines
Quoted 2 lines

[1/2] ARM: shmobile: r8a7790: add EtherAVB clocks [2/2] ARM: shmobile: r8a7790: add EtherAVB DT support

Thanks Sergei, I have queued these up.

Please consider submitting patches to enable the new driver in shmobile_defconfig and multi_v7_defconfig.