ARM: dts: exynos: add function and color to LED node in Odroid HC1
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 20 Jun 2022 17:57:14 +0000 (19:57 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 22 Jun 2022 11:58:01 +0000 (13:58 +0200)
Add common LED properties - the function and color - to LED node in
Exynos5422 Odroid HC1, so we can drop deprecated label property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220620175716.132143-7-krzysztof.kozlowski@linaro.org
arch/arm/boot/dts/exynos5422-odroidhc1.dts

index d91f7fa2cf808844ce0961e99c8608d40b8c8bce..3de7019572a20397265356e0e3b63f08f36e2225 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/leds/common.h>
 #include "exynos5422-odroid-core.dtsi"
 
 / {
@@ -19,7 +20,8 @@
                compatible = "pwm-leds";
 
                led-1 {
-                       label = "blue:heartbeat";
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_BLUE>;
                        pwms = <&pwm 2 2000000 0>;
                        pwm-names = "pwm2";
                        max-brightness = <255>;