From: Christian Marangi Date: Wed, 7 Feb 2024 13:48:43 +0000 (+0100) Subject: qualcommax: convert to new LED color/function format where possible X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b7a7a793b140175cd02a863412b5464cad2269fc;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts index 9503f4b92a..f3d2fa3412 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts @@ -8,6 +8,7 @@ #include "ipq8074-ess.dtsi" #include #include +#include / { model = "Edgecore EAP102"; @@ -64,7 +65,8 @@ }; led_system_green: led_system { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts index 51bb533d1e..3ca92a7a8f 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts @@ -7,6 +7,7 @@ #include "ipq8074-ess.dtsi" #include #include +#include / { model = "ZTE MF269"; @@ -48,7 +49,8 @@ compatible = "gpio-leds"; led_power: power { - label = "white:power"; + function = LED_FUNCTION_POWER; + color = ; gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts index 877a487b97..3f40c17ab4 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts @@ -8,6 +8,7 @@ #include "ipq8074-ess.dtsi" #include #include +#include / { model = "Arcadyan AW1000"; @@ -109,7 +110,8 @@ compatible = "gpio-leds"; led_power: power { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>; }; diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-wax218.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-wax218.dts index 33a618851c..0e71faea72 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-wax218.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-wax218.dts @@ -5,6 +5,7 @@ #include "ipq8074-ess.dtsi" #include +#include #include / { @@ -61,12 +62,14 @@ compatible = "gpio-leds"; led_power_amber: led_power { - label = "amber:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>; }; led_lan { - label = "blue:lan"; + function = LED_FUNCTION_LAN; + color = ; gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>; };