ramips: mt7621: nix mac-address-increment
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_elecom_wrc-gs.dtsi
index d4d2fa99e12edf042e009cbc83741fc2b82ce734..30b8d4e0104c932270af9dbf4913221ceb8ec501 100644 (file)
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-only
 
 #include "mt7621.dtsi"
 
                led-failsafe = &led_power_green;
                led-running = &led_power_green;
                led-upgrade = &led_power_green;
-               label-mac-device = &wan;
+               label-mac-device = &gmac1;
        };
 
-       leds {
+       leds: leds {
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "wrc-gst:green:power";
+                       label = "green:power";
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                };
 
                power_blue {
-                       label = "wrc-gst:blue:power";
+                       label = "blue:power";
                        gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
                };
 
                wps {
-                       label = "wrc-gst:red:wps";
+                       label = "red:wps";
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                };
 
                power_red {
-                       label = "wrc-gst:red:power";
+                       label = "red:power";
                        gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
                };
        };
        };
 };
 
-&gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
 };
 
 &switch0 {
        ports {
-               wan: port@0 {
-                       status = "okay";
-                       label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan4";
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
-                       };
-               };
-       };
-};
 
-&state_default {
-       gpio {
-               groups = "uart3", "jtag", "wdt", "sdhci";
-               function = "gpio";
-       };
-};
-
-&pcie {
-       status = "okay";
-};
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-&pcie0 {
-       wifi@0,0 {
-               compatible = "mediatek,mt76";
-               reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0000>;
-               ieee80211-freq-limit = <2400000 2500000>;
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x4da8>;
+                                       };
 
-               led {
-                       led-sources = <0>;
-                       led-active-low;
+                                       eeprom_factory_8000: eeprom@8000 {
+                                               reg = <0x8000 0x4da8>;
+                                       };
+                               };
+                       };
                };
        };
 };
 
-&pcie1 {
-       wifi@0,0 {
-               compatible = "mediatek,mt76";
-               reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x8000>;
-               ieee80211-freq-limit = <5000000 6000000>;
-
-               led {
-                       led-sources = <0>;
-                       led-active-low;
-               };
-       };
+&pcie {
+       status = "okay";
 };
 
 &xhci {