ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3050_asus_rt-n10-plus.dts
index 7d28f0b7f62ebb09e6f9a7c908783e1f78ef4914..9fb325bc09101af92d70f3d1666591c40aae1d41 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "asus,rt-n10-plus", "ralink,rt3050-soc";
                                label = "devconf";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_devconf_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_devconf_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
@@ -55,7 +70,8 @@
                compatible = "gpio-leds";
 
                led_wps: wps {
-                       label = "rt-n10-plus:green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
@@ -79,7 +95,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&devconf 0x4>;
+       nvmem-cells = <&macaddr_devconf_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&devconf 0x0>;
+       nvmem-cells = <&eeprom_devconf_0>;
+       nvmem-cell-names = "eeprom";
 };