ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3662_omnima_hpm.dts
index e06e6986ec2b527ba9cf0d37d1eb0ef0c626784c..3a09053f7b03a3276de391d6f06d8acf4224575c 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 = "omnima,hpm", "ralink,rt3662-soc", "ralink,rt3883-soc";
                compatible = "gpio-leds";
 
                power {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };