From: "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@renesas.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: r8a7740: Fix ethernet device name in clock definition
Date: Fri, 19 Jul 2013 04:30:16 +0000 [thread overview]
Message-ID: <51E8C0D8.601@renesas.com> (raw)
In-Reply-To: <1373966374-15716-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
Hello,
(2013/07/19 5:28), Sergei Shtylyov wrote:
> Hello.
>
> On 07/17/2013 06:48 PM, Laurent Pinchart wrote:
< snip >
>
>>>>>> board code callback in sh_eth_plat_data (.set_mdio_gate) isn't used on
>>>>>> ARM platforms, so the driver should support pure DT bindings without
>>>>>> auxiliary data.
>
>>>>> Maybe it isn't used on ARM but it exists. IMO that's enough reason not to
>>>>> convert the platform data to the DT properties.
>
>>>> I don't agree. The proper fix would be to fix the SuperH platform that
>>>> uses that callback (there's one only) to replace the callback function
>>>> with a proper kernel framework.
>
>>> At least suggest such framework first.
>
>> I would first need to understand what the board code implementes in the
>> set_mdio_gate() callback. The callback is used by the SH7757LCR board only, do
>> you have access to the board schematics and SH7757 datasheet ?
>
> No, only for SH7751 manual by coincidence. This SoC doesn't have Ether.
> Maybe the original commit (sh: add GETHER's platform_device in board-sh7757lcr) author, Shimoda-san, could help us here? I've CC'ed him.
- The SH7757 has 2 MDIO/MDC channels for Gigabit Ethernet.
- The board has VSC8244 Gigabit Ethernet PHY.
- The VSC8244 has 4 MAC channels. But it has one MDIO/MDC port.
- The board's schematic about MDIO/MDC is like below:
+--------+ <--- GETHER ch0's MDIO/MDC ---> +-----------+
| SH7757 | <--- GETHER ch1's MDIO/MDC ---> | bus swith | <--- MDIO/MDC ---> VSC8244
+--------+ <--- GPIO --------------------> +-----------+
So, I added to control the GPIO using the set_mdio_gate() callback on the board.
Best regards,
Yoshihiro Shimoda
next prev parent reply other threads:[~2013-07-19 4:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 9:19 [PATCH] ARM: shmobile: r8a7740: Fix ethernet device name in clock definition Laurent Pinchart
2013-07-16 12:27 ` Sergei Shtylyov
2013-07-16 14:26 ` Sergei Shtylyov
2013-07-17 10:47 ` Laurent Pinchart
2013-07-17 13:05 ` Sergei Shtylyov
2013-07-17 13:11 ` Laurent Pinchart
2013-07-17 13:40 ` Sergei Shtylyov
2013-07-17 14:04 ` Laurent Pinchart
2013-07-17 14:20 ` Sergei Shtylyov
2013-07-17 14:48 ` Laurent Pinchart
2013-07-17 23:04 ` Simon Horman
2013-07-18 20:28 ` Sergei Shtylyov
2013-07-18 20:57 ` Laurent Pinchart
2013-07-19 4:30 ` Shimoda, Yoshihiro [this message]
2013-07-19 12:17 ` Sergei Shtylyov
2013-07-22 9:15 ` Shimoda, Yoshihiro
2013-07-22 11:47 ` Sergei Shtylyov
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=51E8C0D8.601@renesas.com \
--to=yoshihiro.shimoda.uh@renesas.com \
--cc=linux-sh@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.