arm64: dts: qcom: qcm6490-idp: Add definition for three LEDs
PATCH v5 1/1 arm64: dts: qcom: qcm6490-idp: Add definition for three LEDs
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
---
Changes in v5:
- Rephrased commit text, replaced qcs6490-idp to qcm6490-idp.
- Removed the unnecessary full.
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Removed "label" definition and added "function" definition.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Rephrased commit text and updated the nodes to qcm6490-idp board file.
- Link to v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- Rephrased commit text and updated the nodes to board file.
- Link to v1: https://lore.kernel.org/r/[email protected]
--- arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +23 -0
@@ -5,6 +5,7 @@ /dts-v1/; +#include <dt-bindings/leds/common.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include "sc7280.dtsi" #include "pm7325.dtsi"
@@ -414,6 +415,28 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + function = LED_FUNCTION_STATUS; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + }; +}; + &qupv3_id_0 { status = "okay"; };
---
base-commit: 17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811a
Best regards,
Signature · 1 line
Hui Liu <[email protected]>
Quoted 5 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Quoted 74 lines
Signed-off-by Hui Liu <[email protected]>---
Changes in v5:
- Rephrased commit text, replaced qcs6490-idp to qcm6490-idp.
- Removed the unnecessary full.
- Link to v4: https://lore.kernel.org/r/[email protected]Changes in v4:
- Removed "label" definition and added "function" definition.
- Link to v3: https://lore.kernel.org/r/[email protected]Changes in v3:
- Rephrased commit text and updated the nodes to qcm6490-idp board file.
- Link to v2: https://lore.kernel.org/all/[email protected]/Changes in v2:
- Rephrased commit text and updated the nodes to board file.
- Link to v1: https://lore.kernel.org/r/[email protected]--- arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +23
-1@@ -5,6 +5,7 @@ /dts-v1/; +#include <dt-bindings/leds/common.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include "sc7280.dtsi" #include "pm7325.dtsi"@@ -414,6 +415,28 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + function = LED_FUNCTION_STATUS; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + }; +}; + &qupv3_id_0 { status = "okay"; }; ---base-commit:
17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811aBest regards,
--
Hui Liu <[email protected]>
Signature · 2 lines
With best wishes Dmitry
Quoted 11 lines · Dmitry Baryshkov
Quoted 5 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Do you mean I should update it as below? Seems there is no consumer to use the function config, do we need to add now? pm8350c_pwm {
+ function = LED_FUNCTION_STATUS; + #address-cells = <1>; + #size-cells = <0>; + status = "okay";
+
+ led@1 {
+ reg = <1>;
+ color = <LED_COLOR_ID_RED>;
+ function = LED_FUNCTION_STATUS;
+ };
+ ...
Quoted 77 lines
Quoted 75 lines
Signed-off-by Hui Liu <[email protected]>---
Changes in v5:
- Rephrased commit text, replaced qcs6490-idp to qcm6490-idp.
- Removed the unnecessary full.
- Link to v4: https://lore.kernel.org/r/[email protected]Changes in v4:
- Removed "label" definition and added "function" definition.
- Link to v3: https://lore.kernel.org/r/[email protected]Changes in v3:
- Rephrased commit text and updated the nodes to qcm6490-idp board file.
- Link to v2: https://lore.kernel.org/all/[email protected]/Changes in v2:
- Rephrased commit text and updated the nodes to board file.
- Link to v1: https://lore.kernel.org/r/[email protected]--- arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +23
-1@@ -5,6 +5,7 @@ /dts-v1/; +#include <dt-bindings/leds/common.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include "sc7280.dtsi" #include "pm7325.dtsi"@@ -414,6 +415,28 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + function = LED_FUNCTION_STATUS; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + }; +}; + &qupv3_id_0 { status = "okay"; }; ---base-commit:
17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811aBest regards,
--
Hui Liu <[email protected]>
Quoted 8 lines · hui liu
Quoted 5 lines · Dmitry Baryshkov
Quoted 3 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Do you mean I should update it as below? Seems there is no consumer to use the function config, do we need to add now?
Paste the output of dtbs_check for your board (or CHECK_DTBS=y for your Makefile target).
Best regards,
Krzysztof
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · hui liu
Quoted 8 lines · Dmitry Baryshkov
Quoted 5 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Do you mean I should update it as below? Seems there is no consumer to use the function config, do we need to add now?
Paste the output of
dtbs_checkfor your board (or CHECK_DTBS=y for yourMakefiletarget).
I checked the dt-binding file of LPG LED, I will update the dts as below, if you think it's correct, I will push v6.
+&pm8350c_pwm {
+ #address-cells = <1>; + #size-cells = <0>; + status = "okay";
+
+ led@1 {
+ reg = <1>;
+ color = <LED_COLOR_ID_RED>;
+ function = LED_FUNCTION_STATUS;
+ };
+
+ led@2 {
+ reg = <2>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_STATUS;
+ };
+
+ led@3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_STATUS;
+ };
+};
+
Thanks,
Hui
Quoted 4 lines
Best regards,
Krzysztof
Quoted 19 lines · hui liu
Quoted 15 lines · Krzysztof Kozlowski
Quoted 14 lines · hui liu
Quoted 11 lines · Dmitry Baryshkov
Quoted 5 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Do you mean I should update it as below? Seems there is no consumer to use the function config, do we need to add now?
Paste the output of
dtbs_checkfor your board (or CHECK_DTBS=y for yourMakefiletarget).I checked the dt-binding file of LPG LED, I will update the dts as below, if you think it's correct, I will push v6.
Is there any reason why you are defining three different LEDs instead of multi-led with three components?
Quoted 24 lines
+&pm8350c_pwm {
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +22
-0+ #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_STATUS; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; + }; +};
Signature · 2 lines
With best wishes Dmitry
Quoted 23 lines · Dmitry Baryshkov
Quoted 22 lines · hui liu
Quoted 18 lines · Krzysztof Kozlowski
Quoted 16 lines · hui liu
Quoted 11 lines · Dmitry Baryshkov
Quoted 5 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Do you mean I should update it as below? Seems there is no consumer to use the function config, do we need to add now?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Paste the output of
dtbs_checkfor your board (or CHECK_DTBS=y for yourMakefiletarget).I checked the dt-binding file of LPG LED, I will update the dts as below, if you think it's correct, I will push v6.
Is there any reason why you are defining three different LEDs instead of multi-led with three components?
In the HW design, they are three seprete LEDs, there are three LEDs on device. why do we need to add for multi-led?
Thanks,
Hui
Quoted 28 lines
Quoted 25 lines
+&pm8350c_pwm {
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +22
-0+ #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_STATUS; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; + }; +};
Quoted 26 lines · hui liu
Quoted 23 lines · Dmitry Baryshkov
Quoted 22 lines · hui liu
Quoted 18 lines · Krzysztof Kozlowski
Quoted 16 lines · hui liu
Quoted 11 lines · Dmitry Baryshkov
Quoted 5 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Do you mean I should update it as below? Seems there is no consumer to use the function config, do we need to add now?
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Paste the output of
dtbs_checkfor your board (or CHECK_DTBS=y for yourMakefiletarget).I checked the dt-binding file of LPG LED, I will update the dts as below, if you think it's correct, I will push v6.
Is there any reason why you are defining three different LEDs instead of multi-led with three components?
Hi Dmitry,
If there is no other issue, can I push the V6?
Thanks,
Hui
Quoted 32 lines
In the HW design, they are three seprete LEDs, there are three LEDs on device. why do we need to add for multi-led?
Thanks,
HuiQuoted 28 lines
Quoted 25 lines
+&pm8350c_pwm {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";(quoted diff) +19
-0+ + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_STATUS; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; + }; +};
Quoted 34 lines · hui liu
Quoted 31 lines · hui liu
Quoted 28 lines · Dmitry Baryshkov
Quoted 26 lines · hui liu
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · hui liu
Quoted 8 lines · Dmitry Baryshkov
Quoted 5 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
The "function" property is still placed incorrectly. Posting the next iteration before concluding the discussion on the previous one is not the best idea.
Do you mean I should update it as below? Seems there is no consumer to use the function config, do we need to add now?
Paste the output of
dtbs_checkfor your board (or CHECK_DTBS=y for yourMakefiletarget).I checked the dt-binding file of LPG LED, I will update the dts as below, if you think it's correct, I will push v6.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Is there any reason why you are defining three different LEDs instead of multi-led with three components?
In the HW design, they are three seprete LEDs, there are three LEDs on device. why do we need to add for multi-led?
Thanks,
Hui
I double confirmed the HW design, for IDP devcie, we should set it to multi led, for another similar device(RB3-GEN2, I will push LED change for this device later), it should be set to seperate LED. They are different, so I will push V6 to set it for multi-led for QCM6490-IDP device. Thanks for your review.
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 25 lines
+&pm8350c_pwm {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";(quoted diff) +19
-0+ + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_STATUS; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; + }; +};
Quoted 48 lines · hui liu
Quoted 44 lines · hui liu
Quoted 41 lines · hui liu
Quoted 26 lines · Dmitry Baryshkov
Quoted 25 lines · hui liu
Quoted 21 lines · Krzysztof Kozlowski
Quoted 19 lines · hui liu
Quoted 5 lines · Dmitry Baryshkov
Quoted 3 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Quoted 8 lines
Quoted 2 lines
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next
iteration before concluding the discussion on the previous one is not
the best idea.Do you mean I should update it as below? Seems there is no consumer to
use the function config, do we need to add now?Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Paste the output of
dtbs_checkfor your board (or CHECK_DTBS=y for yourMakefiletarget).I checked the dt-binding file of LPG LED, I will update the dts as below, if you think it's correct, I will push v6.
Is there any reason why you are defining three different LEDs instead of multi-led with three components?
In the HW design, they are three seprete LEDs, there are three LEDs on device. why do we need to add for multi-led?
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Thanks,
HuiI double confirmed the HW design, for IDP devcie, we should set it to multi led, for another similar
device(RB3-GEN2, I will push LED change for this device later), it should be set to seperate LED. They are different, so I will push V6 to set it for multi-led for QCM6490-IDP device. Thanks for your review.
Ack, thank you.
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 26 lines
+&pm8350c_pwm {
(quoted diff) +22
-0+ #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_STATUS; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; + }; +};
Signature · 2 lines
With best wishes Dmitry
Quoted 52 lines · Dmitry Baryshkov
Quoted 51 lines · hui liu
Quoted 46 lines · hui liu
Quoted 43 lines · hui liu
Quoted 26 lines · Dmitry Baryshkov
Quoted 25 lines · hui liu
Quoted 21 lines · Krzysztof Kozlowski
Quoted 19 lines · hui liu
Quoted 5 lines · Dmitry Baryshkov
Quoted 3 lines · On Mon, 15 Jan 2024 at 11:48, Hui Liu via B4 Relay…
From: Hui Liu <[email protected]>
Quoted 8 lines
Quoted 2 lines
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
The "function" property is still placed incorrectly. Posting the next
iteration before concluding the discussion on the previous one is not
the best idea.Do you mean I should update it as below? Seems there is no consumer to
use the function config, do we need to add now?Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Paste the output of
dtbs_checkfor your board (or CHECK_DTBS=y for yourMakefiletarget).I checked the dt-binding file of LPG LED, I will update the dts as below, if you think it's correct, I will push v6.
Is there any reason why you are defining three different LEDs instead of multi-led with three components?
In the HW design, they are three seprete LEDs, there are three LEDs on device. why do we need to add for multi-led?
Thanks,
Hui
Quoted 7 lines
Quoted 5 lines
I double confirmed the HW design, for IDP devcie, we should set it to multi led, for another similar
device(RB3-GEN2, I will push LED change for this device later), it should be set to seperate LED. They are different, so I will push V6 to set it for multi-led for QCM6490-IDP device. Thanks for your review.Ack, thank you.
Hi Dmitry,
Could you give the approval for V6?
https://lore.kernel.org/all/[email protected]/
Thanks,
Hui
Quoted 33 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 27 lines
+&pm8350c_pwm {
(quoted diff) +22
-0+ #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_STATUS; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; + }; +};