ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_yuncore_ax820.dts
index 9638f1f060909b1cb778172f0b76e6e2d7c86b5d..75fe3cf5818566bcc576f16373c27172baeb0e4d 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &switch0 {
        ports {
-               port@0 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_e000>;
-                       nvmem-cell-names = "mac-address";
-                       mac-address-increment = <1>;
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan";