summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2022-05-05 18:43:37 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-07-16 21:40:06 -0500
commit1ea9098a81133d54b3d40d7ffd197f77881e5ecc (patch)
tree5ac3b33090f8854beef8cf5ad9ffc6ae45e52b51 /arch/arm/boot
parenta037fcabdbdd8615e17add98c2638df529ff2e3c (diff)
downloadlinux-1ea9098a81133d54b3d40d7ffd197f77881e5ecc.tar.gz
linux-1ea9098a81133d54b3d40d7ffd197f77881e5ecc.tar.bz2
linux-1ea9098a81133d54b3d40d7ffd197f77881e5ecc.zip
ARM: dts: qcom: msm8974-hammerhead: Add notification LED
Nexus 5 has a RGB LED connected to the TRILED and hence channels 7, 6 and 5 of the LPG. Add a node describing this. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Signed-off-by: André Almeida <andrealmeid@collabora.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220505164336.13210-1-luca@z3ntu.xyz
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts30
1 files changed, 30 insertions, 0 deletions
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 b994474f83e6..ec5d340562b6 100644
--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -3,6 +3,7 @@
#include "qcom-pm8841.dtsi"
#include "qcom-pm8941.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
/ {
@@ -313,6 +314,35 @@
};
};
+&pm8941_lpg {
+ status = "okay";
+
+ qcom,power-source = <1>;
+
+ multi-led {
+ color = <LED_COLOR_ID_RGB>;
+ function = LED_FUNCTION_STATUS;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@7 {
+ reg = <7>;
+ color = <LED_COLOR_ID_RED>;
+ };
+
+ led@6 {
+ reg = <6>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@5 {
+ reg = <5>;
+ color = <LED_COLOR_ID_BLUE>;
+ };
+ };
+};
+
&rpm_requests {
pm8841-regulators {
compatible = "qcom,rpm-pm8841-regulators";