From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: device tree binding documentation outdated
Date: Wed, 2 Oct 2013 20:33:16 +0100 [thread overview]
Message-ID: <20131002193316.GR12758@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20130929061303.GB26156@S2101-09.ap.freescale.net>
On Sun, Sep 29, 2013 at 02:13:05PM +0800, Shawn Guo wrote:
> On Sat, Sep 28, 2013 at 09:38:59AM +0100, Russell King - ARM Linux wrote:
> > Okay, the answer is that yes, GPR1 bit 21 should be clear on this version
> > of the hardware, but there's plans to have the IMX6 generate the clock
> > and remove the crystal for the AR8035.
>
> Be careful, as mentioned in the reply to Matt, in that case, IMX6 can
> only output the clock on pad GPIO_16, and the clock has to be externally
> routed back to IMX6 on pad ENET_REF_CLK, so that ENET can get reference
> clock for RGMII mode.
Let me repeat that in case it was unclear.
The AR8035 on the current boards has a 25MHz crystal, and the AR8035 is
*currently* required to be programmed to generate a 125MHz clock back to
the IMX6 for the transmit timings.
In future, and on the real cubox-i, this crystal will not be present, and
it will be required that the IMX6 generates the 25MHz clock for the
AR8035.
So, for the _existing_ hardware, it is _required_ that the AR8035
generates the transmit clock, and this is fed in on GPIO 16 as
ENET_REF_CLK. This means that SION for this *must* be set and
GPR1 bit 21 *must* be clear.
So:
> > Now, here's the question for the IMX6 maintainers: how do I avoid having
> > GPR1 bit 21 set - it's unconditionally set by imx6q_1588_init() in
> > arch/arm/mach-imx/mach-imx6q.c. Moreover, how do I control this from
> > DT?
>
> GPR1[21] should be cleared only when there is a clock input on pad
> GPIO_16 from external phy or oscillator. Other than that, GPR1[21]
> should always be set to loop the ENET_PLL clock back to ENET though
> pad GPIO_16, for at least getting PTP (IEEE 1588) work, even in RGMII
> mode.
>
> So far, we haven't got any user with that setup (external phy or
> oscillator generates clock to pad GPIO_16). When we do, we can add a
> device tree property for telling that.
We need a property for this if we wish to support the carrier-1 development
board that Solid-run sent out to a load of developers last week. If not,
I guess those guys like Olof will find that they won't have properly
configured ethernet support on their boards they've received in mainline
kernels.
I think that as a fair number of key kernel developers now have this
board with this requirement, we need to have this DT property provided
even though the final cubox-i will not require it.
next prev parent reply other threads:[~2013-10-02 19:33 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 19:51 device tree binding documentation outdated Russell King - ARM Linux
2013-09-26 20:29 ` Fabio Estevam
2013-09-26 20:59 ` Russell King - ARM Linux
2013-09-26 23:10 ` Matt Sealey
2013-09-26 23:29 ` Russell King - ARM Linux
2013-09-26 23:48 ` Matt Sealey
2013-09-27 13:15 ` Jason Cooper
2013-09-27 17:05 ` Russell King - ARM Linux
2013-09-27 18:31 ` Russell King - ARM Linux
2013-09-27 18:52 ` Fabio Estevam
2013-09-27 20:16 ` Matt Sealey
2013-09-27 20:43 ` Russell King - ARM Linux
2013-09-26 23:25 ` Fabio Estevam
2013-09-27 12:13 ` Russell King - ARM Linux
2013-09-27 13:26 ` Shawn Guo
2013-09-27 15:19 ` Russell King - ARM Linux
2013-09-27 15:49 ` Russell King - ARM Linux
2013-09-27 16:52 ` Matt Sealey
2013-09-27 17:49 ` Russell King - ARM Linux
2013-09-27 18:33 ` Matt Sealey
2013-09-27 19:05 ` Russell King - ARM Linux
2013-09-27 19:41 ` Matt Sealey
2013-09-27 19:48 ` Matt Sealey
2013-09-27 20:21 ` Russell King - ARM Linux
2013-09-28 8:38 ` Russell King - ARM Linux
2013-09-29 6:13 ` Shawn Guo
2013-09-29 6:23 ` Duan Fugang-B38611
2013-09-29 6:35 ` Shawn Guo
2013-09-29 6:47 ` Duan Fugang-B38611
2013-10-02 19:33 ` Russell King - ARM Linux [this message]
2013-10-02 23:49 ` Russell King - ARM Linux
2013-10-03 2:21 ` Fabio Estevam
2013-10-04 15:45 ` Shawn Guo
2013-10-04 15:58 ` Russell King - ARM Linux
2013-09-29 5:01 ` Shawn Guo
2013-09-27 20:18 ` Russell King - ARM Linux
2013-09-28 3:28 ` Fabio Estevam
2013-09-26 21:35 ` Linus Walleij
2013-09-27 2:51 ` Shawn Guo
2013-09-27 8:45 ` Russell King - ARM Linux
2013-09-27 12:28 ` Shawn Guo
2013-09-27 13:12 ` Jason Cooper
2013-09-27 13:21 ` Russell King - ARM Linux
2013-09-27 13:29 ` Linus Walleij
2013-09-27 13:31 ` Jason Cooper
2013-09-27 16:33 ` Matt Sealey
2013-09-27 20:52 ` Russell King - ARM Linux
2013-09-27 13:52 ` Arnaud Patard (Rtp)
2013-09-27 15:40 ` Matt Sealey
2013-09-27 9:49 ` Russell King - ARM Linux
2013-09-27 12:08 ` Sascha Hauer
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=20131002193316.GR12758@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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).