Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: ipq4018-ap120c-ac: add function and color to LED nodes

Add common LED properties - the function and color - to LED nodes.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220607102931.102805-3-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Bjorn Andersson
47e889d3 966d7e9c

+13
+6
arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts
··· 1 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 2 3 + #include <dt-bindings/leds/common.h> 3 4 #include "qcom-ipq4018-ap120c-ac.dtsi" 4 5 5 6 / { ··· 11 10 12 11 power { 13 12 label = "ap120c-ac:green:power"; 13 + function = LED_FUNCTION_POWER; 14 + color = <LED_COLOR_ID_GREEN>; 14 15 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; 15 16 default-state = "on"; 16 17 }; 17 18 18 19 wlan { 19 20 label = "ap120c-ac:green:wlan"; 21 + function = LED_FUNCTION_WLAN; 22 + color = <LED_COLOR_ID_GREEN>; 20 23 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; 21 24 }; 22 25 23 26 support { 24 27 label = "ap120c-ac:green:support"; 28 + color = <LED_COLOR_ID_GREEN>; 25 29 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>; 26 30 panic-indicator; 27 31 };
+7
arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts
··· 1 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 2 3 + #include <dt-bindings/leds/common.h> 3 4 #include "qcom-ipq4018-ap120c-ac.dtsi" 4 5 5 6 / { ··· 9 8 10 9 status: status { 11 10 label = "ap120c-ac:blue:status"; 11 + function = LED_FUNCTION_STATUS; 12 + color = <LED_COLOR_ID_BLUE>; 12 13 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; 13 14 default-state = "keep"; 14 15 }; 15 16 16 17 wlan2g { 17 18 label = "ap120c-ac:green:wlan2g"; 19 + function = LED_FUNCTION_WLAN; 20 + color = <LED_COLOR_ID_GREEN>; 18 21 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; 19 22 linux,default-trigger = "phy0tpt"; 20 23 }; 21 24 22 25 wlan5g { 23 26 label = "ap120c-ac:red:wlan5g"; 27 + function = LED_FUNCTION_WLAN; 28 + color = <LED_COLOR_ID_RED>; 24 29 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>; 25 30 linux,default-trigger = "phy1tpt"; 26 31 };