2023-04-13 00:46:39

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH] arm64: dts: qcom: msm8996-tone: Enable LPG LEDs

Enable the notification LED(s) wired up to the PMI8994(6) LPG.

Signed-off-by: Konrad Dybcio <[email protected]>
---
.../boot/dts/qcom/msm8996-sony-xperia-tone.dtsi | 29 ++++++++++++++++++++++
1 file changed, 29 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi
index 7f4d493a55ff..b4b770a9277d 100644
--- a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi
@@ -11,6 +11,7 @@
#include "pmi8996.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>

@@ -605,6 +606,34 @@ pm8994_s11: s11 {
};
};

+&pmi8994_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@1 {
+ reg = <1>;
+ color = <LED_COLOR_ID_BLUE>;
+ };
+
+ led@2 {
+ reg = <2>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_RED>;
+ };
+ };
+};
+
&pmi8994_spmi_regulators {
vdd_gfx:
pmi8994_s2: s2 {

---
base-commit: 7d8214bba44c1aa6a75921a09a691945d26a8d43
change-id: 20230413-tone_led-6465f4101c75

Best regards,
--
Konrad Dybcio <[email protected]>


2023-05-25 05:24:23

by Bjorn Andersson

[permalink] [raw]
Subject: Re: [PATCH] arm64: dts: qcom: msm8996-tone: Enable LPG LEDs

On Thu, 13 Apr 2023 02:37:36 +0200, Konrad Dybcio wrote:
> Enable the notification LED(s) wired up to the PMI8994(6) LPG.
>
>

Applied, thanks!

[1/1] arm64: dts: qcom: msm8996-tone: Enable LPG LEDs
commit: 3e459be2a315dd017cbed6a86c23e636987b493f

Best regards,
--
Bjorn Andersson <[email protected]>