Skip to contentSkip to conversation

arm64: dts: qcom: qcs6490-idp: Add definition for three LEDs.

PATCH Superseded Hui Liu 3 participants 6 messages Jan 12, 2024 – Jan 15, 2024

Subsystems (3)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Hui Liu

author
#0 lore raw

PATCH v4 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 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
index 37c91fdf3ab9..8268fad505e7 100644
@@ -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]>
#1 lore raw
Quoted 10 lines · On Fri, 12 Jan 2024 at 05:07, 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.

---
Changes in v4:
- Removed "label" definition and added "function" definition.

You have removed "label", but you didn't add "function".

BTW: the commit subject is still wrong. Compare "qmp6490-idp" vs "qcs6490-idp"

Quoted 64 lines

- 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
index 37c91fdf3ab9..8268fad505e7 100644
@@ -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,
--
Hui Liu <[email protected]>

Signature · 2 lines
With best wishes
Dmitry
author
#2 lore raw
Quoted 8 lines · Dmitry Baryshkov
Quoted 6 lines · On Fri, 12 Jan 2024 at 05:07, 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 6 lines
Quoted 4 lines

---
Changes in v4:
- Removed "label" definition and added "function" definition.

You have removed "label", but you didn't add "function".

I added function node "function = LED_FUNCTION_STATUS;" Don't you mean this function node? I didn't get your mean.

Quoted 2 lines

BTW: the commit subject is still wrong. Compare "qmp6490-idp" vs "qcs6490-idp"

OK, I will update it to qcm6490-idp.

Quoted 67 lines
Quoted 65 lines

- 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
index 37c91fdf3ab9..8268fad505e7 100644
@@ -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,
--
Hui Liu <[email protected]>

#3 lore raw
Quoted 9 lines · hui liu
Quoted 8 lines · Dmitry Baryshkov
Quoted 6 lines · On Fri, 12 Jan 2024 at 05:07, 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 6 lines
Quoted 4 lines

---
Changes in v4:
- Removed "label" definition and added "function" definition.

You have removed "label", but you didn't add "function".

I added function node "function = LED_FUNCTION_STATUS;" Don't you mean this function node? I didn't get your mean.

The "function" is a property of the LED (each of them) rather than being a top-level property.

Quoted 70 lines
Quoted 2 lines

BTW: the commit subject is still wrong. Compare "qmp6490-idp" vs "qcs6490-idp"

OK, I will update it to qcm6490-idp.

Quoted 67 lines
Quoted 65 lines

- 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
index 37c91fdf3ab9..8268fad505e7 100644
@@ -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,
--
Hui Liu <[email protected]>

Signature · 2 lines
With best wishes
Dmitry
#4 lore raw
In reply to Hui Liu
Quoted 9 lines · On 12/01/2024 04:05, 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.

---
Changes in v4:
- Removed "label" definition and added "function" definition.

You did not test your patch before sending.

Subject is still wrong. Also, it still has unnecessary full stop. Drop it.

Best regards,
Krzysztof

author
#5 lore raw
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · On 12/01/2024 04:05, 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.

Quoted 8 lines
Quoted 4 lines

---
Changes in v4:
- Removed "label" definition and added "function" definition.

You did not test your patch before sending.

Subject is still wrong. Also, it still has unnecessary full stop. Drop it.

I will update it to qcm6490-idp, I understood wrong previously.

Quoted 4 lines

Best regards,
Krzysztof