ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_cudy_wr1300.dts
index 3fd67c967a234cc7f6bbd48b5a7b9e0f0d9d09a5..2398612847ec532babef1622ca80ea70ab8ffc7a 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_bdinfo_de00>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@0 {
                        status = "okay";
                        label = "lan1";
                };
-
-               port@4 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_bdinfo_de00>;
-                       nvmem-cell-names = "mac-address";
-                       mac-address-increment = <1>;
-               };
        };
 };