ipq40xx: convert to new LED color/function format where possible
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:37 +0000 (14:48 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:37 +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>
48 files changed:
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-a42.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-cap-ac.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-cs-w3-wd1200g-eup.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-dap-2610.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-ea6350v3.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-eap1300.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-ecw5211.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-emd1.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-emr3500.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-ens620ext.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-fritzbox-4040.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-a1300.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-ap1300.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-hap-ac2.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-magic-2-wifi-next.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-meshpoint-one.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-nbg6617.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-pa1200.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-sxtsq-5-ac.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wap-ac.dtsi
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wre6606.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-a62.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-e2600ac.dtsi
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-ea8300.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-eap2200.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzbox-7530.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-1200.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-habanero-dvk.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hap-ac3-lte6-kit.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hap-ac3.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-le1.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-lhgg-60ad.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-mf18a.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-mr8300.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-orbi.dtsi
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-pa2200.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-rt-ac42u.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-rtl30vw.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-x1pro.dtsi
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-gl-s1300.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-insect-common.dtsi

index 4cf5d45ff92a60b863c90ebdebc645c29125e2bc..f43c4b800008a476adec622227412d8526cc4faf 100644 (file)
@@ -6,6 +6,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
                };
 
                status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
                };
        };
index 17b67c237887716bf42f00638612e23b73bafc6f..ceaa1edd45972b31863b89c74cbc1acc44c0673a 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                status: status {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                wan {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&ethphy4 1 GPIO_ACTIVE_HIGH>;
                };
 
index 0609324310888d3cf2ec4c7c02d9726ebba14919..388b2dd59084161df14857c7aa7167e7f2a680b6 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -83,7 +84,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                };
index ea00dd83f51b076d09627a65a16ee8d9f73e09d1..c388ceca27b90056bf292d8898929c0003eabe9b 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
                };
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 3 GPIO_ACTIVE_LOW>;
                };
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
                };
        };
index 493905d56d8f0a54530ddcbfa51d4ee130c19203..fef549035d636d5c10c86ffd559dd71a395293fd 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led_red: red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
                };
 
                led_green: green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
                };
        };
index d890e83c8991ccb9deebd101e2a9d1861be12ea9..50e7f3d4e0c8b67411b4b7f45c0c6733d8087816 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -86,7 +87,8 @@
                compatible = "gpio-leds";
 
                power: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
                };
        };
index 778394a96562d0b9f9fc2d7b40bffbc92837412a..e9d4775fd87ad43cb7ca72931023a3f2cb1b46ec 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                power: orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
                };
 
index c5804b4896ef80867fc8819d80c8bab0189ae196..e74d110b3df38e0a41f30cf3689163b36cf5d112 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -36,7 +37,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "yellow:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
                };
 
index 396595ba5185c5926ded2ae8b0c5427725cae23b..bca85cf4ab77eed33367fcfb7fc23d4d856cad98 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -66,7 +67,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
                };
 
index 3616149451456d9bddb9a333bc7cde60404e1f04..701dc936f14b20f179864d40e66c8014881f0d47 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -70,7 +71,8 @@
                compatible = "gpio-leds";
 
                power: white {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
                };
 
index 69275e24b8cd312146183f6056840c41c88639b6..17bac82bfeef6141e596d045ddbf4e36409fedfa 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -76,7 +77,8 @@
                compatible = "gpio-leds";
 
                power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
                };
 
index 0e1527ad4f6d92d35f202a6827cfc1225ab9735c..918224607ac73da620edbc069aa28942da07bd5b 100644 (file)
@@ -18,6 +18,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
                };
        };
index ec1112ee2bc58e82233c7d5f35a8a18d44c4c434..524bcbcb2b2a261841671845c178946e6770f461 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -87,7 +88,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ethphy0 0 GPIO_ACTIVE_HIGH>;
                };
 
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ethphy1 0 GPIO_ACTIVE_HIGH>;
                };
 
                power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ethphy2 1 GPIO_ACTIVE_HIGH>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ethphy3 0 GPIO_ACTIVE_HIGH>;
                };
 
index a646ec3358f2b29c5b9d9de04728b2ddc55a9316..cdb00932175a659cc0752341ec971496e92df367 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led_run: blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
                };
 
                white {
-                       label = "white:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
                };
        };
index 3f3e7cf6833d06506b03317e59d36d2e6be7d95f..5fc97d7bb2b6e911071958704f46c0280801603f 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                wan {
-                       label = "white:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
                };
        };
index c8868d8b301c973df957b717b1e9cbc948544bd6..fa3ed8b054455a6ec9d5d9a5f50fd30e2b0827bd 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                        panic-indicator;
index 1fbc02d62b28d349ae5a932d7e2c13f957278693..501aed54679df88a8b0714c2b82e3a39af251c3d 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "devolo Magic 2 WiFi next";
@@ -73,7 +74,8 @@
                };
 
                status_wlan {
-                       label = "white:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
index 62ba76802de5ed9f78b34ed9e86884c4cf6cbc39..cab34b5a6cd0d624358dc9c7474ca4311b6c722b 100644 (file)
@@ -3,6 +3,8 @@
  * Author: Robert Marko <robert@meshpoint.me>
  */
 
+#include <dt-bindings/leds/common.h>
+
 #include "qcom-ipq4018-jalapeno.dtsi"
 
 / {
@@ -74,7 +76,8 @@
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
                };
        };
index ff7252d696ecfee919e0286198c03f24a7d8dd10..a9e96835920757cb415a1bbff3d6f2135b9e5e64 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/input/linux-event-codes.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
                pinctrl-names = "default";
 
                power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
                        linux,default-trigger = "usbport";
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
                };
        };
index 30511e3886052f87de0b1fb753793160538d4bef..f23b58a3f44d9d12e277c068718db4ac20e52f65 100644 (file)
@@ -6,6 +6,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led_status_cyan: status_cyan {
-                       label = "cyan:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_CYAN>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_purple: status_purple {
-                       label = "purple:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_PURPLE>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_yellow: status_yellow {
-                       label = "yellow:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
                };
        };
index de3fa96922e7c2871ead31474fe5d90ab4bcceb3..252f9ad71ae76090ee3953418ced43ff23ad02b9 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -81,7 +82,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                        panic-indicator;
index 777f46e3af25dc9de0458b8cddef9f208b232dc1..2b357a1f03335f369bdb95a782947a0e02f06234 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -62,7 +63,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                };
index efb267ae3692257626b63c244857009abd4ce95a..7ce0b9e3594d320309a0932defca5efb03f40c88 100644 (file)
@@ -18,6 +18,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -75,7 +76,8 @@
                compatible = "gpio-leds";
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
                };
 
@@ -85,7 +87,8 @@
                };
 
                power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
                };
 
index 369b5475d0537d79ef0c59fac72d922128ea6104..39a52a7c489796002dd6cdc320a4015e1d6f0380 100644 (file)
@@ -6,6 +6,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
                };
 
                status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
                };
        };
index 523fe4e501f4ee1fcd9dc52be3d2af4f15b7fabd..d1c8d798f9f425346af0456bc9bb876285d5ceeb 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "usbport";
                        trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
                };
 
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
                };
 
index 9689bc566fde2247218d4f84ee68ad366e2a894e..d22661131130c14db3d1ec738bcdf7e8d986f608 100644 (file)
@@ -7,6 +7,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                        };
 
                        led3 {
-                               label = "green:usb";
+                               function = LED_FUNCTION_USB;
+                               color = <LED_COLOR_ID_GREEN>;
                                gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
                                trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
                                linux,default-trigger = "usbport";
index 5a738da33d3a692cd58704c6bf8da7e0d4c7bbe8..1b9276ede2f8d6d8e6f563ad853bffe4b0419e23 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qcom-ipq4019-xx8300.dtsi"
 
 / {
                };
 
                led_wps: wps {
-                       label = "white:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
                };
 
                led_wps_amber: wps_amber {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
@@ -52,7 +56,8 @@
                // On back panel, above USB socket
 
                led_usb: usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&usb3_port1>, <&usb3_port2>,
                                          <&usb2_port1>;
index 63fd66901d8cbc9a821af5505ecb07d3ea81e18b..000acd196cfd94de584876a1576d7401446cb08f 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "EnGenius EAP2200";
@@ -29,7 +30,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
                };
 
index 336da52f27248cb7a7b11c78632c70851eaa3c7a..a118bdf26bd6ca6e6a2365fe35f8a2546dd141b5 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                power_green: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
                };
        };
index 723f2161c614729c617f4cb3a97a2bc7f0b7cd8a..7d683cdf652dbd6129c99be9a25a7a75f70d6d05 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
                };
 
                power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
                };
 
                power_yellow {
-                       label = "yellow:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
                };
        };
index 41dec72542421d8b2228e3f0432460e75bbcc329..255598438455479699b6b46f3d315d84a1c7fdca 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -81,7 +82,8 @@
                };
 
                power_led: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
                };
        };
index 5cb5f7ca082fa38316f65befb6d9f14275b9fb84..9f645dd65739a90cc7ffea6b27bb12233b275ddc 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -84,7 +85,8 @@
                compatible = "gpio-leds";
 
                power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
@@ -93,7 +95,8 @@
                        gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
                };
                power_white {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
                };
                internet_white {
index d5d00b2eefe8d152096d58a92ecaca3896313208..26e9941a9fdc8dba3229b34167946605fb26dca6 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -92,7 +93,8 @@
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
index 6459fc3b927ec9a620ffde4724c7a7c1d3cdbaef..52af1f125e26d884873983d4ee3b124765f6cd0f 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led_status_blue: status-blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_red: status-red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
 
                led_status_green: status-green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
                };
 
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
                };
 
index 35c4c26a2cb4bb1827d3d855f77337f3cfab63d1..4e2b4574d386d2f1403c8a41ca0862e3574b5cd7 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led_status_blue: status-blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_red: status-red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
 
                led_status_green: status-green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
                };
 
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
                };
 
index 677b4baa0fabeda9394f7d0572d7b531adbe0cb0..c4e7d0b2075a81721f2fdb0b1f91aa760c971ede 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -33,7 +34,8 @@
                compatible = "gpio-leds";
 
                led_usb: usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "usbport";
                        trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
index 38bacfa2bafb6a201be3da0e9482f9ef085813be..4f0eaa625bc5266d3dea281143b57f1412dbb346 100644 (file)
@@ -18,6 +18,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -95,7 +96,8 @@
                compatible = "gpio-leds";
 
                power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                        panic-indicator;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
                };
 
index 1b1a697f13b029a08c161afb20317e85e3a0dd8f..d965f2724d3f7e22bf97905dc7bd6db49305c465 100644 (file)
                };
 
                led_power: led-1 {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                };
 
                led-2 {
                        function = LED_FUNCTION_WLAN;
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                led-3 {
-                       label = "red:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
                };
 
index 057aa880285b9c89e36c2925e454adaea14609ad..ab9a05c7887d9b27fb3e6b03cbef15053976e036 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qcom-ipq4019-xx8300.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_red: red {
-                       label = "red:alarm";
+                       function = LED_FUNCTION_ALARM;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
                };
 
                led_amber: amber {
-                       label = "amber:programming";
+                       function = LED_FUNCTION_PROGRAMMING;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
 
                led_blue: blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
                };
 
                // On back panel, above USB socket
 
                led_usb: usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&usb3_port1>, <&usb3_port2>,
                                          <&usb2_port1>;
index 44dbfef529d9af703cb2dde228fed66885d097b9..849df642016ea4a6328499c72f3134e253ce8cea 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                led-0 {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led-1 {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
 
                led_status_green: led-2 {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_red: led-3 {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_blue: led-4 {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_white: led-5 {
-                       label = "white:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
                };
        };
index 49d399ed1f45d346f8740391211b8aaa309265ce..ed333c499004f2dfa7988cf3e956971210867638 100644 (file)
@@ -6,6 +6,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -66,7 +67,8 @@
                compatible = "gpio-leds";
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
                };
 
@@ -89,7 +91,8 @@
                };
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
                };
        };
index f746acfbb950dbc35c14b5fb07654feb93bd7430..5604af2ddb9a55b6da660a95fab77a121c71802e 100644 (file)
                        color = <LED_COLOR_ID_BLUE>;
                        function = LED_FUNCTION_STATUS;
                        gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                };
 
                led-1 {
index 6fce4ae87b5162685112f78847401e7771292f28..e2df1d1997609d4935c5bc061ab2f4483d276f15 100644 (file)
@@ -7,6 +7,7 @@
 #include <dt-bindings/soc/qcom,tcsr.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Cell C RTL30VW";
 
                led_power_blue: power_blue {
                        gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        default-state = "on";
                };
 
                led_power_red: power_red {
                        gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                };
 
                tp28 {
@@ -83,7 +86,8 @@
 
                wps {
                        gpios = <&led_gpio 10 GPIO_ACTIVE_HIGH>;
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                };
 
                voip {
index 7d030c489d2fe6b913fb8835c59017a3dbcbeeef..00b5897b7dbac10baa800cd39083498ef36fdc9f 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
                compatible = "gpio-leds";
 
                led_power_white: power_white {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
                };
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
                };
 
index 3de6a10433714bb34fa70c6a43d0b5fb8c0226eb..fe3650ca580771460ebdd3617a3cff43c349bb6f 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -98,7 +99,8 @@
                        pinctrl-names = "default";
 
                        led_status: status {
-                               label = "green:status";
+                               function = LED_FUNCTION_STATUS;
+                               color = <LED_COLOR_ID_GREEN>;
                                gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
                        };
                };
index 9694973132f5eae700ed5ffa21a09bbb1fad79ed..13ed26d5d6082e984517e0dcb77d9632909ed442 100644 (file)
@@ -17,6 +17,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                compatible = "gpio-leds";
 
                power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
                };
        };
index 1a61b8161de71b8adcb489f587929d121f149044..e7236824aa0fee1e67ea8300691e125449dc4ddc 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -93,7 +94,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
index dbf6c14b7246d5b64137304072b7ab10c55e8b38..2b9f73eb24442dde88d3e22ce6a5d65d1d8402e6 100644 (file)
                compatible = "gpio-leds";
 
                power_orange: power {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };