ramips: mt7621-dts: describe switch PHYs and adjust PHY muxing
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621.dtsi
index 086719a43d4bb7b1188cdc55b1b29a09e929cd8e..54fe13123db13423207b7bc5d8e12489f4d5b3c0 100644 (file)
                                #interrupt-cells = <1>;
                                interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
 
+                               mdio {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       ethphy0: ethernet-phy@0 {
+                                               reg = <0>;
+                                               interrupts = <0>;
+                                       };
+
+                                       ethphy1: ethernet-phy@1 {
+                                               reg = <1>;
+                                               interrupts = <1>;
+                                       };
+
+                                       ethphy2: ethernet-phy@2 {
+                                               reg = <2>;
+                                               interrupts = <2>;
+                                       };
+
+                                       ethphy3: ethernet-phy@3 {
+                                               reg = <3>;
+                                               interrupts = <3>;
+                                       };
+
+                                       ethphy4: ethernet-phy@4 {
+                                               reg = <4>;
+                                               interrupts = <4>;
+                                       };
+                               };
+
                                ports {
                                        #address-cells = <1>;
                                        #size-cells = <0>;
                                                status = "disabled";
                                                reg = <0>;
                                                label = "lan0";
+                                               phy-handle = <&ethphy0>;
                                        };
 
                                        port@1 {
                                                status = "disabled";
                                                reg = <1>;
                                                label = "lan1";
+                                               phy-handle = <&ethphy1>;
                                        };
 
                                        port@2 {
                                                status = "disabled";
                                                reg = <2>;
                                                label = "lan2";
+                                               phy-handle = <&ethphy2>;
                                        };
 
                                        port@3 {
                                                status = "disabled";
                                                reg = <3>;
                                                label = "lan3";
+                                               phy-handle = <&ethphy3>;
                                        };
 
                                        port@4 {
                                                status = "disabled";
                                                reg = <4>;
                                                label = "lan4";
+                                               phy-handle = <&ethphy4>;
                                        };
 
                                        port@6 {