[PATCH 1/4] ARM: dts: qcom: msm8974pro-htc-m8: add status LEDs
Alexandre Messier via B4 Relay
devnull+alex.me.ssier.org at kernel.org
Mon Oct 6 22:55:42 PDT 2025
From: Alexandre Messier <alex at me.ssier.org>
Add support for the notification LEDs on the HTC One M8.
Two LEDs are available, one amber and one green.
Signed-off-by: Alexandre Messier <alex at me.ssier.org>
---
arch/arm/boot/dts/qcom/qcom-msm8974pro-htc-m8.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-htc-m8.dts b/arch/arm/boot/dts/qcom/qcom-msm8974pro-htc-m8.dts
index b896cc1ad6f7..9c3859069aba 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974pro-htc-m8.dts
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-htc-m8.dts
@@ -3,6 +3,7 @@
#include "pm8841.dtsi"
#include "pm8941.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "HTC One (M8)";
@@ -64,6 +65,24 @@ vreg_vph_pwr: vreg-vph-pwr {
};
};
+&pm8941_lpg {
+ qcom,power-source = <1>;
+
+ status = "okay";
+
+ led at 6 {
+ reg = <6>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_STATUS;
+ };
+
+ led at 7 {
+ reg = <7>;
+ color = <LED_COLOR_ID_AMBER>;
+ function = LED_FUNCTION_STATUS;
+ };
+};
+
&pm8941_vib {
status = "okay";
};
--
2.51.0
More information about the linux-arm-kernel
mailing list