bcm63xx: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6328-sercomm-ad1018.dts
index edb1ce49a68cf244d3cffdc842f06da4e04d035e..edd1d8c348a66fc6e7a6787abc29b387846ac024 100644 (file)
@@ -3,6 +3,7 @@
 #include "bcm6328.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Sercomm AD1018";
@@ -76,7 +77,8 @@
        led_power_green: led@8 {
                reg = <8>;
                active-low;
-               label = "green:power";
+               function = LED_FUNCTION_POWER;
+               color = <LED_COLOR_ID_GREEN>;
                default-state = "on";
        };
 
        led@13 {
                reg = <13>;
                active-low;
-               label = "green:wps";
+               function = LED_FUNCTION_WPS;
+               color = <LED_COLOR_ID_GREEN>;
        };
 
        led@14 {
        led@15 {
                reg = <15>;
                active-low;
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
        };
 
        led@17 {