* [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board
@ 2014-02-06 20:54 Sergei Shtylyov
2014-02-06 20:56 ` [PATCH 1/2] ARM: shmobile: r8a7790: add Ether DT support Sergei Shtylyov
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Sergei Shtylyov @ 2014-02-06 20:54 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.14-rc1-20140206v2' tag. Here we add the Ether device tree
support working on the R8A7790/Lager reference board. The patchset requires the
'sh_eth' driver device tree support posted earlier in order to work.
[1/2] ARM: shmobile: r8a7790: add Ether DT support
[2/2] ARM: shmobile: lager: add Ether DT support
WBR, Sergei
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7790: add Ether DT support
2014-02-06 20:54 [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board Sergei Shtylyov
@ 2014-02-06 20:56 ` Sergei Shtylyov
2014-02-06 20:58 ` [PATCH 2/2] ARM: shmobile: lager: " Sergei Shtylyov
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Sergei Shtylyov @ 2014-02-06 20:56 UTC (permalink / raw)
To: linux-arm-kernel
Define the generic R8A7790 part of the Ether device node.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7790.dtsi | 15 ++++++++++++++-
1 file changed, 14 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
@@ -400,6 +401,18 @@
status = "disabled";
};
+ ether: ethernet@ee700000 {
+ compatible = "renesas,ether-r8a7790";
+ reg = <0 0xee700000 0 0x400>;
+ interrupt-parent = <&gic>;
+ 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>;
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: shmobile: lager: add Ether DT support
2014-02-06 20:54 [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board Sergei Shtylyov
2014-02-06 20:56 ` [PATCH 1/2] ARM: shmobile: r8a7790: add Ether DT support Sergei Shtylyov
@ 2014-02-06 20:58 ` Sergei Shtylyov
2014-02-06 21:09 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
2014-02-13 6:02 ` [PATCH 0/2] Add Ether DT support for R8A7790/Lager " Simon Horman
3 siblings, 0 replies; 10+ messages in thread
From: Sergei Shtylyov @ 2014-02-06 20:58 UTC (permalink / raw)
To: linux-arm-kernel
Define the Lager board dependent part of the Ether device node.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7790-lager.dts | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 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
@@ -76,12 +77,40 @@
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";
+ };
+
mmc1_pins: mmc1 {
renesas,groups = "mmc1_data8", "mmc1_ctrl";
renesas,function = "mmc1";
};
};
+ðer {
+ pinctrl-0 = <ðer_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>;
+
+ pinctrl-0 = <&phy1_pins>;
+ pinctrl-names = "default";
+ };
+};
+
&mmcif1 {
pinctrl-0 = <&mmc1_pins>;
pinctrl-names = "default";
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board
2014-02-06 20:54 [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board Sergei Shtylyov
2014-02-06 20:56 ` [PATCH 1/2] ARM: shmobile: r8a7790: add Ether DT support Sergei Shtylyov
2014-02-06 20:58 ` [PATCH 2/2] ARM: shmobile: lager: " Sergei Shtylyov
@ 2014-02-06 21:09 ` Sergei Shtylyov
2014-02-06 21:14 ` [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support Sergei Shtylyov
2014-02-13 6:03 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Simon Horman
2014-02-13 6:02 ` [PATCH 0/2] Add Ether DT support for R8A7790/Lager " Simon Horman
3 siblings, 2 replies; 10+ messages in thread
From: Sergei Shtylyov @ 2014-02-06 21:09 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.14-rc1-20140206v2' tag. Here we add the Ether device tree
support working on the R8A7791/Koelsch reference board. The patchset requires
the 'sh_eth' driver device tree support posted earlier 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] 10+ messages in thread
* [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support
2014-02-06 21:09 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
@ 2014-02-06 21:14 ` Sergei Shtylyov
2014-02-11 17:01 ` Laurent Pinchart
2014-02-13 6:03 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Simon Horman
1 sibling, 1 reply; 10+ messages in thread
From: Sergei Shtylyov @ 2014-02-06 21:14 UTC (permalink / raw)
To: linux-arm-kernel
Define the Koelsch board dependent part of the Ether device node.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7791-koelsch.dts | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 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
@@ -122,12 +123,40 @@
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";
};
};
+ðer {
+ pinctrl-0 = <ðer_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>;
+
+ pinctrl-0 = <&phy1_pins>;
+ pinctrl-names = "default";
+ };
+};
+
&sata0 {
status = "okay";
};
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support
2014-02-06 21:14 ` [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support Sergei Shtylyov
@ 2014-02-11 17:01 ` Laurent Pinchart
0 siblings, 0 replies; 10+ messages in thread
From: Laurent Pinchart @ 2014-02-11 17:01 UTC (permalink / raw)
To: linux-arm-kernel
Hi Sergei,
Thanks a lot for the patch.
On Friday 07 February 2014 01:14:26 Sergei Shtylyov wrote:
> Define the Koelsch board dependent part of the Ether device node.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
> arch/arm/boot/dts/r8a7791-koelsch.dts | 31 +++++++++++++++++++++++++++++-
> 1 file changed, 30 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
> @@ -122,12 +123,40 @@
> 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";
> };
> };
>
> +ðer {
> + pinctrl-0 = <ðer_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>;
> +
> + pinctrl-0 = <&phy1_pins>;
> + pinctrl-names = "default";
I think the PHY pins should be moved to the ethernet device. The reason for
this is that the PHY device is discovered dynamically at runtime, and has thus
no DT node associated with its struct device to control pinctrl automatically.
This should probably be fixed, but in the meantime moving the PHY pins to the
ethernet device should fix the problem.
As a last step we're missing a DT equivalent to our board code
koelsch_ksz8041_fixup() workaround. Adding a property to specify LEDs usage to
the PHY DT node shouldn't be difficult, but associating that node to the PHY
device and handling the property in the PHY driver will require a bit of work.
Is this on your to-do list ?
> + };
> +};
> +
> &sata0 {
> status = "okay";
> };
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board
2014-02-06 20:54 [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board Sergei Shtylyov
` (2 preceding siblings ...)
2014-02-06 21:09 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
@ 2014-02-13 6:02 ` Simon Horman
2014-02-18 22:40 ` Sergei Shtylyov
3 siblings, 1 reply; 10+ messages in thread
From: Simon Horman @ 2014-02-13 6:02 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Feb 07, 2014 at 12:54:38AM +0300, Sergei Shtylyov wrote:
> Hello.
>
> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-v3.14-rc1-20140206v2' tag. Here we add the Ether device tree
> support working on the R8A7790/Lager reference board. The patchset requires the
> 'sh_eth' driver device tree support posted earlier in order to work.
>
> [1/2] ARM: shmobile: r8a7790: add Ether DT support
> [2/2] ARM: shmobile: lager: add Ether DT support
Thanks. Please repost this series once the bindings have been accepted.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board
2014-02-06 21:09 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
2014-02-06 21:14 ` [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support Sergei Shtylyov
@ 2014-02-13 6:03 ` Simon Horman
1 sibling, 0 replies; 10+ messages in thread
From: Simon Horman @ 2014-02-13 6:03 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Feb 07, 2014 at 01:10:17AM +0300, Sergei Shtylyov wrote:
> Hello.
>
> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-v3.14-rc1-20140206v2' tag. Here we add the Ether device tree
> support working on the R8A7791/Koelsch reference board. The patchset requires
> the 'sh_eth' driver device tree support posted earlier in order to work.
>
> [1/2] ARM: shmobile: r8a7791: add Ether DT support
> [2/2] ARM: shmobile: koelsch: add Ether DT support
Thanks. Please repost this series once the bindings have been accepted.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board
2014-02-13 6:02 ` [PATCH 0/2] Add Ether DT support for R8A7790/Lager " Simon Horman
@ 2014-02-18 22:40 ` Sergei Shtylyov
2014-02-18 23:52 ` Simon Horman
0 siblings, 1 reply; 10+ messages in thread
From: Sergei Shtylyov @ 2014-02-18 22:40 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
On 02/13/2014 09:02 AM, Simon Horman wrote:
>> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
>> 'renesas-devel-v3.14-rc1-20140206v2' tag. Here we add the Ether device tree
>> support working on the R8A7790/Lager reference board. The patchset requires the
>> 'sh_eth' driver device tree support posted earlier in order to work.
>> [1/2] ARM: shmobile: r8a7790: add Ether DT support
>> [2/2] ARM: shmobile: lager: add Ether DT support
> Thanks. Please repost this series once the bindings have been accepted.
DaveM has just merged the bindings into net-next. Time to repost these 2
series?
WBR, Sergei
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board
2014-02-18 22:40 ` Sergei Shtylyov
@ 2014-02-18 23:52 ` Simon Horman
0 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2014-02-18 23:52 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Feb 19, 2014 at 02:40:12AM +0300, Sergei Shtylyov wrote:
> Hello.
>
> On 02/13/2014 09:02 AM, Simon Horman wrote:
>
> >> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> >>'renesas-devel-v3.14-rc1-20140206v2' tag. Here we add the Ether device tree
> >>support working on the R8A7790/Lager reference board. The patchset requires the
> >>'sh_eth' driver device tree support posted earlier in order to work.
>
> >>[1/2] ARM: shmobile: r8a7790: add Ether DT support
> >>[2/2] ARM: shmobile: lager: add Ether DT support
>
> >Thanks. Please repost this series once the bindings have been accepted.
>
> DaveM has just merged the bindings into net-next. Time to repost
> these 2 series?
Yes, I think so.
Congratulations on getting the bindings merged.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-02-18 23:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 20:54 [PATCH 0/2] Add Ether DT support for R8A7790/Lager reference board Sergei Shtylyov
2014-02-06 20:56 ` [PATCH 1/2] ARM: shmobile: r8a7790: add Ether DT support Sergei Shtylyov
2014-02-06 20:58 ` [PATCH 2/2] ARM: shmobile: lager: " Sergei Shtylyov
2014-02-06 21:09 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
2014-02-06 21:14 ` [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support Sergei Shtylyov
2014-02-11 17:01 ` Laurent Pinchart
2014-02-13 6:03 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Simon Horman
2014-02-13 6:02 ` [PATCH 0/2] Add Ether DT support for R8A7790/Lager " Simon Horman
2014-02-18 22:40 ` Sergei Shtylyov
2014-02-18 23:52 ` 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).