[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250904-enchilada-led-v1-1-dcf936ea7795@ixit.cz>
Date: Thu, 04 Sep 2025 15:54:54 +0200
From: David Heidelberg <david@...t.cz>
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>
Cc: linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Antonio Rische <nt8r@...tonmail.com>,
David Heidelberg <david@...t.cz>
Subject: [PATCH] arm64: dts: qcom: sdm845-enchilada: Add notification LED
From: Antonio Rische <nt8r@...tonmail.com>
Add the notification LED for the device.
The R/G/B channels are controlled by the PMI8998 LPG.
Signed-off-by: Antonio Rische <nt8r@...tonmail.com>
Signed-off-by: David Heidelberg <david@...t.cz>
---
.../boot/dts/qcom/sdm845-oneplus-enchilada.dts | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
index bfbc3e6e71bb5dc846f84260d2effe0b8af628c6..a259eb9d45ae07497d4ed31c643871eebe970200 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
@@ -5,6 +5,7 @@
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
+#include <dt-bindings/leds/common.h>
#include "sdm845-oneplus-common.dtsi"
/ {
@@ -61,6 +62,33 @@ &pmi8998_charger {
monitored-battery = <&battery>;
};
+&pmi8998_lpg {
+ 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>;
+ };
+ };
+};
+
&sound {
model = "OnePlus 6";
audio-routing = "RX_BIAS", "MCLK",
---
base-commit: 4ac65880ebca1b68495bd8704263b26c050ac010
change-id: 20250904-enchilada-led-9440974a7d51
Best regards,
--
David Heidelberg <david@...t.cz>
Powered by blists - more mailing lists