From: Philippe Schenker <philippe.schenker@toradex.com>
To: "a.fatoum@pengutronix.de" <a.fatoum@pengutronix.de>,
"andrew@lunn.ch" <andrew@lunn.ch>
Cc: "shawnguo@kernel.org" <shawnguo@kernel.org>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"festevam@gmail.com" <festevam@gmail.com>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-imx@nxp.com" <linux-imx@nxp.com>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"o.rempel@pengutronix.de" <o.rempel@pengutronix.de>,
"allison@lohutok.net" <allison@lohutok.net>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"kstewart@linuxfoundation.org" <kstewart@linuxfoundation.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] ARM: mach-imx6q: add ksz9131rn_phy_fixup
Date: Fri, 6 Mar 2020 16:30:37 +0000 [thread overview]
Message-ID: <a1a966cb14641dc33647750cfa2f7fa1fde6e47b.camel@toradex.com> (raw)
In-Reply-To: <20200306133848.GB18310@lunn.ch>
On Fri, 2020-03-06 at 14:38 +0100, Andrew Lunn wrote:
> > > 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?
>
> Ah, you are correct. It just has:
>
> if (of_node) {
> ksz9021_load_values_from_of(phydev, of_node,
> MII_KSZPHY_CLK_CONTROL_PAD_SKEW,
> "txen-skew-ps", "txc-skew-ps",
> "rxdv-skew-ps", "rxc-skew-ps");
> ksz9021_load_values_from_of(phydev, of_node,
> MII_KSZPHY_RX_DATA_PAD_SKEW,
> "rxd0-skew-ps", "rxd1-skew-ps",
> "rxd2-skew-ps", "rxd3-skew-ps");
> ksz9021_load_values_from_of(phydev, of_node,
> MII_KSZPHY_TX_DATA_PAD_SKEW,
> "txd0-skew-ps", "txd1-skew-ps",
> "txd2-skew-ps", "txd3-skew-ps");
> }
>
> and no support for phydev->interface.
>
> At minimum, you should use these DT properties, not a platform fixup.
As I said, I still think it is a good idea to have similar solutions at
the same place, especially for a successor PHY.
I also see the downsides so I'll go with your proposed solution.
Thanks everyone for the discussion!
Philippe
>
> If you want to, you can add support for rgmii-id, etc. There are five
> modes you need to support:
>
> PHY_INTERFACE_MODE_NA,
> PHY_INTERFACE_MODE_RGMII,
> PHY_INTERFACE_MODE_RGMII_ID,
> PHY_INTERFACE_MODE_RGMII_RXID,
> PHY_INTERFACE_MODE_RGMII_TXID,
>
> NA means "don't touch". Leave the RGMII delays alone, as configured by
> hardware default, strapping, bootloader, etc.
>
> Andrew
next prev parent reply other threads:[~2020-03-06 16:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-05 13:49 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
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 [this message]
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=a1a966cb14641dc33647750cfa2f7fa1fde6e47b.camel@toradex.com \
--to=philippe.schenker@toradex.com \
--cc=a.fatoum@pengutronix.de \
--cc=allison@lohutok.net \
--cc=andrew@lunn.ch \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@pengutronix.de \
--cc=kstewart@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=o.rempel@pengutronix.de \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®