Skip to contentSkip to conversation

arm64: dts: meson: update the Khadas VIM3/3L LED bindings

PATCH In review Christian Hewitt 2 participants 2 messages Nov 25, 2020 – Nov 30, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: meson: update the Khadas VIM3/3L LED bindings

Update the VIM3/3L common dtsi to use the new function/color bindings.

---
This supersedes a previous submission from Art [0] and uses the updated LED bindings suggested by Neil.

[0] https://patchwork.kernel.org/project/linux-amlogic/patch/[email protected]/

 arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +7 -4
index 87bd8c9516f2..8f8656262ae7 100644
@@ -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>
 
@@ -42,14 +43,16 @@
 	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>;
 		};
 	};
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 37 lines · Christian Hewitt

Update the VIM3/3L common dtsi to use the new function/color bindings.

---
This supersedes a previous submission from Art [0] and uses the updated LED bindings suggested by Neil.

[0] https://patchwork.kernel.org/project/linux-amlogic/patch/[email protected]/

 arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +4 -2
index 87bd8c9516f2..8f8656262ae7 100644
@@ -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>
 
@@ -42,14 +43,16 @@
 	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";

arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi line 58

Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +3 -2
 		};
 
-		led-red {
-			label = "vim3:red";
+		red {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_STATUS;
 			gpios = <&gpio_expander 5 GPIO_ACTIVE_HIGH>;
 		};
 	};

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic