powerpc: dts: turris1x: use qca8337 internal PHYs
Subsystems (2)
PATCH 1/1 powerpc: dts: turris1x: use qca8337 internal PHYs
The QCA8337 switch has a managed internal MDIO bus for its built-in PHYs. Declare the five PHYs in an mdio subnode of the switch and link the LAN ports to them with phy-mode = "internal" and phy-handle, so each switch port is connected to the correct internal PHY instead of relying on the implicit legacy port-to-PHY mapping.
Assisted-by LLM
Signed-off-by Rosen Penev <[email protected]>
--- arch/powerpc/boot/dts/turris1x.dts | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
arch/powerpc/boot/dts/turris1x.dts +35 -0
@@ -174,26 +174,36 @@ fixed-link { port@1 { reg = <1>; label = "lan5"; + phy-mode = "internal"; + phy-handle = <&phy_port1>; }; port@2 { reg = <2>; label = "lan4"; + phy-mode = "internal"; + phy-handle = <&phy_port2>; }; port@3 { reg = <3>; label = "lan3"; + phy-mode = "internal"; + phy-handle = <&phy_port3>; }; port@4 { reg = <4>; label = "lan2"; + phy-mode = "internal"; + phy-handle = <&phy_port4>; }; port@5 { reg = <5>; label = "lan1"; + phy-mode = "internal"; + phy-handle = <&phy_port5>; }; port@6 {
@@ -208,6 +218,31 @@ fixed-link { }; }; }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + phy_port1: ethernet-phy@0 { + reg = <0>; + }; + + phy_port2: ethernet-phy@1 { + reg = <1>; + }; + + phy_port3: ethernet-phy@2 { + reg = <2>; + }; + + phy_port4: ethernet-phy@3 { + reg = <3>; + }; + + phy_port5: ethernet-phy@4 { + reg = <4>; + }; + }; }; };
Signature · 1 line
2.55.0