From b7a7a793b140175cd02a863412b5464cad2269fc Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Wed, 7 Feb 2024 14:48:43 +0100 Subject: [PATCH] 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 --- .../files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts | 4 +++- .../files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts | 4 +++- .../files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts | 4 +++- .../files/arch/arm64/boot/dts/qcom/ipq8072-wax218.dts | 7 +++++-- 4 files changed, 14 insertions(+), 5 deletions(-) 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 9503f4b92ae..f3d2fa34126 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 51bb533d1e8..3ca92a7a8f3 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 877a487b978..3f40c17ab46 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 33a618851c7..0e71faea72a 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>; };