ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt2880_dlink_dap-1522-a1.dts
index 105a3c49d486ca7df07650d6f0cef064345d6663..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";
@@ -31,7 +32,7 @@
                                read-only;
                        };
 
-                       factory: partition@30000 {
+                       partition@30000 {
                                label = "factory";
                                reg = <0x30000 0x10000>;
                                read-only;
                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>;
                };
        };