arm64: dts: meson: update the Khadas VIM3/3L LED bindings
authorChristian Hewitt <christianshewitt@gmail.com>
Wed, 25 Nov 2020 05:29:14 +0000 (05:29 +0000)
committerKevin Hilman <khilman@baylibre.com>
Tue, 1 Dec 2020 00:10:35 +0000 (16:10 -0800)
Update the VIM3/3L common dtsi to use the new function/color bindings.

Suggested-by: Artem Lapkin <art@khadas.com>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20201125052914.4092-1-christianshewitt@gmail.com
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi

index 87bd8c9516f2fe7e10fed4b24065b42aaab902bb..8f8656262ae7885def678be3252a5f96d5b5546f 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/meson-g12a-gpio.h>
 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
 
        leds {
                compatible = "gpio-leds";
 
-               led-white {
-                       label = "vim3:white:sys";
+               white {
+                       color = <LED_COLOR_ID_WHITE>;
+                       function = LED_FUNCTION_STATUS;
                        gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
-               led-red {
-                       label = "vim3:red";
+               red {
+                       color = <LED_COLOR_ID_RED>;
+                       function = LED_FUNCTION_STATUS;
                        gpios = <&gpio_expander 5 GPIO_ACTIVE_HIGH>;
                };
        };