[PATCH 1/2] ARM: dts: imx6qdl-gw5904: add internal mdio nodes
Tim Harvey
tharvey at gateworks.com
Fri Dec 2 08:48:21 PST 2022
On Fri, Dec 2, 2022 at 5:08 AM Andrew Lunn <andrew at lunn.ch> wrote:
>
> On Thu, Dec 01, 2022 at 10:02:08PM -0300, Fabio Estevam wrote:
> > Hi Tim,
> >
> > [Adding Andrew]
>
> It is not wrong, but it should also mostly not be needed. The switch
> driver can link internal PHYs to ports.
Andrew,
I should have mentioned in the commit log that this does not change
behavior on Linux but is required for boot firmware. Specifically
U-Boot requires the internal PHY ports to be defined for its DSA
architecture and they share dt's as much as possible.
>
> > > port at 5 {
> > > reg = <5>;
> > > label = "cpu";
> > > ethernet = <&fec>;
> > > + phy-mode = "rgmii-id";
> > > +
> > > + fixed-link {
> > > + speed = <1000>;
> > > + full-duplex;
> > > + };
> > > };
>
> This part is needed to make a warning go away. Does the SoC network interface
> have phy-mode = "rgmii"; ?
No, it looks like this:
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet>;
phy-mode = "rgmii-id";
status = "okay";
fixed-link {
speed = <1000>;
full-duplex;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch at 0 {
compatible = "marvell,mv88e6085";
reg = <0>;
...
Is something here wrong?
Best Regards,
Tim
More information about the linux-arm-kernel
mailing list