devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add R8A7794 EtherAVB DT support
@ 2016-02-17 20:41 Sergei Shtylyov
  2016-02-17 20:43 ` [PATCH 1/2] ARM: dts: r8a7794: add EtherAVB clock Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2016-02-17 20:41 UTC (permalink / raw)
  To: horms, linux-renesas-soc, 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-20160217v2-v4.5-rc4' tag plus the R8A7794 audio patches posted
last week. Here we add the EtherAVB device tree support for the R8A7794 SoC.

[1/2] ARM: dts: r8a7794: add EtherAVB clock
[2/2] ARM: dts: r8a7794: add EtherAVB support

WBR, Sergei

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

* [PATCH 1/2] ARM: dts: r8a7794: add EtherAVB clock
  2016-02-17 20:41 [PATCH 0/2] Add R8A7794 EtherAVB DT support Sergei Shtylyov
@ 2016-02-17 20:43 ` Sergei Shtylyov
  2016-02-17 20:45 ` [PATCH 2/2] ARM: dts: r8a7794: add EtherAVB support Sergei Shtylyov
  2016-02-18  0:00 ` [PATCH 0/2] Add R8A7794 EtherAVB DT support Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2016-02-17 20:43 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Add the EtherAVB clock to the R8A7794 device tree.

Based on the commit eaa870b30553 ("ARM: shmobile: r8a7791: add EtherAVB clock").

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

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

Index: renesas/arch/arm/boot/dts/r8a7794.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi
+++ renesas/arch/arm/boot/dts/r8a7794.dtsi
@@ -1173,13 +1173,14 @@
 		mstp8_clks: mstp8_clks@e6150990 {
 			compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
-			clocks = <&zg_clk>, <&zg_clk>, <&p_clk>;
+			clocks = <&zg_clk>, <&zg_clk>, <&hp_clk>, <&p_clk>;
 			#clock-cells = <1>;
 			clock-indices = <
-				R8A7794_CLK_VIN1 R8A7794_CLK_VIN0 R8A7794_CLK_ETHER
+				R8A7794_CLK_VIN1 R8A7794_CLK_VIN0
+				R8A7794_CLK_ETHERAVB R8A7794_CLK_ETHER
 			>;
 			clock-output-names =
-				"vin1", "vin0", "ether";
+				"vin1", "vin0", "etheravb", "ether";
 		};
 		mstp9_clks: mstp9_clks@e6150994 {
 			compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
Index: renesas/include/dt-bindings/clock/r8a7794-clock.h
===================================================================
--- renesas.orig/include/dt-bindings/clock/r8a7794-clock.h
+++ renesas/include/dt-bindings/clock/r8a7794-clock.h
@@ -85,6 +85,7 @@
 /* MSTP8 */
 #define R8A7794_CLK_VIN1		10
 #define R8A7794_CLK_VIN0		11
+#define R8A7794_CLK_ETHERAVB		12
 #define R8A7794_CLK_ETHER		13
 
 /* MSTP9 */

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

* [PATCH 2/2] ARM: dts: r8a7794: add EtherAVB support
  2016-02-17 20:41 [PATCH 0/2] Add R8A7794 EtherAVB DT support Sergei Shtylyov
  2016-02-17 20:43 ` [PATCH 1/2] ARM: dts: r8a7794: add EtherAVB clock Sergei Shtylyov
@ 2016-02-17 20:45 ` Sergei Shtylyov
  2016-02-18  0:00 ` [PATCH 0/2] Add R8A7794 EtherAVB DT support Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2016-02-17 20:45 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Define the generic R8A7794 part of the EtherAVB device node.

Based on the commit 46ece349aa54 ("ARM: shmobile: r8a7791: add EtherAVB DT
support").

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

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

Index: renesas/arch/arm/boot/dts/r8a7794.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi
+++ renesas/arch/arm/boot/dts/r8a7794.dtsi
@@ -572,6 +572,18 @@
 		status = "disabled";
 	};
 
+	avb: ethernet@e6800000 {
+		compatible = "renesas,etheravb-r8a7794",
+			     "renesas,etheravb-rcar-gen2";
+		reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
+		interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp8_clks R8A7794_CLK_ETHERAVB>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
 	/* The memory map in the User's Manual maps the cores to bus numbers */
 	i2c0: i2c@e6508000 {
 		compatible = "renesas,i2c-r8a7794";

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

* Re: [PATCH 0/2] Add R8A7794 EtherAVB DT support
  2016-02-17 20:41 [PATCH 0/2] Add R8A7794 EtherAVB DT support Sergei Shtylyov
  2016-02-17 20:43 ` [PATCH 1/2] ARM: dts: r8a7794: add EtherAVB clock Sergei Shtylyov
  2016-02-17 20:45 ` [PATCH 2/2] ARM: dts: r8a7794: add EtherAVB support Sergei Shtylyov
@ 2016-02-18  0:00 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2016-02-18  0:00 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-renesas-soc, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree, magnus.damm, linux,
	linux-arm-kernel

On Wed, Feb 17, 2016 at 11:41:57PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20160217v2-v4.5-rc4' tag plus the R8A7794 audio patches posted
> last week. Here we add the EtherAVB device tree support for the R8A7794 SoC.
> 
> [1/2] ARM: dts: r8a7794: add EtherAVB clock
> [2/2] ARM: dts: r8a7794: add EtherAVB support

Thanks, I have queued these up for v4.6.

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

end of thread, other threads:[~2016-02-18  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 20:41 [PATCH 0/2] Add R8A7794 EtherAVB DT support Sergei Shtylyov
2016-02-17 20:43 ` [PATCH 1/2] ARM: dts: r8a7794: add EtherAVB clock Sergei Shtylyov
2016-02-17 20:45 ` [PATCH 2/2] ARM: dts: r8a7794: add EtherAVB support Sergei Shtylyov
2016-02-18  0:00 ` [PATCH 0/2] Add R8A7794 EtherAVB DT support 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).