ath79: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9330_dlink_dir-505.dts
index ad48e07701de93c2dd659ee2bc7937661ea66f66..c5109ff8000e15cb2cbba001da2f370d4d770cac 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "D-Link DIR-505";
                pinctrl-0 = <&jtag_disable_pins>;
 
                led_power_green: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
                };
 
                led_status_red: status {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
                };
        };