ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_dlink_dir-853-a3.dts
index 49d0c050f59f9a9f7320caf88b2ecba0cba8455a..5408e5139997f20b5602ecd5614baaf3237ce2e8 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@0 {
                        status = "okay";
                        label = "lan1";
                };
-
-               port@4 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_e006>;
-                       nvmem-cell-names = "mac-address";
-               };
        };
 };