devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add R8A7791 EtherAVB DT support
@ 2015-12-02 22:19 Sergei Shtylyov
  2015-12-02 22:21 ` [PATCH 1/2] ARM: shmobile: r8a7791: add EtherAVB clock Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2015-12-02 22:19 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20151201-v4.4-rc3' tag. Here we add the EtherAVB device tree
support for the R8A7791 SoC. The 2nd patch depends on the Simon's recent
EtherAVB driver patches in order to work...

[1/2] ARM: shmobile: r8a7791: add EtherAVB clock
[2/2] ARM: shmobile: r8a7791: add EtherAVB DT support

WBR, Sergei


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

* [PATCH 1/2] ARM: shmobile: r8a7791: add EtherAVB clock
  2015-12-02 22:19 [PATCH 0/2] Add R8A7791 EtherAVB DT support Sergei Shtylyov
@ 2015-12-02 22:21 ` Sergei Shtylyov
  2015-12-02 22:23 ` [PATCH 2/2] ARM: shmobile: r8a7791: add EtherAVB DT support Sergei Shtylyov
  2015-12-04 14:00 ` [PATCH 0/2] Add R8A7791 " Sergei Shtylyov
  2 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2015-12-02 22:21 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak
  Cc: devicetree, magnus.damm, linux, linux-arm-kernel

Add the EtherAVB clock to the R8A7791 device tree.

Based on the commit 63d2d750c902 ("ARM: shmobile: r8a7790: add EtherAVB
clocks").

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7791.dtsi            |   10 ++++++----
 include/dt-bindings/clock/r8a7791-clock.h |    1 +
 2 files changed, 7 insertions(+), 4 deletions(-)

Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi
+++ renesas/arch/arm/boot/dts/r8a7791.dtsi
@@ -1329,16 +1329,18 @@
 			compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
 			clocks = <&zx_clk>, <&hp_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 = <
 				R8A7791_CLK_IPMMU_SGX R8A7791_CLK_MLB
 				R8A7791_CLK_VIN2 R8A7791_CLK_VIN1 R8A7791_CLK_VIN0
-				R8A7791_CLK_ETHER R8A7791_CLK_SATA1 R8A7791_CLK_SATA0
+				R8A7791_CLK_ETHERAVB R8A7791_CLK_ETHER
+				R8A7791_CLK_SATA1 R8A7791_CLK_SATA0
 			>;
 			clock-output-names =
-				"ipmmu_sgx", "mlb", "vin2", "vin1", "vin0", "ether",
-				"sata1", "sata0";
+				"ipmmu_sgx", "mlb", "vin2", "vin1", "vin0",
+				"etheravb", "ether", "sata1", "sata0";
 		};
 		mstp9_clks: mstp9_clks@e6150994 {
 			compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
Index: renesas/include/dt-bindings/clock/r8a7791-clock.h
===================================================================
--- renesas.orig/include/dt-bindings/clock/r8a7791-clock.h
+++ renesas/include/dt-bindings/clock/r8a7791-clock.h
@@ -102,6 +102,7 @@
 #define R8A7791_CLK_VIN2		9
 #define R8A7791_CLK_VIN1		10
 #define R8A7791_CLK_VIN0		11
+#define R8A7791_CLK_ETHERAVB		12
 #define R8A7791_CLK_ETHER		13
 #define R8A7791_CLK_SATA1		14
 #define R8A7791_CLK_SATA0		15


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

* [PATCH 2/2] ARM: shmobile: r8a7791: add EtherAVB DT support
  2015-12-02 22:19 [PATCH 0/2] Add R8A7791 EtherAVB DT support Sergei Shtylyov
  2015-12-02 22:21 ` [PATCH 1/2] ARM: shmobile: r8a7791: add EtherAVB clock Sergei Shtylyov
@ 2015-12-02 22:23 ` Sergei Shtylyov
  2015-12-04 14:00 ` [PATCH 0/2] Add R8A7791 " Sergei Shtylyov
  2 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2015-12-02 22:23 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Define the generic R8A7791 part of the EtherAVB device node. 

Based on the commit f25d6b977240 ("ARM: shmobile: r8a7790: add EtherAVB DT
support").

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7791.dtsi |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi
+++ renesas/arch/arm/boot/dts/r8a7791.dtsi
@@ -785,6 +785,18 @@
 		status = "disabled";
 	};
 
+	avb: ethernet@e6800000 {
+		compatible = "renesas,etheravb-r8a7791",
+			     "renesas,etheravb-rcar-gen2";
+		reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
+		interrupts = <0 163 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp8_clks R8A7791_CLK_ETHERAVB>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
 	sata0: sata@ee300000 {
 		compatible = "renesas,sata-r8a7791";
 		reg = <0 0xee300000 0 0x2000>;


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

* Re: [PATCH 0/2] Add R8A7791 EtherAVB DT support
  2015-12-02 22:19 [PATCH 0/2] Add R8A7791 EtherAVB DT support Sergei Shtylyov
  2015-12-02 22:21 ` [PATCH 1/2] ARM: shmobile: r8a7791: add EtherAVB clock Sergei Shtylyov
  2015-12-02 22:23 ` [PATCH 2/2] ARM: shmobile: r8a7791: add EtherAVB DT support Sergei Shtylyov
@ 2015-12-04 14:00 ` Sergei Shtylyov
  2015-12-07  6:14   ` Simon Horman
  2 siblings, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2015-12-04 14:00 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Hello.

On 12/3/2015 1:19 AM, Sergei Shtylyov wrote:

>     Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20151201-v4.4-rc3' tag. Here we add the EtherAVB device tree
> support for the R8A7791 SoC. The 2nd patch depends on the Simon's recent
> EtherAVB driver patches in order to work...

    Well, not exactly "work", as the node is disabled. Anyway, Simon's patches 
got merged to net-next.git by Dave, so I think this series can be merged now 
as well...

> [1/2] ARM: shmobile: r8a7791: add EtherAVB clock
> [2/2] ARM: shmobile: r8a7791: add EtherAVB DT support

MBR, Sergei


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

* Re: [PATCH 0/2] Add R8A7791 EtherAVB DT support
  2015-12-04 14:00 ` [PATCH 0/2] Add R8A7791 " Sergei Shtylyov
@ 2015-12-07  6:14   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2015-12-07  6:14 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
	galak, devicetree, magnus.damm, linux, linux-arm-kernel

On Fri, Dec 04, 2015 at 05:00:37PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
> On 12/3/2015 1:19 AM, Sergei Shtylyov wrote:
> 
> >    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> >'renesas-devel-20151201-v4.4-rc3' tag. Here we add the EtherAVB device tree
> >support for the R8A7791 SoC. The 2nd patch depends on the Simon's recent
> >EtherAVB driver patches in order to work...
> 
>    Well, not exactly "work", as the node is disabled. Anyway, Simon's
> patches got merged to net-next.git by Dave, so I think this series can be
> merged now as well...

Thanks, I have queued these up.

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

end of thread, other threads:[~2015-12-07  6:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02 22:19 [PATCH 0/2] Add R8A7791 EtherAVB DT support Sergei Shtylyov
2015-12-02 22:21 ` [PATCH 1/2] ARM: shmobile: r8a7791: add EtherAVB clock Sergei Shtylyov
2015-12-02 22:23 ` [PATCH 2/2] ARM: shmobile: r8a7791: add EtherAVB DT support Sergei Shtylyov
2015-12-04 14:00 ` [PATCH 0/2] Add R8A7791 " Sergei Shtylyov
2015-12-07  6:14   ` Simon Horman

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).