ramips: mt7621: update dts/defconfig for DSA
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_wevo_w2914ns-v2.dtsi
index d519961424a0bb917ee2c3913dda4f8486d0ac4f..95923632602bde0dedc79edffb824a398639c779 100644 (file)
@@ -4,6 +4,10 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       aliases {
+               label-mac-device = &wan;
+       };
+
        chosen {
                bootargs = "console=ttyS0,57600";
        };
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe000>;
 };
 
+&switch0 {
+       ports {
+               port@0 {
+                       status = "okay";
+                       label = "lan4";
+               };
+
+               port@1 {
+                       status = "okay";
+                       label = "lan3";
+               };
+
+               port@2 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan1";
+               };
+               wan: port@4 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&factory 0x2e>;
+               };
+       };
+};
+
 &state_default {
        gpio {
                groups = "wdt", "rgmii2";