ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_beeline_smartbox-giga.dts
index efea79e2e204748386685c239859b7a4d8e4e8c9..22fc065eb299076e86533f371faf1a8c9f98fc22 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
-&switch0 {
-       ports {
-               port@0 {
-                       status = "okay";
-                       label = "wan";
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
 
-                       nvmem-cells = <&macaddr_factory_21000>;
-                       nvmem-cell-names = "mac-address";
-                       mac-address-increment = <(1)>;
-               };
+       nvmem-cells = <&macaddr_factory_21000>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(1)>;
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
 
+&switch0 {
+       ports {
                port@1 {
                        status = "okay";
                        label = "lan1";