ARM: dts: imx6qdl: Add missing phy-mode and fixed links
authorAndrew Lunn <andrew@lunn.ch>
Sat, 8 Apr 2023 15:28:00 +0000 (17:28 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 13 May 2023 03:25:59 +0000 (11:25 +0800)
The DSA framework has got more picky about always having a phy-mode
for the CPU port. Add a phy-mode based on what the SoC ethernet is
using. For RGMII mode, have the switch add the 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>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-gw5904.dtsi
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi

index 9fc79af2bc9aa18969a2bfe39369e7e83aca7875..9594bc5745ed6f5dc9db215bc805e89594e15d55 100644 (file)
 
                                port@5 {
                                        reg = <5>;
-                                       label = "cpu";
                                        ethernet = <&fec>;
+                                       phy-mode = "rgmii-id";
+
+                                       fixed-link {
+                                               speed = <1000>;
+                                               full-duplex;
+                                       };
                                };
                        };
                };
index 5bb47c79a4da23e96b634da82b7b75d11236e0b1..abd72d72ae996e95c03c4b06fb6371e9241f84c0 100644 (file)
 
                                port@2 {
                                        reg = <2>;
-                                       label = "cpu";
+                                       phy-mode = "rev-rmii";
                                        ethernet = <&fec>;
 
                                        fixed-link {