ramips: dts: rt3050: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-4.dts
index f8fc01ee3079567d46238d45c59a17785919aed7..8340ca5d287f3923b0c68574e891c4fa24095b14 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       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@1 {
-                       status = "okay";
-                       label = "lan1";
-               };
-
-               port@2 {
                        status = "okay";
                        label = "lan2";
                };
 
-               port@4 {
+               port@2 {
                        status = "okay";
-                       label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       label = "lan1";
                };
        };
 };