Add Ether DT support for R8A7790/Lager reference board
v2 cover Add Ether DT support for R8A7790/Lager reference board
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 R8A7790/Lager 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: r8a7790: add Ether DT support [2/2] ARM: shmobile: lager: add Ether DT support
WBR, Sergei
PATCH v2 1/2 ARM: shmobile: r8a7790: add Ether DT support
Define the generic R8A7790 part of the Ether device node.
---
Changes in version 2:
- removed now redundant "interrupt-parent" property;
- refreshed the patch.
arch/arm/boot/dts/r8a7790.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
Index: renesas/arch/arm/boot/dts/r8a7790.dtsi =================================--- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi +++ renesas/arch/arm/boot/dts/r8a7790.dtsi
@@ -1,7 +1,8 @@
/*
* Device Tree Source for the r8a7790 SoC
*
- * 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
@@ -379,6 +380,17 @@
status = "disabled";
};
+ ether: ethernet@ee700000 {
+ compatible = "renesas,ether-r8a7790";
+ reg = <0 0xee700000 0 0x400>;
+ interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
+ phy-mode = "rmii";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
sata0: sata@ee300000 {
compatible = "renesas,sata-r8a7790"; reg = <0 0xee300000 0 0x2000>;
PATCH v2 2/2 ARM: shmobile: lager: add Ether DT support
In reply to Sergei ShtylyovDefine the Lager board dependent part of the Ether device node.
---
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;
- resolved reject.
arch/arm/boot/dts/r8a7790-lager.dts | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)
Index: renesas/arch/arm/boot/dts/r8a7790-lager.dts =================================--- renesas.orig/arch/arm/boot/dts/r8a7790-lager.dts +++ renesas/arch/arm/boot/dts/r8a7790-lager.dts
@@ -1,7 +1,8 @@
/*
* Device Tree Source for the Lager board
*
- * 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
@@ -124,6 +125,16 @@
renesas,function = "scif0";
};
+ ether_pins: ether {
+ renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
+ renesas,function = "eth";
+ };
+
+ phy1_pins: phy1 {
+ renesas,groups = "intc_irq0";
+ renesas,function = "intc";
+ };
+
scif1_pins: serial1 {
renesas,groups = "scif1_data";
renesas,function = "scif1";
@@ -150,6 +161,21 @@
};
};
+ðer {
+ pinctrl-0 = <ðer_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>;
+ };
+};
+
&mmcif1 {
pinctrl-0 = <&mmc1_pins>;
pinctrl-names = "default";
v2 cover Add Ether DT support for R8A7790/Lager reference board
In reply to Sergei ShtylyovQuoted 10 lines · Sergei Shtylyov
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 R8A7790/Lager 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: r8a7790: add Ether DT support [2/2] ARM: shmobile: lager: add Ether DT support
Thanks, I have queued these up.