arm64: dts: librem5-devkit: Use function and color rather than label
authorGuido Günther <agx@sigxcpu.org>
Sun, 9 Oct 2022 12:26:55 +0000 (14:26 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 29 Oct 2022 01:15:20 +0000 (09:15 +0800)
Use predefined colors and function rather than making up a random label.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts

index 7e4b6d6..4c8904f 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "dt-bindings/input/input.h"
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/leds/common.h>
 #include "dt-bindings/pwm/pwm.h"
 #include "dt-bindings/usb/pd.h"
 #include "imx8mq.dtsi"
@@ -64,7 +65,8 @@
                compatible = "pwm-leds";
 
                led1 {
-                       label = "LED 1";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        max-brightness = <248>;
                        pwms = <&pwm2 0 50000 0>;
                };