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
This commit is contained in:
André Almeida 2022-05-05 18:43:37 +02:00 committed by Bjorn Andersson
parent a037fcabdb
commit 1ea9098a81

View File

@ -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";