Quellcode durchsuchen

qualcommax: convert to new LED color/function format where possible

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 <[email protected]>
Christian Marangi vor 1 Jahr
Ursprung
Commit
b7a7a793b1

+ 3 - 1
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts

@@ -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>;
 		};
 	};

+ 3 - 1
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts

@@ -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>;
 		};
 	};

+ 3 - 1
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts

@@ -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";
@@ -109,7 +110,8 @@
 		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>;
 		};
 

+ 5 - 2
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-wax218.dts

@@ -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>
 
 / {
@@ -61,12 +62,14 @@
 		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>;
 		};