From: Philippe Schenker <philippe.schenker@toradex•com>
To: "o.rempel@pengutronix•de" <o.rempel@pengutronix•de>,
"a.fatoum@pengutronix•de" <a.fatoum@pengutronix•de>,
"andrew@lunn•ch" <andrew@lunn•ch>
Cc: "linux-arm-kernel@lists•infradead.org"
<linux-arm-kernel@lists•infradead.org>,
"kstewart@linuxfoundation•org" <kstewart@linuxfoundation•org>,
"gregkh@linuxfoundation•org" <gregkh@linuxfoundation•org>,
"s.hauer@pengutronix•de" <s.hauer@pengutronix•de>,
"linux@armlinux•org.uk" <linux@armlinux•org.uk>,
"linux-kernel@vger•kernel.org" <linux-kernel@vger•kernel.org>,
"linux-imx@nxp•com" <linux-imx@nxp•com>,
"kernel@pengutronix•de" <kernel@pengutronix•de>,
"shawnguo@kernel•org" <shawnguo@kernel•org>,
"tglx@linutronix•de" <tglx@linutronix•de>,
"festevam@gmail•com" <festevam@gmail•com>,
"allison@lohutok•net" <allison@lohutok•net>
Subject: Re: [PATCH] ARM: mach-imx6q: add ksz9131rn_phy_fixup
Date: Fri, 6 Mar 2020 09:46:45 +0000 [thread overview]
Message-ID: <4e48d56f184ed56d15d2ae6706fdb29e4c849132.camel@toradex.com> (raw)
In-Reply-To: <7191ffe6-642a-477c-ec37-e37dc9be4bf8@pengutronix.de>
On Fri, 2020-03-06 at 08:42 +0100, Ahmad Fatoum wrote:
> Hello Andrew,
>
> On 3/5/20 5:51 PM, Andrew Lunn wrote:
> > On Thu, Mar 05, 2020 at 03:38:05PM +0100, Oleksij Rempel wrote:
> > > Hi Philippe,
> > >
> > > On Thu, Mar 05, 2020 at 02:49:28PM +0100, Philippe Schenker wrote:
> > > > The MAC of the i.MX6 SoC is compliant with RGMII v1.3. The
> > > > KSZ9131 PHY
> > > > is like KSZ9031 adhering to RGMII v2.0 specification. This means
> > > > the
> > > > MAC should provide a delay to the TXC line. Because the i.MX6
> > > > MAC does
> > > > not provide this delay this has to be done in the PHY.
> > > >
> > > > This patch adds by default ~1.6ns delay to the TXC line. This
> > > > should
> > > > be good for all boards that have the RGMII signals routed with
> > > > the
> > > > same length.
> > > >
> > > > The KSZ9131 has relatively high tolerances on skew registers
> > > > from
> > > > MMD 2.4 to MMD 2.8. Therefore the new DLL-based delay of 2ns is
> > > > used
> > > > and then as little as possibly subtracted from that so we get
> > > > more
> > > > accurate delay. This is actually needed because the i.MX6 SoC
> > > > has
> > > > an asynchron skew on TXC from -100ps to 900ps, to get all RGMII
> > > > values within spec.
> > >
> > > This configuration has nothing to do in mach-imx/* It belongs to
> > > the
> > > board devicetree. Please see DT binding documentation for needed
> > > properties:
> > > Documentation/devicetree/bindings/net/micrel-ksz90x1.txt
> >
> > It probably does not even need that. Just
> >
> > phy-mode = <rgmii-txid>
>
> Looks to me like this isn't supported by the Micrel PHY driver or am
> I missing something?
>
> Cheers
> Ahmad
>
Hi Andrew and Ahmad, thanks for your comments. I totally forgot about
those more specific phy-modes. But just because none of our driver
supports that. Either the i.MX6 fec-driver as well as the micrel.c PHY
driver supports this tags.
What do you guys suggest then how I should implement that skew stuff?
The problem is that i.MX6 has an asynchronic skew of -100 to 900ps only
enabling the PHY-delay on TXC and RXC is not in all cases within the
RGMII timing specs. That's why I implemented this 'weird' numbers.
Philippe
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-03-06 9:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-05 13:49 [PATCH] ARM: mach-imx6q: add ksz9131rn_phy_fixup Philippe Schenker
2020-03-05 13:53 ` Russell King - ARM Linux admin
2020-03-06 9:57 ` Philippe Schenker
2020-03-06 10:52 ` Russell King - ARM Linux admin
2020-03-05 14:38 ` Oleksij Rempel
2020-03-05 16:51 ` Andrew Lunn
2020-03-06 7:42 ` Ahmad Fatoum
2020-03-06 9:46 ` Philippe Schenker [this message]
2020-03-06 11:14 ` Ahmad Fatoum
2020-03-06 12:16 ` Philippe Schenker
2020-03-06 13:38 ` Andrew Lunn
2020-03-06 16:30 ` Philippe Schenker
2020-03-06 9:55 ` Philippe Schenker
2020-03-06 10:38 ` Oleksij Rempel
2020-03-06 12:36 ` Philippe Schenker
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=4e48d56f184ed56d15d2ae6706fdb29e4c849132.camel@toradex.com \
--to=philippe.schenker@toradex$(echo .)com \
--cc=a.fatoum@pengutronix$(echo .)de \
--cc=allison@lohutok$(echo .)net \
--cc=andrew@lunn$(echo .)ch \
--cc=festevam@gmail$(echo .)com \
--cc=gregkh@linuxfoundation$(echo .)org \
--cc=kernel@pengutronix$(echo .)de \
--cc=kstewart@linuxfoundation$(echo .)org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-imx@nxp$(echo .)com \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux@armlinux$(echo .)org.uk \
--cc=o.rempel@pengutronix$(echo .)de \
--cc=s.hauer@pengutronix$(echo .)de \
--cc=shawnguo@kernel$(echo .)org \
--cc=tglx@linutronix$(echo .)de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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