ath79: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar7161_meraki_mr16.dts
index b732010446f220c214a769c6b21b4a9169a29a76..0353a558f98e02c06156f87083362a2954707d1d 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 = "meraki,mr16", "qca,ar7161";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
        };