ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_skylab_skw92a.dts
index 229fefc52dbdf801248a6415de60c139d117cdf1..4ceccde06d5a8f84b75e3dd3573adac8de5eec65 100644 (file)
@@ -1,12 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "mt7628an.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-/{
+/ {
        compatible = "skylab,skw92a", "mediatek,mt7628an-soc";
        model = "SKYLAB SKW92A";
 
                led-failsafe = &led_power;
        };
 
-       chosen {
-               bootargs = "console=ttyS0,57600";
-       };
-
        leds {
                compatible = "gpio-leds";
 
                led_power: wps {
-                       label = "skw92a:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "skw92a:green:wlan";
+                       label = "green:wlan";
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
        };
 
 &state_default {
        gpio {
-               ralink,group = "wdt", "refclk", "wled_an";
-               ralink,function = "gpio";
+               groups = "wdt", "refclk", "wled_an";
+               function = "gpio";
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 };
 
-&ehci {
-       status = "okay";
-};
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
 
-&ohci {
-       status = "okay";
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
 };