arm64: dts: qcom: msm8996-tone: Enable LPG LEDs
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 13 Apr 2023 00:37:36 +0000 (02:37 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 25 May 2023 04:50:44 +0000 (21:50 -0700)
Enable the notification LED(s) wired up to the PMI8994(6) LPG.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230413-tone_led-v1-1-bc3c73393bfa@linaro.org
arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi

index 7f4d493a55ff499477ab0bb58f00f201c7b6cbf2..b4b770a9277dc511e18850b2c7cf63d7faf8f70c 100644 (file)
@@ -11,6 +11,7 @@
 #include "pmi8996.dtsi"
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
 
        };
 };
 
+&pmi8994_lpg {
+       qcom,power-source = <1>;
+       status = "okay";
+
+       multi-led {
+               color = <LED_COLOR_ID_RGB>;
+               function = LED_FUNCTION_STATUS;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               led@1 {
+                       reg = <1>;
+                       color = <LED_COLOR_ID_BLUE>;
+               };
+
+               led@2 {
+                       reg = <2>;
+                       color = <LED_COLOR_ID_GREEN>;
+               };
+
+               led@3 {
+                       reg = <3>;
+                       color = <LED_COLOR_ID_RED>;
+               };
+       };
+};
+
 &pmi8994_spmi_regulators {
        vdd_gfx:
        pmi8994_s2: s2 {