* [PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs
@ 2026-09-11 9:57 Konrad Dybcio
2026-11-10 4:34 ` Bjorn Andersson
2026-12-02 3:51 ` Shujath Mohd
0 siblings, 2 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-09-11 9:57 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Konrad Dybcio
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
All of the XZ2/3 series devices have a front RGB notification LED and
a single rear camera flash LED. Describe them.
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
.../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 05e5a3674e5f..dd38ed73da1f 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -5,6 +5,7 @@
#include <dt-bindings/arm/qcom,ids.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "sdm845.dtsi"
@@ -618,6 +619,19 @@ snapshot_n: snapshot-n-state {
};
};
+&pmi8998_flash {
+ status = "okay";
+
+ led-0 {
+ function = LED_FUNCTION_FLASH;
+ color = <LED_COLOR_ID_WHITE>;
+ led-sources = <1>, <2>;
+ led-max-microamp = <100000>;
+ flash-max-microamp = <625000>;
+ flash-max-timeout-us = <1280000>;
+ };
+};
+
&pmi8998_gpios {
cam_io_en: cam-io-en-state {
pins = "gpio12";
@@ -629,6 +643,35 @@ cam_io_en: cam-io-en-state {
};
};
+&pmi8998_lpg {
+ qcom,power-source = <1>;
+
+ status = "okay";
+
+ multi-led {
+ color = <LED_COLOR_ID_RGB>;
+ function = LED_FUNCTION_STATUS;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_BLUE>;
+ };
+
+ led@4 {
+ reg = <4>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@5 {
+ reg = <5>;
+ color = <LED_COLOR_ID_RED>;
+ };
+ };
+};
+
&pmi8998_wled {
default-brightness = <800>;
qcom,switching-freq = <800>;
---
base-commit: 944a035ecca915ae947905dcfb03f2b9dc6d032c
change-id: 20260911-topic-tama_leds-961b67f83dc0
Best regards,
--
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs
2026-09-11 9:57 [PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs Konrad Dybcio
@ 2026-11-10 4:34 ` Bjorn Andersson
2026-12-02 3:51 ` Shujath Mohd
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2026-11-10 4:34 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Konrad Dybcio
Cc: linux-arm-msm, devicetree, linux-kernel, Konrad Dybcio
On Fri, 11 Sep 2026 11:57:08 +0200, Konrad Dybcio wrote:
> All of the XZ2/3 series devices have a front RGB notification LED and
> a single rear camera flash LED. Describe them.
Applied, thanks!
[1/1] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs
commit: f94de513c6ee685062b3cfecea1fb464cf8bed9d
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs
2026-09-11 9:57 [PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs Konrad Dybcio
2026-11-10 4:34 ` Bjorn Andersson
@ 2026-12-02 3:51 ` Shujath Mohd
1 sibling, 0 replies; 3+ messages in thread
From: Shujath Mohd @ 2026-12-02 3:51 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Konrad Dybcio, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
Hi Konrad,
I carried this patch on top of v7.4-rc5 for postmarketOS on Sony Xperia
XZ2 Compact (apollo / sdm845-sony-xperia-tama-apollo).
With pmi8998_lpg and pmi8998_flash enabled as in the patch:
- leds_qcom_lpg / leds_qcom_flash probe
- /sys/class/leds exposes rgb:status (blue/green/red) and white:flash
- brightness sysfs read/write works on both
Noting Bjorn already applied it as f94de513c6ee ("arm64: dts: qcom:
sdm845-tama: Enable RGB and flash LEDs"); this is just a Tested-by from
apollo for the record.
Tested-by: Shujath Mohd <shujath@outlook.in>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-02 3:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 9:57 [PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs Konrad Dybcio
2026-11-10 4:34 ` Bjorn Andersson
2026-12-02 3:51 ` Shujath Mohd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®