* [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array
@ 2024-10-05 3:33 Bjorn Andersson
2024-10-05 3:33 ` [PATCH 1/2] arm64: dts: qcom: pmk8350: Add more SDAM slices Bjorn Andersson
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Bjorn Andersson @ 2024-10-05 3:33 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bjorn Andersson,
Konrad Dybcio
The rb3gen2 has three green LEDs for status indication, describe them.
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
---
Konrad Dybcio (2):
arm64: dts: qcom: pmk8350: Add more SDAM slices
arm64: dts: qcom: qcs6490-rb3gen2: Configure onboard LEDs
arch/arm64/boot/dts/qcom/pmk8350.dtsi | 72 ++++++++++++++++++++++++++++
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 41 ++++++++++++++++
2 files changed, 113 insertions(+)
---
base-commit: 58ca61c1a866bfdaa5e19fb19a2416764f847d75
change-id: 20241004-rb3gen2-leds-0a4dda9b83cf
Best regards,
--
Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] arm64: dts: qcom: pmk8350: Add more SDAM slices
2024-10-05 3:33 [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Bjorn Andersson
@ 2024-10-05 3:33 ` Bjorn Andersson
2024-10-05 3:33 ` [PATCH 2/2] arm64: dts: qcom: qcs6490-rb3gen2: Configure onboard LEDs Bjorn Andersson
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2024-10-05 3:33 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bjorn Andersson,
Konrad Dybcio
From: Konrad Dybcio <quic_kdybcio@quicinc.com>
The downstream tree described more SDAM slices on the PMIC. Some of
them are actually required by other peripherals, whereas other are nice
to add for hardware description purposes.
Add them in.
Signed-off-by: Konrad Dybcio <quic_kdybcio@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/pmk8350.dtsi | 72 +++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pmk8350.dtsi b/arch/arm64/boot/dts/qcom/pmk8350.dtsi
index f0ed15458dd7..565752af2204 100644
--- a/arch/arm64/boot/dts/qcom/pmk8350.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmk8350.dtsi
@@ -76,6 +76,14 @@ pmk8350_rtc: rtc@6100 {
status = "disabled";
};
+ pmk8350_sdam_1: nvram@7000 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x7000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x7000 0x100>;
+ };
+
pmk8350_sdam_2: nvram@7100 {
compatible = "qcom,spmi-sdam";
reg = <0x7100>;
@@ -89,6 +97,70 @@ reboot_reason: reboot-reason@48 {
};
};
+ pmk8350_sdam_5: nvram@7400 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x7400>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x7400 0x100>;
+ };
+
+ pmk8350_sdam_13: nvram@7c00 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x7c00>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x7c00 0x100>;
+ };
+
+ pmk8350_sdam_14: nvram@7d00 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x7d00>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x7d00 0x100>;
+ };
+
+ pmk8350_sdam_21: nvram@8400 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x8400>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x8400 0x100>;
+ };
+
+ pmk8350_sdam_22: nvram@8500 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x8500>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x8500 0x100>;
+ };
+
+ pmk8350_sdam_23: nvram@8600 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x8600>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x8600 0x100>;
+ };
+
+ pmk8350_sdam_41: nvram@9800 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x9800>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x9800 0x100>;
+ };
+
+ pmk8350_sdam_46: nvram@9d00 {
+ compatible = "qcom,spmi-sdam";
+ reg = <0x9d00>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x9d00 0x100>;
+ };
+
pmk8350_gpios: gpio@b000 {
compatible = "qcom,pmk8350-gpio", "qcom,spmi-gpio";
reg = <0xb000>;
--
2.45.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: qcs6490-rb3gen2: Configure onboard LEDs
2024-10-05 3:33 [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Bjorn Andersson
2024-10-05 3:33 ` [PATCH 1/2] arm64: dts: qcom: pmk8350: Add more SDAM slices Bjorn Andersson
@ 2024-10-05 3:33 ` Bjorn Andersson
2024-10-07 18:44 ` [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Rob Herring (Arm)
2024-12-26 18:26 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2024-10-05 3:33 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bjorn Andersson,
Konrad Dybcio
From: Konrad Dybcio <quic_kdybcio@quicinc.com>
RB3 Gen2 has a trio of LEDs connected to the PM8350C's Light Pulse
Generator. Describe them.
Use the "red channel" as a panic indicator by default.
Signed-off-by: Konrad Dybcio <quic_kdybcio@quicinc.com>
[bjorn: Corrected colors]
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 41 ++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
index 0d45662b8028..78f116ca5f45 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
@@ -9,6 +9,7 @@
#define PM7250B_SID 8
#define PM7250B_SID1 9
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "sc7280.dtsi"
#include "pm7250b.dtsi"
@@ -684,6 +685,46 @@ &mdss_edp_phy {
status = "okay";
};
+&pm8350c_pwm {
+ nvmem = <&pmk8350_sdam_21>,
+ <&pmk8350_sdam_22>;
+ nvmem-names = "lpg_chan_sdam",
+ "lut_sdam";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "okay";
+
+ led@1 {
+ reg = <1>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_INDICATOR;
+ function-enumerator = <3>;
+ linux,default-trigger = "none";
+ default-state = "off";
+ panic-indicator;
+ };
+
+ led@2 {
+ reg = <2>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_INDICATOR;
+ function-enumerator = <2>;
+ linux,default-trigger = "none";
+ default-state = "off";
+ };
+
+ led@3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_INDICATOR;
+ function-enumerator = <1>;
+ linux,default-trigger = "none";
+ default-state = "off";
+ };
+};
+
&pmk8350_rtc {
status = "okay";
};
--
2.45.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array
2024-10-05 3:33 [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Bjorn Andersson
2024-10-05 3:33 ` [PATCH 1/2] arm64: dts: qcom: pmk8350: Add more SDAM slices Bjorn Andersson
2024-10-05 3:33 ` [PATCH 2/2] arm64: dts: qcom: qcs6490-rb3gen2: Configure onboard LEDs Bjorn Andersson
@ 2024-10-07 18:44 ` Rob Herring (Arm)
2024-12-26 18:26 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2024-10-07 18:44 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Krzysztof Kozlowski, Konrad Dybcio, linux-arm-msm,
Bjorn Andersson, devicetree, linux-kernel, Conor Dooley,
Konrad Dybcio
On Fri, 04 Oct 2024 20:33:41 -0700, Bjorn Andersson wrote:
> The rb3gen2 has three green LEDs for status indication, describe them.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
> ---
> Konrad Dybcio (2):
> arm64: dts: qcom: pmk8350: Add more SDAM slices
> arm64: dts: qcom: qcs6490-rb3gen2: Configure onboard LEDs
>
> arch/arm64/boot/dts/qcom/pmk8350.dtsi | 72 ++++++++++++++++++++++++++++
> arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 41 ++++++++++++++++
> 2 files changed, 113 insertions(+)
> ---
> base-commit: 58ca61c1a866bfdaa5e19fb19a2416764f847d75
> change-id: 20241004-rb3gen2-leds-0a4dda9b83cf
>
> Best regards,
> --
> Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y qcom/qcs6490-rb3gen2.dtb' for 20241004-rb3gen2-leds-v1-0-437cdbb4f6c0@oss.qualcomm.com:
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: pmic@2: pwm:nvmem: [[341, 342]] is too short
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml#
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: pwm: nvmem: [[341, 342]] is too short
from schema $id: http://devicetree.org/schemas/leds/leds-qcom-lpg.yaml#
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array
2024-10-05 3:33 [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Bjorn Andersson
` (2 preceding siblings ...)
2024-10-07 18:44 ` [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Rob Herring (Arm)
@ 2024-12-26 18:26 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2024-12-26 18:26 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson
Cc: linux-arm-msm, devicetree, linux-kernel, Konrad Dybcio
On Fri, 04 Oct 2024 20:33:41 -0700, Bjorn Andersson wrote:
> The rb3gen2 has three green LEDs for status indication, describe them.
>
>
Applied, thanks!
[1/2] arm64: dts: qcom: pmk8350: Add more SDAM slices
commit: 25262976260e63564adc40c6c9cc02fc8918e2fa
[2/2] arm64: dts: qcom: qcs6490-rb3gen2: Configure onboard LEDs
commit: 703b23b802be6432059ad2b56cbee943f7c25865
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-26 18:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 3:33 [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Bjorn Andersson
2024-10-05 3:33 ` [PATCH 1/2] arm64: dts: qcom: pmk8350: Add more SDAM slices Bjorn Andersson
2024-10-05 3:33 ` [PATCH 2/2] arm64: dts: qcom: qcs6490-rb3gen2: Configure onboard LEDs Bjorn Andersson
2024-10-07 18:44 ` [PATCH 0/2] arm64: dts: qcom: qcs6490-rb3gen2: Describe LED array Rob Herring (Arm)
2024-12-26 18:26 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).