* [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes
@ 2022-06-07 10:29 Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 02/10] ARM: dts: qcom: apq8060-ifc6410: add color to LED node Krzysztof Kozlowski
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED properties - the function and color - to LED nodes.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm/boot/dts/qcom-apq8060-dragonboard.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
index 138d6478ac84..9a4aedc5f3ea 100644
--- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
+++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
#include "qcom-msm8660.dtsi"
@@ -416,6 +417,7 @@ led@131 {
compatible = "qcom,pm8058-led";
reg = <0x131>;
label = "pm8058:red";
+ color = <LED_COLOR_ID_RED>;
default-state = "off";
};
led@132 {
@@ -426,6 +428,7 @@ led@132 {
compatible = "qcom,pm8058-led";
reg = <0x132>;
label = "pm8058:yellow";
+ color = <LED_COLOR_ID_YELLOW>;
default-state = "off";
linux,default-trigger = "mmc0";
};
@@ -433,6 +436,8 @@ led@133 {
compatible = "qcom,pm8058-led";
reg = <0x133>;
label = "pm8058:green";
+ function = LED_FUNCTION_HEARTBEAT;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
linux,default-trigger = "heartbeat";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 02/10] ARM: dts: qcom: apq8060-ifc6410: add color to LED node
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 03/10] ARM: dts: qcom: ipq4018-ap120c-ac: add function and color to LED nodes Krzysztof Kozlowski
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED property - the color - to LED node.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
index 2638b380be20..49607b7b2120 100644
--- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
+++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-apq8064-v2.0.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
/ {
@@ -39,6 +40,7 @@ leds {
led@1 {
label = "apq8064:green:user1";
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 03/10] ARM: dts: qcom: ipq4018-ap120c-ac: add function and color to LED nodes
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 02/10] ARM: dts: qcom: apq8060-ifc6410: add color to LED node Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 04/10] ARM: dts: qcom: ipq8064-rb3011: add color to LED node Krzysztof Kozlowski
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED properties - the function and color - to LED nodes.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts | 6 ++++++
arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts
index 028ac8e24797..cf7da1ab177c 100644
--- a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts
+++ b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+#include <dt-bindings/leds/common.h>
#include "qcom-ipq4018-ap120c-ac.dtsi"
/ {
@@ -10,17 +11,22 @@ leds {
power {
label = "ap120c-ac:green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan {
label = "ap120c-ac:green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
};
support {
label = "ap120c-ac:green:support";
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
diff --git a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts
index b7916fc26d68..c4f89b712fd9 100644
--- a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts
+++ b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+#include <dt-bindings/leds/common.h>
#include "qcom-ipq4018-ap120c-ac.dtsi"
/ {
@@ -8,18 +9,24 @@ leds {
status: status {
label = "ap120c-ac:blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
wlan2g {
label = "ap120c-ac:green:wlan2g";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "ap120c-ac:red:wlan5g";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1tpt";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 04/10] ARM: dts: qcom: ipq8064-rb3011: add color to LED node
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 02/10] ARM: dts: qcom: apq8060-ifc6410: add color to LED node Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 03/10] ARM: dts: qcom: ipq4018-ap120c-ac: add function and color to LED nodes Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 05/10] ARM: dts: qcom: ipq8064: add function to LED nodes Krzysztof Kozlowski
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED property - the color - to LED node.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm/boot/dts/qcom-ipq8064-rb3011.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts
index 596d129d4a95..68b2074807e1 100644
--- a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts
+++ b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-ipq8064.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "MikroTik RB3011UiAS-RM";
@@ -208,6 +209,7 @@ leds {
led@7 {
label = "rb3011:green:user";
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 05/10] ARM: dts: qcom: ipq8064: add function to LED nodes
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
` (2 preceding siblings ...)
2022-06-07 10:29 ` [PATCH 04/10] ARM: dts: qcom: ipq8064-rb3011: add color to LED node Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 06/10] arm64: dts: qcom: apq8016-sbc: add function and color " Krzysztof Kozlowski
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED property - the function - to LED nodes.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi b/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi
index 5c802b99e15f..7a28a0bfc4ee 100644
--- a/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi
+++ b/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-ipq8064.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Qualcomm Technologies, Inc. IPQ8064-v1.0";
@@ -107,6 +108,7 @@ led@8 {
led@9 {
label = "status_led_fail";
+ function = LED_FUNCTION_STATUS;
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
@@ -119,6 +121,7 @@ led@26 {
led@53 {
label = "status_led_pass";
+ function = LED_FUNCTION_STATUS;
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 06/10] arm64: dts: qcom: apq8016-sbc: add function and color to LED nodes
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
` (3 preceding siblings ...)
2022-06-07 10:29 ` [PATCH 05/10] ARM: dts: qcom: ipq8064: add function to LED nodes Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 07/10] arm64: dts: qcom: qrb5165-rb5: " Krzysztof Kozlowski
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED properties - the function and color - to LED nodes.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts
index 7c1eab605c15..3385cdf14a28 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts
@@ -8,6 +8,7 @@
#include "msm8916-pm8916.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
#include <dt-bindings/sound/apq8016-lpass.h>
@@ -116,6 +117,8 @@ leds {
led@1 {
label = "apq8016-sbc:green:user1";
+ function = LED_FUNCTION_HEARTBEAT;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "off";
@@ -123,6 +126,8 @@ led@1 {
led@2 {
label = "apq8016-sbc:green:user2";
+ function = LED_FUNCTION_DISK_ACTIVITY;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0";
default-state = "off";
@@ -130,6 +135,8 @@ led@2 {
led@3 {
label = "apq8016-sbc:green:user3";
+ function = LED_FUNCTION_DISK_ACTIVITY;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc1";
default-state = "off";
@@ -137,6 +144,7 @@ led@3 {
led@4 {
label = "apq8016-sbc:green:user4";
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "none";
panic-indicator;
@@ -145,6 +153,8 @@ led@4 {
led@5 {
label = "apq8016-sbc:yellow:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tx";
default-state = "off";
@@ -152,6 +162,8 @@ led@5 {
led@6 {
label = "apq8016-sbc:blue:bt";
+ function = LED_FUNCTION_BLUETOOTH;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "bluetooth-power";
default-state = "off";
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 07/10] arm64: dts: qcom: qrb5165-rb5: add function and color to LED nodes
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
` (4 preceding siblings ...)
2022-06-07 10:29 ` [PATCH 06/10] arm64: dts: qcom: apq8016-sbc: add function and color " Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 08/10] arm64: dts: qcom: sc7180-trogdor: add function to LED node Krzysztof Kozlowski
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED properties - the function and color - to LED nodes.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
index 0e63f707b911..3b480b9a9fed 100644
--- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
+++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
@@ -5,6 +5,7 @@
/dts-v1/;
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h>
@@ -59,6 +60,8 @@ leds {
user4 {
label = "green:user4";
+ function = LED_FUNCTION_INDICATOR;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pm8150_gpios 10 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "panic-indicator";
default-state = "off";
@@ -66,6 +69,8 @@ user4 {
wlan {
label = "yellow:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&pm8150_gpios 9 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tx";
default-state = "off";
@@ -73,6 +78,8 @@ wlan {
bt {
label = "blue:bt";
+ function = LED_FUNCTION_BLUETOOTH;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "bluetooth-power";
default-state = "off";
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 08/10] arm64: dts: qcom: sc7180-trogdor: add function to LED node
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
` (5 preceding siblings ...)
2022-06-07 10:29 ` [PATCH 07/10] arm64: dts: qcom: qrb5165-rb5: " Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 09/10] arm64: dts: qcom: sc7280-herobrine: " Krzysztof Kozlowski
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED property - the function - to LED node.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
index e55dbaa6dc12..fe43795f7be1 100644
--- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
@@ -8,6 +8,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <dt-bindings/sound/sc7180-lpass.h>
@@ -355,6 +356,7 @@ pwmleds {
keyboard_backlight: keyboard-backlight {
status = "disabled";
label = "cros_ec::kbd_backlight";
+ function = LED_FUNCTION_KBD_BACKLIGHT;
pwms = <&cros_ec_pwm 0>;
max-brightness = <1023>;
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 09/10] arm64: dts: qcom: sc7280-herobrine: add function to LED node
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
` (6 preceding siblings ...)
2022-06-07 10:29 ` [PATCH 08/10] arm64: dts: qcom: sc7180-trogdor: add function to LED node Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 10/10] arm64: dts: qcom: sdm845-db845c: add function and color to LED nodes Krzysztof Kozlowski
2022-07-03 3:56 ` (subset) [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: " Bjorn Andersson
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED property - the function - to LED node.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi
index 9cb1bc8ed6b5..b5e31d908938 100644
--- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi
@@ -15,6 +15,7 @@
#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "sc7280-qcard.dtsi"
#include "sc7280-chrome-common.dtsi"
@@ -301,6 +302,7 @@ pwmleds {
keyboard_backlight: keyboard-backlight {
status = "disabled";
label = "cros_ec::kbd_backlight";
+ function = LED_FUNCTION_KBD_BACKLIGHT;
pwms = <&cros_ec_pwm 0>;
max-brightness = <1023>;
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 10/10] arm64: dts: qcom: sdm845-db845c: add function and color to LED nodes
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
` (7 preceding siblings ...)
2022-06-07 10:29 ` [PATCH 09/10] arm64: dts: qcom: sc7280-herobrine: " Krzysztof Kozlowski
@ 2022-06-07 10:29 ` Krzysztof Kozlowski
2022-07-03 3:56 ` (subset) [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: " Bjorn Andersson
9 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 10:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Add common LED properties - the function and color - to LED nodes.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts
index 194ebeb3259c..398055fc1fdc 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts
@@ -5,6 +5,7 @@
/dts-v1/;
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <dt-bindings/sound/qcom,q6afe.h>
@@ -62,6 +63,8 @@ leds {
user4 {
label = "green:user4";
+ function = LED_FUNCTION_INDICATOR;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "panic-indicator";
default-state = "off";
@@ -69,6 +72,8 @@ user4 {
wlan {
label = "yellow:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&pm8998_gpio 9 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tx";
default-state = "off";
@@ -76,6 +81,8 @@ wlan {
bt {
label = "blue:bt";
+ function = LED_FUNCTION_BLUETOOTH;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pm8998_gpio 5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "bluetooth-power";
default-state = "off";
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: (subset) [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
` (8 preceding siblings ...)
2022-06-07 10:29 ` [PATCH 10/10] arm64: dts: qcom: sdm845-db845c: add function and color to LED nodes Krzysztof Kozlowski
@ 2022-07-03 3:56 ` Bjorn Andersson
9 siblings, 0 replies; 11+ messages in thread
From: Bjorn Andersson @ 2022-07-03 3:56 UTC (permalink / raw)
To: Rob Herring, Andy Gross, linux-arm-msm, Krzysztof Kozlowski,
linux-kernel, devicetree, Krzysztof Kozlowski
On Tue, 7 Jun 2022 12:29:22 +0200, Krzysztof Kozlowski wrote:
> Add common LED properties - the function and color - to LED nodes.
>
>
Applied, thanks!
[06/10] arm64: dts: qcom: apq8016-sbc: add function and color to LED nodes
commit: a072128b881e24c3711a41143ef9866208da0fe1
[07/10] arm64: dts: qcom: qrb5165-rb5: add function and color to LED nodes
commit: 984a8c90c158affd8cf3bb3b5666cad436e3ca7b
[08/10] arm64: dts: qcom: sc7180-trogdor: add function to LED node
commit: 09143dd2cbd6d0b14fa18fcbabb12b8f78e88a1a
[09/10] arm64: dts: qcom: sc7280-herobrine: add function to LED node
commit: b7428806b4345c5cce056756570ce68b4fdbcc57
[10/10] arm64: dts: qcom: sdm845-db845c: add function and color to LED nodes
commit: 0cdfa122a5ee39dc7b979f3e224f9f2b71c94660
Best regards,
--
Bjorn Andersson <bjorn.andersson@linaro.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-07-03 3:57 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07 10:29 [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 02/10] ARM: dts: qcom: apq8060-ifc6410: add color to LED node Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 03/10] ARM: dts: qcom: ipq4018-ap120c-ac: add function and color to LED nodes Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 04/10] ARM: dts: qcom: ipq8064-rb3011: add color to LED node Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 05/10] ARM: dts: qcom: ipq8064: add function to LED nodes Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 06/10] arm64: dts: qcom: apq8016-sbc: add function and color " Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 07/10] arm64: dts: qcom: qrb5165-rb5: " Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 08/10] arm64: dts: qcom: sc7180-trogdor: add function to LED node Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 09/10] arm64: dts: qcom: sc7280-herobrine: " Krzysztof Kozlowski
2022-06-07 10:29 ` [PATCH 10/10] arm64: dts: qcom: sdm845-db845c: add function and color to LED nodes Krzysztof Kozlowski
2022-07-03 3:56 ` (subset) [PATCH 01/10] ARM: dts: qcom: apq8060-dragonboard: " Bjorn Andersson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.