ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_sercomm_na502.dts
index 44b1077bc60abcba51153254dcc868c022f92675..049dd35fa7d238b3e9937c92d96a4b2f68ee6df3 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "sercomm,na502", "mediatek,mt7621-soc";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
@@ -51,7 +53,8 @@
                };
 
                bluetooth {
-                       label = "green:bluetooth";
+                       function = LED_FUNCTION_BLUETOOTH;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
                };
        };
                        read-only;
                };
 
-               factory: partition@100000 {
+               partition@100000 {
                        label = "factory";
                        reg = <0x100000 0x40000>;