ARM: dts: vf610: ZII: Add missing phy-mode and fixed links
authorAndrew Lunn <andrew@lunn.ch>
Thu, 25 May 2023 18:26:06 +0000 (20:26 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 27 May 2023 13:24:01 +0000 (21:24 +0800)
The DSA framework has got more picky about always having a phy-mode
for the CPU port. The Vybrid FEC is a Fast Ethrnet using RMII.

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

Lastly, for DSA links between switches, add a fixed-link node
indicating the expected speed/duplex of the link.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/vf610-zii-cfu1.dts
arch/arm/boot/dts/vf610-zii-dev-rev-b.dts
arch/arm/boot/dts/vf610-zii-dev-rev-c.dts
arch/arm/boot/dts/vf610-zii-scu4-aib.dts
arch/arm/boot/dts/vf610-zii-spb4.dts
arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts

index 96495d9..1a19aec 100644 (file)
 
                                port@6 {
                                        reg = <6>;
-                                       label = "cpu";
+                                       phy-mode = "rmii";
                                        ethernet = <&fec1>;
 
                                        fixed-link {
index 1fafefe..16b4e06 100644 (file)
@@ -75,7 +75,7 @@
 
                                        port@6 {
                                                reg = <6>;
-                                               label = "cpu";
+                                               phy-mode = "rmii";
                                                ethernet = <&fec1>;
 
                                                fixed-link {
index c00d395..6f9878f 100644 (file)
@@ -44,7 +44,7 @@
 
                                        port@0 {
                                                reg = <0>;
-                                               label = "cpu";
+                                               phy-mode = "rmii";
                                                ethernet = <&fec1>;
 
                                                fixed-link {
                                                label = "dsa";
                                                phy-mode = "xaui";
                                                link = <&switch1port10>;
+
+                                               fixed-link {
+                                                       speed = <10000>;
+                                                       full-duplex;
+                                               };
                                        };
                                };
 
                                                label = "dsa";
                                                phy-mode = "xaui";
                                                link = <&switch0port10>;
+
+                                               fixed-link {
+                                                       speed = <10000>;
+                                                       full-duplex;
+                                               };
                                        };
                                };
                                mdio {
index 7b3276c..df13354 100644 (file)
@@ -59,7 +59,7 @@
 
                                        port@0 {
                                                reg = <0>;
-                                               label = "cpu";
+                                               phy-mode = "rmii";
                                                ethernet = <&fec1>;
 
                                                fixed-link {
                                                link = <&switch1port10
                                                        &switch3port10
                                                        &switch2port10>;
+
+                                               fixed-link {
+                                                       speed = <10000>;
+                                                       full-duplex;
+                                               };
                                        };
                                };
                        };
                                                phy-mode = "xgmii";
                                                link = <&switch3port10
                                                        &switch2port10>;
+
+                                               fixed-link {
+                                                       speed = <10000>;
+                                                       full-duplex;
+                                               };
                                        };
 
                                        switch1port10: port@10 {
                                                label = "dsa";
                                                phy-mode = "xgmii";
                                                link = <&switch0port10>;
+
+                                               fixed-link {
+                                                       speed = <10000>;
+                                                       full-duplex;
+                                               };
                                        };
                                };
                        };
                                                link = <&switch3port9
                                                        &switch1port9
                                                        &switch0port10>;
+
+                                               fixed-link {
+                                                       speed = <2500>;
+                                                       full-duplex;
+                                               };
                                        };
                                };
                        };
                                                label = "dsa";
                                                phy-mode = "2500base-x";
                                                link = <&switch2port10>;
+
+                                               fixed-link {
+                                                       speed = <2500>;
+                                                       full-duplex;
+                                               };
                                        };
 
                                        switch3port10: port@10 {
                                                phy-mode = "xgmii";
                                                link = <&switch1port9
                                                        &switch0port10>;
+
+                                               fixed-link {
+                                                       speed = <10000>;
+                                                       full-duplex;
+                                               };
                                        };
                                };
                        };
index 180acb0..1461804 100644 (file)
 
                                port@0 {
                                        reg = <0>;
-                                       label = "cpu";
+                                       phy-mode = "rmii";
                                        ethernet = <&fec1>;
 
                                        fixed-link {
index 73fdace..463c245 100644 (file)
 
                                port@0 {
                                        reg = <0>;
-                                       label = "cpu";
+                                       phy-mode = "rmii";
                                        ethernet = <&fec1>;
 
                                        fixed-link {
index 20beaa8..f5ae0d5 100644 (file)
 
                                port@0 {
                                        reg = <0>;
-                                       label = "cpu";
+                                       phy-mode = "rmii";
                                        ethernet = <&fec1>;
 
                                        fixed-link {