ARM: dts: imx6qdl-gw5904: add internal mdio nodes
Subsystems (2)
PATCH v2 1/1 ARM: dts: imx6qdl-gw5904: add internal mdio nodes
Complete the switch definition by adding the internal mdio nodes.
This does not change behavior on Linux but is required if the dt is used for U-Boot which requires the internal PHY ports to be defined for DSA.
Signed-off-by Tim Harvey <[email protected]>
Reviewed-by Vladimir Oltean <[email protected]>
---
v2: rebase and update commit log
--- arch/arm/boot/dts/nxp/imx/imx6qdl-gw5904.dtsi | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6qdl-gw5904.dtsi +29 -0
@@ -212,6 +212,27 @@ switch@0 { compatible = "marvell,mv88e6085"; reg = <0>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + + sw_phy0: ethernet-phy@0 { + reg = <0x0>; + }; + + sw_phy1: ethernet-phy@1 { + reg = <0x1>; + }; + + sw_phy2: ethernet-phy@2 { + reg = <0x2>; + }; + + sw_phy3: ethernet-phy@3 { + reg = <0x3>; + }; + }; + ports { #address-cells = <1>; #size-cells = <0>;
@@ -219,21 +240,29 @@ ports { port@0 { reg = <0>; label = "lan4"; + phy-handle = <&sw_phy0>; + phy-mode = "internal"; }; port@1 { reg = <1>; label = "lan3"; + phy-handle = <&sw_phy1>; + phy-mode = "internal"; }; port@2 { reg = <2>; label = "lan2"; + phy-handle = <&sw_phy2>; + phy-mode = "internal"; }; port@3 { reg = <3>; label = "lan1"; + phy-handle = <&sw_phy3>; + phy-mode = "internal"; }; port@5 {
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Shawn Guo
AppliedQuoted 8 lines · Tim Harvey
Complete the switch definition by adding the internal mdio nodes.
This does not change behavior on Linux but is required if the dt is used for U-Boot which requires the internal PHY ports to be defined for DSA.
Signed-off-by Tim Harvey <[email protected]>Reviewed-by Vladimir Oltean <[email protected]>
Applied, thanks!