[PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs

Konrad Dybcio posted 1 patch 2 weeks ago
.../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
[PATCH] arm64: dts: qcom: sdm845-tama: Enable RGB and flash LEDs
Posted by Konrad Dybcio 2 weeks ago
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>