ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_buffalo_whr-300hp2.dts
index 85946ca1e0bb13372c326f6ddc60b3be595efe63..05d5a494ed6e2a7ebcd3dbb5009f1c9ed368cec6 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 = "buffalo,whr-300hp2", "ralink,mt7620a-soc";
@@ -18,7 +19,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
@@ -28,7 +30,8 @@
                };
 
                led_power_green: power2 {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                                read-only;
                        };
 
-                       factory: partition@40000 {
+                       partition@40000 {
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;