devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board
@ 2014-02-19 23:24 Sergei Shtylyov
  2014-02-19 23:27 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add Ether DT support Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-02-19 23:24 UTC (permalink / raw)
  To: horms, linux-sh, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel, robh+dt, pawel.moll,
	mark.rutland, ijc+devicetree, galak

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.14-rc3-20140218' tag. Here we add the Ether device tree
support on the R8A7791/Koelsch reference board. The patchset requires
the 'sh_eth' driver device tree support just merged to the 'net-next.git' repo
in order to work.

[1/2] ARM: shmobile: r8a7791: add Ether DT support
[2/2] ARM: shmobile: koelsch: add Ether DT support

WBR, Sergei

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

* [PATCH v2 1/2] ARM: shmobile: r8a7791: add Ether DT support
  2014-02-19 23:24 [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
@ 2014-02-19 23:27 ` Sergei Shtylyov
  2014-02-19 23:28 ` [PATCH v2 2/2] ARM: shmobile: koelsch: " Sergei Shtylyov
  2014-02-24  0:33 ` [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-02-19 23:27 UTC (permalink / raw)
  To: horms, linux-sh, devicetree, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak
  Cc: magnus.damm, linux, linux-arm-kernel

Define the generic R8A7791 part of the Ether device node. 

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

---
Changes in version 2:
- removed now redundant "interrupt-parent" property;
- refreshed the patch.

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

Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi
+++ renesas/arch/arm/boot/dts/r8a7791.dtsi
@@ -2,7 +2,8 @@
  * Device Tree Source for the r8a7791 SoC
  *
  * Copyright (C) 2013 Renesas Electronics Corporation
- * Copyright (C) 2013 Renesas Solutions Corp.
+ * Copyright (C) 2013-2014 Renesas Solutions Corp.
+ * Copyright (C) 2014 Cogent Embedded Inc.
  *
  * This file is licensed under the terms of the GNU General Public License
  * version 2.  This program is licensed "as is" without any warranty of any
@@ -407,6 +408,17 @@
 		status = "disabled";
 	};
 
+	ether: ethernet@ee700000 {
+		compatible = "renesas,ether-r8a7791";
+		reg = <0 0xee700000 0 0x400>;
+		interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp8_clks R8A7791_CLK_ETHER>;
+		phy-mode = "rmii";
+		#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] 4+ messages in thread

* [PATCH v2 2/2] ARM: shmobile: koelsch: add Ether DT support
  2014-02-19 23:24 [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
  2014-02-19 23:27 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add Ether DT support Sergei Shtylyov
@ 2014-02-19 23:28 ` Sergei Shtylyov
  2014-02-24  0:33 ` [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-02-19 23:28 UTC (permalink / raw)
  To: horms, linux-sh, devicetree, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak
  Cc: magnus.damm, linux, linux-arm-kernel

Define the Koelsch board dependent part of the Ether device node. 

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

---
Changes in version 2:
- moved PHY pin node phandle from PHY device node to the Ether device node, thus
  removing all pin control properties from the PHY node;
- refreshed the patch.

 arch/arm/boot/dts/r8a7791-koelsch.dts |   28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

Index: renesas/arch/arm/boot/dts/r8a7791-koelsch.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ renesas/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -2,7 +2,8 @@
  * Device Tree Source for the Koelsch board
  *
  * Copyright (C) 2013 Renesas Electronics Corporation
- * Copyright (C) 2013 Renesas Solutions Corp.
+ * Copyright (C) 2013-2014 Renesas Solutions Corp.
+ * Copyright (C) 2014 Cogent Embedded, Inc.
  *
  * This file is licensed under the terms of the GNU General Public License
  * version 2.  This program is licensed "as is" without any warranty of any
@@ -146,12 +147,37 @@
 		renesas,function = "scif1";
 	};
 
+	ether_pins: ether {
+		renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
+		renesas,function = "eth";
+	};
+
+	phy1_pins: phy1 {
+		renesas,groups = "intc_irq0";
+		renesas,function = "intc";
+	};
+
 	qspi_pins: spi {
 		renesas,groups = "qspi_ctrl", "qspi_data4";
 		renesas,function = "qspi";
 	};
 };
 
+&ether {
+	pinctrl-0 = <&ether_pins &phy1_pins>;
+	pinctrl-names = "default";
+
+	phy-handle = <&phy1>;
+	renesas,ether-link-active-low;
+	status = "ok";
+
+	phy1: ethernet-phy@1 {
+		reg = <1>;
+		interrupt-parent = <&irqc0>;
+		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+	};
+};
+
 &sata0 {
 	status = "okay";
 };

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

* Re: [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board
  2014-02-19 23:24 [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
  2014-02-19 23:27 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add Ether DT support Sergei Shtylyov
  2014-02-19 23:28 ` [PATCH v2 2/2] ARM: shmobile: koelsch: " Sergei Shtylyov
@ 2014-02-24  0:33 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-02-24  0:33 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-sh, devicetree, magnus.damm, linux, linux-arm-kernel,
	robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak

On Thu, Feb 20, 2014 at 02:24:59AM +0300, Sergei Shtylyov wrote:
> Hello.
> 
>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-v3.14-rc3-20140218' tag. Here we add the Ether device tree
> support on the R8A7791/Koelsch reference board. The patchset requires
> the 'sh_eth' driver device tree support just merged to the 'net-next.git' repo
> in order to work.
> 
> [1/2] ARM: shmobile: r8a7791: add Ether DT support
> [2/2] ARM: shmobile: koelsch: add Ether DT support

Thanks, I have queued these up.

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

end of thread, other threads:[~2014-02-24  0:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 23:24 [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
2014-02-19 23:27 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add Ether DT support Sergei Shtylyov
2014-02-19 23:28 ` [PATCH v2 2/2] ARM: shmobile: koelsch: " Sergei Shtylyov
2014-02-24  0:33 ` [PATCH v2 0/2] Add Ether DT support for R8A7791/Koelsch reference board 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).