bcm63xx: convert to new LED color/function format where possible
[openwrt/staging/stintel.git] / target / linux / bcm63xx / dts / bcm6348-telsey-magic.dts
index 00ce70f17bae417b4e94a942bb9470c38ecb6f0a..c9d9989168c4f16fb5df00210986a1f78869ced2 100644 (file)
@@ -1,6 +1,7 @@
 #include "bcm6348.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Alice W-Gate";
@@ -15,7 +16,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pinctrl 0 1>;
                        default-state = "on";
                };
@@ -46,7 +48,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pinctrl 35 1>;
                };
        };