[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250913-judyln-dts-v1-3-23b4b7790dce@postmarketos.org>
Date: Sat, 13 Sep 2025 16:56:36 -0700
From: Paul Sajna <sajattack@...tmarketos.org>
To: Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, David Heidelberg <david@...t.cz>
Cc: linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Amir Dahan <system64fumo@...tonmail.com>,
Christopher Brown <crispybrown@...il.com>,
Paul Sajna <sajattack@...tmarketos.org>
Subject: [PATCH 03/11] arm64: dts: qcom: sdm845-lg-common: Add leds
Add the multicolor status led in the phone's notch
Co-authored-by: Amir Dahan <system64fumo@...tonmail.com>
Signed-off-by: Amir Dahan <system64fumo@...tonmail.com>
Signed-off-by: Paul Sajna <sajattack@...tmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 1acc418b943443f3ba4f8a8a1cfe2c575da11876..d6129ce03f537f0c8c78c2ae5f39be6146cab7dc 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -6,6 +6,7 @@
*/
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
@@ -603,6 +604,31 @@ vol_up_pin_a: vol-up-active-state {
};
};
+&pmi8998_lpg {
+ status = "okay";
+
+ led@0 {
+ label = "blue";
+ reg = <3>;
+ color = <LED_COLOR_ID_BLUE>;
+ default-state = "off";
+ };
+
+ led@1 {
+ label = "green";
+ reg = <4>;
+ color = <LED_COLOR_ID_GREEN>;
+ default-state = "off";
+ };
+
+ led@2 {
+ label = "red";
+ reg = <5>;
+ color = <LED_COLOR_ID_RED>;
+ default-state = "off";
+ };
+};
+
&qupv3_id_0 {
status = "okay";
};
--
2.51.0
Powered by blists - more mailing lists