ARM: dts: vf610: ZII: Add missing phy-mode and fixed links
Subsystems (3)
PATCH v2 1/1 ARM: dts: vf610: ZII: Add missing phy-mode and fixed links
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.
---
v2: Blank line before fixed-link
arch/arm/boot/dts/vf610-zii-cfu1.dts | 2 +-
arch/arm/boot/dts/vf610-zii-dev-rev-b.dts | 2 +- arch/arm/boot/dts/vf610-zii-dev-rev-c.dts | 12 ++++++++- arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 32 ++++++++++++++++++++++- arch/arm/boot/dts/vf610-zii-spb4.dts | 2 +- arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts | 2 +- arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts | 2 +- 7 files changed, 47 insertions(+), 7 deletions(-)
arch/arm/boot/dts/vf610-zii-cfu1.dts +1 -1
@@ -202,7 +202,7 @@ port@5 { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
arch/arm/boot/dts/vf610-zii-dev-rev-b.dts +1 -1
@@ -75,7 +75,7 @@ fixed-link { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +11 -1
@@ -44,7 +44,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
@@ -82,6 +82,11 @@ switch0port10: port@10 { label = "dsa"; phy-mode = "xaui"; link = <&switch1port10>; + + fixed-link { + speed = <10000>; + full-duplex; + }; }; };
@@ -174,6 +179,11 @@ switch1port10: port@10 { label = "dsa"; phy-mode = "xaui"; link = <&switch0port10>; + + fixed-link { + speed = <10000>; + full-duplex; + }; }; }; mdio {
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +31 -1
@@ -59,7 +59,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
@@ -115,6 +115,11 @@ switch0port10: port@10 { link = <&switch1port10 &switch3port10 &switch2port10>; + + fixed-link { + speed = <10000>; + full-duplex; + }; }; }; };
@@ -156,6 +161,11 @@ switch1port9: port@9 { phy-mode = "xgmii"; link = <&switch3port10 &switch2port10>; + + fixed-link { + speed = <10000>; + full-duplex; + }; }; switch1port10: port@10 {
@@ -163,6 +173,11 @@ switch1port10: port@10 { label = "dsa"; phy-mode = "xgmii"; link = <&switch0port10>; + + fixed-link { + speed = <10000>; + full-duplex; + }; }; }; };
@@ -246,6 +261,11 @@ switch2port10: port@10 { link = <&switch3port9 &switch1port9 &switch0port10>; + + fixed-link { + speed = <2500>; + full-duplex; + }; }; }; };
@@ -295,6 +315,11 @@ switch3port9: port@9 { label = "dsa"; phy-mode = "2500base-x"; link = <&switch2port10>; + + fixed-link { + speed = <2500>; + full-duplex; + }; }; switch3port10: port@10 {
@@ -303,6 +328,11 @@ switch3port10: port@10 { phy-mode = "xgmii"; link = <&switch1port9 &switch0port10>; + + fixed-link { + speed = <10000>; + full-duplex; + }; }; }; };
arch/arm/boot/dts/vf610-zii-spb4.dts +1 -1
@@ -140,7 +140,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +1 -1
@@ -129,7 +129,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +1 -1
@@ -154,7 +154,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
Signature · 1 line
2.40.1
Shawn Guo
AppliedQuoted 10 lines · Andrew Lunn
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 <[email protected]>
Applied, thanks!
Quoted 83 lines · Andrew Lunn
arch/arm/boot/dts/vf610-zii-cfu1.dts +1
-1@@ -202,7 +202,7 @@ port@5 { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-dev-rev-b.dts +1
-1@@ -75,7 +75,7 @@ fixed-link { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +1
-1@@ -44,7 +44,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-scu4-aib.dts +1
-1@@ -59,7 +59,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-spb4.dts +1
-1@@ -140,7 +140,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +1
-1@@ -129,7 +129,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +0
-0
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts ports { · line 160
Quoted 8 lines
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +1
-1@@ -154,7 +154,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {
Shouldn't these have been rev-rmii to be consistent with what was done for arm64?
Quoted 91 lines · Vladimir Oltean
Quoted 90 lines · Andrew Lunn
arch/arm/boot/dts/vf610-zii-cfu1.dts +1
-1@@ -202,7 +202,7 @@ port@5 { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-dev-rev-b.dts +1
-1@@ -75,7 +75,7 @@ fixed-link { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +1
-1@@ -44,7 +44,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-scu4-aib.dts +1
-1@@ -59,7 +59,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-spb4.dts +1
-1@@ -140,7 +140,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +1
-1@@ -129,7 +129,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +1
-1@@ -154,7 +154,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>;
Quoted 4 lines
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts ports { · line 160
Quoted 1 line
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +0
-0fixed-link {Shouldn't these have been rev-rmii to be consistent with what was done for arm64?
Should I drop the patch for now, or can this be changed incrementally if needed?
Shawn
Quoted 92 lines · Shawn Guo
Quoted 91 lines · Vladimir Oltean
Quoted 90 lines · Andrew Lunn
arch/arm/boot/dts/vf610-zii-cfu1.dts +1
-1@@ -202,7 +202,7 @@ port@5 { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-dev-rev-b.dts +1
-1@@ -75,7 +75,7 @@ fixed-link { port@6 { reg = <6>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +1
-1@@ -44,7 +44,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-scu4-aib.dts +1
-1@@ -59,7 +59,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-spb4.dts +1
-1@@ -140,7 +140,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +1
-1@@ -129,7 +129,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>; fixed-link {arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +1
-1@@ -154,7 +154,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>;
Quoted 7 lines
Quoted 4 lines
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts ports { · line 160
Quoted 1 line
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +0
-0fixed-link {Shouldn't these have been rev-rmii to be consistent with what was done for arm64?
Should I drop the patch for now, or can this be changed incrementally if needed?
What we have here is something that is "close enough". It isn't 100% correct, but acceptable for the time being, and isn't something that will ever become a problem, since the hardware itself can not have its interface mode changed (it's set by pin strapping.)
It's something that can be fixed later.
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Quoted 3 lines · Russell King (Oracle)
Quoted 2 lines · Shawn Guo
Quoted 1 line · Vladimir Oltean
On Thu, May 25, 2023 at 08:26:06PM +0200, Andrew Lunn wrote:
...
Quoted 20 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +1
-1@@ -154,7 +154,7 @@ ports { port@0 { reg = <0>; - label = "cpu"; + phy-mode = "rmii"; ethernet = <&fec1>;Quoted 7 lines
Quoted 4 lines
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts ports { · line 160
Quoted 1 line
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +0
-0fixed-link {Shouldn't these have been rev-rmii to be consistent with what was done for arm64?
Should I drop the patch for now, or can this be changed incrementally if needed?
Quoted 6 lines
What we have here is something that is "close enough". It isn't 100% correct, but acceptable for the time being, and isn't something that will ever become a problem, since the hardware itself can not have its interface mode changed (it's set by pin strapping.)
It's something that can be fixed later.
Thanks for the clarification, Russell!
Shawn