ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_tplink_eap235-wall-v1.dts
index b40448791abc3a4f1ae2b7ea34f51578dd7d9347..cd7cae635509ca0adb9d23bd8740ee4792dfddc7 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "lan0";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &switch0 {
        ports {
-               port@0 {
-                       status = "okay";
-                       label = "lan0";
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan3";