ramips: convert most mtd-mac-address cases in DTSI to nvmem
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_ayx.dtsi
index 9313b4c38eddc987ec48ec0692f82f29d2fc2035..ae9e40e621160f4c914cd67ffa466d52ddb9a497 100644 (file)
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-only
 
 #include "mt7621.dtsi"
 
@@ -13,7 +13,6 @@
                led-failsafe = &led_power;
                led-running = &led_power;
                led-upgrade = &led_power;
-               label-mac-device = &gmac0;
        };
 
        keys {
                compatible = "gpio-leds";
 
                led_power: power {
+                       label = "green:power";
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
-               led_usb: usb {
+               usb {
+                       label = "green:usb";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
                        linux,default-trigger = "usbport";
                };
 
-               led_internet: internet {
+               internet {
+                       label = "green:wan";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
-               led_wifi: wifi {
+               wifi {
+                       label = "green:wifi";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
-               led_wps: wps {
+               wps {
+                       label = "green:wps";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&gmac0 {
-       mtd-mac-address = <&factory 0x4>;
-};
-
 &switch0 {
        ports {
                port@0 {
                        label = "lan1";
                };
 
-               port@4 {
+               wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x4>;
-                       mtd-mac-address-increment = <1>;
                };
        };
 };