From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: horms@verge.net.au, robh+dt@kernel.org, pawel.moll@arm.com,
mark.rutland@arm.com, ijc+devicetree@hellion.org.uk,
galak@codeaurora.org, linux-sh@vger.kernel.org,
devicetree@vger.kernel.org, magnus.damm@gmail.com,
linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support
Date: Tue, 11 Feb 2014 18:01:25 +0100 [thread overview]
Message-ID: <2679079.Rucv1O0jLA@avalon> (raw)
In-Reply-To: <201402070114.27279.sergei.shtylyov@cogentembedded.com>
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
next prev parent reply other threads:[~2014-02-11 17:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 22:10 [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Sergei Shtylyov
2014-02-06 22:14 ` [PATCH 2/2] ARM: shmobile: koelsch: add Ether DT support Sergei Shtylyov
2014-02-11 17:01 ` Laurent Pinchart [this message]
2014-02-13 6:03 ` [PATCH 0/2] Add Ether DT support for R8A7791/Koelsch reference board Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2679079.Rucv1O0jLA@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=horms@verge.net.au \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sergei.shtylyov@cogentembedded.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).