arm64: dts: qcom: qcs6490-idp: Add definition for three LEDs.
PATCH RESEND v3 1/1 arm64: dts: qcom: qcs6490-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 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +25 -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,30 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + label = "red"; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + label = "green"; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + label = "blue"; + }; +}; + &qupv3_id_0 { status = "okay"; };
---
base-commit: 17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811a
Best regards,
Signature · 1 line
Hui Liu <[email protected]>
Quoted 10 lines · On Thu, 11 Jan 2024 at 04:54, 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.
Signed-off-by Hui Liu <[email protected]>---
Changes in v3:
- Rephrased commit text and updated the nodes to qcm6490-idp board file.
The commit message is the same as in v2.
Commit subject mentions non-existing board, "qcs6490-idp"
Quoted 24 lines
- 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +1
-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,30 @@ vreg_bob_3p296: bob { }; };
arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 426
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +9
-0+&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + label = "red";
Is there any reason why Krzysztof's review for v2 was ignored? Let me repeat it here: "Drop labels. You already have color, so you miss function."
Quoted 28 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +15
-1+ }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + label = "green"; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + label = "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 42 lines · Dmitry Baryshkov
Quoted 10 lines · On Thu, 11 Jan 2024 at 04:54, 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.
Signed-off-by Hui Liu <[email protected]>---
Changes in v3:
- Rephrased commit text and updated the nodes to qcm6490-idp board file.The commit message is the same as in v2.
Commit subject mentions non-existing board, "qcs6490-idp"
Quoted 25 lines
- 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +1
-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,30 @@ vreg_bob_3p296: bob { }; };
Quoted 13 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 426
Quoted 9 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +9
-0+&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + label = "red";Is there any reason why Krzysztof's review for v2 was ignored? Let me repeat it here: "Drop labels. You already have color, so you miss function."
I will update it.
Quoted 32 lines
Quoted 30 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +15
-1+ }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + label = "green"; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + label = "blue"; + }; +}; + &qupv3_id_0 { status = "okay"; }; ---base-commit:
17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811aBest regards,
--
Hui Liu <[email protected]>
Quoted 8 lines · Dmitry Baryshkov
Quoted 6 lines · On Thu, 11 Jan 2024 at 04:54, 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 4 lines
Signed-off-by Hui Liu <[email protected]>---
Changes in v3:
- Rephrased commit text and updated the nodes to qcm6490-idp board file.The commit message is the same as in v2.
Commit subject mentions non-existing board, "qcs6490-idp"
This devicetree file of this board has been merged in linux-next,
https://lore.kernel.org/linux-arm-msm/[email protected]/
Quoted 71 lines
Quoted 25 lines
- 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +1
-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,30 @@ vreg_bob_3p296: bob { }; };arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 426
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +9
-0+&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + label = "red";Is there any reason why Krzysztof's review for v2 was ignored? Let me repeat it here: "Drop labels. You already have color, so you miss function."
Quoted 28 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +15
-1+ }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + label = "green"; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + label = "blue"; + }; +}; + &qupv3_id_0 { status = "okay"; }; ---base-commit:
17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811aBest regards,
--
Hui Liu <[email protected]>
Quoted 31 lines · On Thu Jan 11, 2024 at 3:52 AM CET, Hui Liu via B4 Relay wrote:
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
Signed-off-by Hui Liu <[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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +1
-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"
arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 424
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +7
-0@@ -414,6 +415,30 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>;
Hi Hui Liu,
arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 426
Quoted 2 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +2
-0+ color = <LED_COLOR_ID_RED>; + label = "red";
Please remove the deprecated "label" property. Since you already have "color" set you only need to add "function". On phones for the notification LED we usually use "function = LED_FUNCTION_STATUS;"
Also depends on what your hardware looks like, if it's 3 separate LEDs then with label replaced it would be okay.
If the 3 LEDs are in one spot (so you can mix the colors with it), then please make it a RGB multi-led like e.g. in sm8550-qrd.dts.
Regards
Luca
Quoted 24 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +15
-1+ }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + label = "green"; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + label = "blue"; + }; +}; + &qupv3_id_0 { status = "okay"; }; ---base-commit:
17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811aBest regards,
Quoted 52 lines · Luca Weiss
Quoted 31 lines · On Thu Jan 11, 2024 at 3:52 AM CET, Hui Liu via B4 Relay wrote:
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
Signed-off-by Hui Liu <[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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +1
-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"arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 424
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +7
-0@@ -414,6 +415,30 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>;Hi Hui Liu,
arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 426
Quoted 2 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +2
-0+ color = <LED_COLOR_ID_RED>; + label = "red";Please remove the deprecated "label" property. Since you already have "color" set you only need to add "function". On phones for the notification LED we usually use "function =
LED_FUNCTION_STATUS;"
Quoted 5 lines
Also depends on what your hardware looks like, if it's 3 separate LEDs then with label replaced it would be okay.
If the 3 LEDs are in one spot (so you can mix the colors with it), then please make it a RGB multi-led like e.g. insm8550-qrd.dts.
I already asked for this and it was ignored:
https://lore.kernel.org/all/[email protected]/
Let's engage three different community reviewers to repeat the same, one feedback. This is just disrespectful to our time.
Best regards,
Krzysztof
Quoted 59 lines · Krzysztof Kozlowski
Quoted 52 lines · Luca Weiss
Quoted 31 lines · On Thu Jan 11, 2024 at 3:52 AM CET, Hui Liu via B4 Relay wrote:
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
Signed-off-by Hui Liu <[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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +1
-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"arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 424
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +7
-0@@ -414,6 +415,30 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>;Hi Hui Liu,
arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 426
Quoted 2 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +2
-0+ color = <LED_COLOR_ID_RED>; + label = "red";Please remove the deprecated "label" property. Since you already have "color" set you only need to add "function". On phones for the notification LED we usually use "function =
LED_FUNCTION_STATUS;"Quoted 5 lines
Also depends on what your hardware looks like, if it's 3 separate LEDs then with label replaced it would be okay.
If the 3 LEDs are in one spot (so you can mix the colors with it), then please make it a RGB multi-led like e.g. insm8550-qrd.dts.
Quoted 6 lines
I already asked for this and it was ignored:
https://lore.kernel.org/all/[email protected]/
Let's engage three different community reviewers to repeat the same, one feedback. This is just disrespectful to our time.
Sorry, I ignored that comments, I will submit v4 to update it. Thanks for your comments.
Quoted 4 lines
Best regards,
Krzysztof
Quoted 45 lines · Luca Weiss
Quoted 31 lines · On Thu Jan 11, 2024 at 3:52 AM CET, Hui Liu via B4 Relay wrote:
From: Hui Liu <[email protected]>
Add definition for three LEDs to make sure they can be enabled base on QCOM LPG LED driver.
Signed-off-by Hui Liu <[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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/qcom/qcm6490-idp.dts +1
-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"arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 424
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +7
-0@@ -414,6 +415,30 @@ vreg_bob_3p296: bob { }; }; +&pm8350c_pwm { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + led@1 { + reg = <1>;Hi Hui Liu,
Quoted 7 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts vreg_bob_3p296: bob { · line 426
Quoted 2 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +2
-0+ color = <LED_COLOR_ID_RED>; + label = "red";Please remove the deprecated "label" property. Since you already have "color" set you only need to add "function". On phones for the notification LED we usually use "function =
LED_FUNCTION_STATUS;"
I will remove it at next version, thanks!
Quoted 4 lines
Also depends on what your hardware looks like, if it's 3 separate LEDs then with label replaced it would be okay.
If the 3 LEDs are in one spot (so you can mix the colors with it), then please make it a RGB multi-led like e.g. insm8550-qrd.dts
The 3 LEDs are separate.
Quoted 28 lines
Regards
LucaQuoted 24 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +15
-1+ }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + label = "green"; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + label = "blue"; + }; +}; + &qupv3_id_0 { status = "okay"; }; ---base-commit:
17cb8a20bde66a520a2ca7aad1063e1ce7382240
change-id: 20231215-lpg-4aadd374811aBest regards,