qualcommax: convert to new LED color/function format where possible
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:43 +0000 (14:48 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:43 +0000 (14:48 +0100)
Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-wax218.dts

index 9503f4b92aec761ccc88b4576a11a06fb5dd4608..f3d2fa34126470e421373ccec0e778c06fd9156b 100644 (file)
@@ -8,6 +8,7 @@
 #include "ipq8074-ess.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Edgecore EAP102";
@@ -64,7 +65,8 @@
                };
 
                led_system_green: led_system {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>;
                };
        };
index 51bb533d1e85ea0b9125ef798e04ece576dbe105..3ca92a7a8f3f1364351186dcfcb41cf25d18730d 100644 (file)
@@ -7,6 +7,7 @@
 #include "ipq8074-ess.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "ZTE MF269";
@@ -48,7 +49,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>;
                };
        };
index 877a487b978f7f4437e9c756add03007ce64f587..3f40c17ab46cb4c08833fbfa3005ccf2e0c98f4b 100644 (file)
@@ -8,6 +8,7 @@
 #include "ipq8074-ess.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Arcadyan AW1000";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
                };
 
index 33a618851c7b439610b35db6ec8f8cc6820f8a19..0e71faea72a220b0ef044527a2877534858bbc60 100644 (file)
@@ -5,6 +5,7 @@
 #include "ipq8074-ess.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 
 / {
                compatible = "gpio-leds";
 
                led_power_amber: led_power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
                };
 
                led_lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>;
                };