[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210803162641.1525980-6-nfraprado@collabora.com>
Date: Tue, 3 Aug 2021 13:26:41 -0300
From: Nícolas F. R. A. Prado
<nfraprado@...labora.com>
To: Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Andy Gross <agross@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Jacek Anaszewski <jacek.anaszewski@...il.com>
Cc: linux-leds@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
Brian Masney <masneyb@...tation.org>,
Luca Weiss <luca@...tu.xyz>,
Russell King <linux@...linux.org.uk>,
Georgi Djakov <georgi.djakov@...aro.org>,
linux-kernel@...r.kernel.org, phone-devel@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht, ~lkcamp/patches@...ts.sr.ht,
André Almeida <andrealmeid@...labora.com>,
kernel@...labora.com
Subject: [PATCH v3 5/5] ARM: dts: qcom: msm8974-hammerhead: Enable and configure flash LED node
Enable the flash LED node from PM8941 and configure the LEDs. This
enables the Nexus 5 to make use of the LEDs as flash or lantern.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@...labora.com>
---
Added in v3
.../qcom-msm8974-lge-nexus5-hammerhead.dts | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
index 30ee913faae6..78ac56be81b3 100644
--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -759,4 +759,24 @@ otg {
};
};
};
+
+ pm8941@1 {
+ spmi-flash-leds@...0 {
+ status = "okay";
+
+ led@0 {
+ led-max-microamp = <200000>;
+ flash-max-microamp = <1000000>;
+ flash-max-timeout-us = <1280000>;
+ default-state = "off";
+ };
+
+ led@1 {
+ led-max-microamp = <200000>;
+ flash-max-microamp = <1000000>;
+ flash-max-timeout-us = <1280000>;
+ default-state = "off";
+ };
+ };
+ };
};
--
2.32.0
Powered by blists - more mailing lists