ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt2880_dlink_dap-1522-a1.dts
index ade64b3f46c07b0bb3e0acb033dbe3ddf0867f81..3fdbdf681eacfc9298ac8b1b66ab7dee2df91aed 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 = "dlink,dap-1522-a1", "ralink,rt2880-soc";
                                read-only;
                        };
 
-                       factory: partition@30000 {
-                               compatible = "nvmem-cells";
+                       partition@30000 {
                                label = "factory";
                                reg = <0x30000 0x10000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               eeprom_factory_2000: eeprom@2000 {
-                                       reg = <0x2000 0x200>;
-                               };
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_2000: eeprom@2000 {
+                                               reg = <0x2000 0x200>;
+                                       };
 
-                               macaddr_factory_2004: macaddr@2004 {
-                                       reg = <0x2004 0x6>;
+                                       macaddr_factory_2004: macaddr@2004 {
+                                               reg = <0x2004 0x6>;
+                                       };
                                };
                        };
 
                compatible = "gpio-leds";
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                led_status: status {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
                };
        };