ARM: dts: orion5: Add missing phy-mode and fixed links
authorAndrew Lunn <andrew@lunn.ch>
Fri, 7 Apr 2023 15:17:21 +0000 (17:17 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 7 Apr 2023 15:28:24 +0000 (17:28 +0200)
The DSA framework has got more picky about always having a phy-mode
for the CPU port. The Orion5x Ethernet is an RGMII port. Set the
switch to impose the RGMII delays.

Additionally, the cpu label has never actually been used in the
binding, so remove it.

Lastly, add a fixed-link node indicating the expected speed/duplex of
the link to the SoC.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/boot/dts/orion5x-netgear-wnr854t.dts

index 4f4888ec913801676eabe95456969d0fcdddba80..fb203e7d37f5e39e0654f60e27c832ef91b932e3 100644 (file)
 
                        port@3 {
                                reg = <3>;
-                               label = "cpu";
                                ethernet = <&ethport>;
+                               phy-mode = "rgmii-id";
+                               fixed-link {
+                                       speed = <1000>;
+                                       full-duplex;
+                               };
                        };
 
                        port@5 {
                /* Hardwired to DSA switch */
                speed = <1000>;
                duplex = <1>;
+               phy-mode = "rgmii";
        };
 };