Thread (12 messages) 12 messages, 4 authors, 2021-10-08

[PATCH v3 5/5] ARM: dts: qcom: msm8974-hammerhead: Enable and configure flash LED node

flat view
STALE1835d

From: Nícolas F. R. A. Prado <hidden>
Date: 2021-08-03 16:27:40
Also in: linux-arm-msm, linux-devicetree, linux-leds, lkml, phone-devel
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---

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@d300 {
+			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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help