From: Simon Horman <horms@verge.net.au>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 2/3] ARM: shmobile: lager: enable Ether
Date: Tue, 02 Jul 2013 01:22:28 +0000 [thread overview]
Message-ID: <20130702012227.GA24086@verge.net.au> (raw)
In-Reply-To: <1870016.uXUUSHgrj5@avalon>
On Mon, Jul 01, 2013 at 03:29:21PM +0200, Laurent Pinchart wrote:
> Hi Simon,
>
> On Monday 01 July 2013 16:20:33 Simon Horman wrote:
> > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> >
> > ---
> >
> > This patch has a build-time dependency on "sh_eth: add support for gpio
> > reset". This patch has a run-time dependency on "sh_eth: add support for
> > r8a7790 SoC".
> >
> > v4
> > * Annotate ether_platdata as __initdata
> >
> > v3
> > * Rebase
> >
> > v2
> > * As suggested by Laurent Pinchart
> > - Do not manipilate sh_eth reset GPIO directly,
> > rather, do so through newly proposed support for this in
> > the sh_eth driver.
> > * A suggested by Sergei Shtylyov
> > - Move DTS portion into a separate patch
> > ---
> > arch/arm/mach-shmobile/board-lager.c | 24 ++++++++++++++++++++++++
> > 1 file changed, 24 insertions(+)
> >
> > diff --git a/arch/arm/mach-shmobile/board-lager.c
> > b/arch/arm/mach-shmobile/board-lager.c index 0b4a1f9..7d5db20 100644
> > --- a/arch/arm/mach-shmobile/board-lager.c
> > +++ b/arch/arm/mach-shmobile/board-lager.c
> > @@ -71,6 +71,17 @@ static __initdata struct gpio_keys_platform_data
> > lager_keys_pdata = { .nbuttons = ARRAY_SIZE(gpio_buttons),
> > };
> >
> > +/* Ether */
> > +static struct sh_eth_plat_data ether_platdata __initdata = {
> > + .phy = 0x1,
> > + .edmac_endian = EDMAC_LITTLE_ENDIAN,
> > + .register_type = SH_ETH_REG_FAST_RCAR,
> > + .phy_interface = PHY_INTERFACE_MODE_RMII,
> > + .ether_link_active_low = 1,
> > + .needs_gpio_reset = 1,
> > + .reset_gpio = RCAR_GP_PIN(5, 31),
> > +};
> > +
> > static const struct pinctrl_map lager_pinctrl_map[] = {
> > /* SCIF0 (CN19: DEBUG SERIAL0) */
> > PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.6", "pfc-r8a7790",
> > @@ -78,6 +89,17 @@ static const struct pinctrl_map lager_pinctrl_map[] = {
> > /* SCIF1 (CN20: DEBUG SERIAL1) */
> > PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.7", "pfc-r8a7790",
> > "scif1_data", "scif1"),
> > + /* Ether */
> > + PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7790",
> > + "eth_link", "eth"),
> > + PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7790",
> > + "eth_magic", "eth"),
>
> That pin isn't used on Lager, you can drop it.
Thanks, I will drop that.
> By the way, the latest R8A7790 datasheet errata renamed the eth_magic pin to
> eth_wol. What would you think about renaming it to eth_wol in
> drivers/pinctrl/sh-pfc/pfc-r8a7790.c ?
I do not have a strong opinion but changing it sounds entirely reasonable
to me.
> > + PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7790",
> > + "eth_mdio", "eth"),
> > + PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7790",
> > + "eth_rmii", "eth"),
> > + PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7790",
> > + "intc_irq0", "intc"),
> > };
> >
> > static void __init lager_add_standard_devices(void)
> > @@ -89,6 +111,8 @@ static void __init lager_add_standard_devices(void)
> > r8a7790_pinmux_init();
> >
> > r8a7790_add_standard_devices();
> > + r8a7790_add_ether_device(ðer_platdata);
> > +
> > platform_device_register_data(&platform_bus, "leds-gpio", -1,
> > &lager_leds_pdata,
> > sizeof(lager_leds_pdata));
next prev parent reply other threads:[~2013-07-02 1:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 7:20 [PATCH v4 0/3] ARM: shmobile: lager: enable Ether Simon Horman
2013-07-01 7:20 ` [PATCH v4 1/3] ARM: shmobile: r8a7790: add Ether support Simon Horman
2013-07-17 9:11 ` Mark Rutland
2013-07-17 23:01 ` Simon Horman
2013-07-01 7:20 ` [PATCH v4 2/3] ARM: shmobile: lager: enable Ether Simon Horman
2013-07-01 13:29 ` Laurent Pinchart
2013-07-02 1:22 ` Simon Horman [this message]
2013-07-03 2:30 ` Laurent Pinchart
2013-07-01 7:20 ` [PATCH v4 3/3] ARM: shmobile: lager: enable nfsroot in DTS Simon Horman
2013-07-16 9:42 ` [PATCH v4 0/3] ARM: shmobile: lager: enable Ether Laurent Pinchart
2013-07-16 12:28 ` Sergei Shtylyov
2013-07-16 23:49 ` 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=20130702012227.GA24086@verge.net.au \
--to=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
/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).