arm64: dts: qcom: msm8916-longcheer-l8150: Add notification LED
authorNikita Travkin <nikitos.tr@gmail.com>
Fri, 13 Nov 2020 17:59:16 +0000 (22:59 +0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 23 Nov 2020 05:04:34 +0000 (23:04 -0600)
L8150 uses aw2013 LED contriller for notification LED on the front
of the device. Add it to the device tree

Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Nikita Travkin <nikitos.tr@gmail.com>
Link: https://lore.kernel.org/r/20201113175917.189123-5-nikitos.tr@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts

index 2b8670d..1e893c0 100644 (file)
        };
 };
 
+&blsp_i2c1 {
+       status = "okay";
+
+       led-controller@45 {
+               compatible = "awinic,aw2013";
+               reg = <0x45>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               vcc-supply = <&pm8916_l17>;
+
+               led@0 {
+                       reg = <0>;
+                       led-max-microamp = <5000>;
+                       function = LED_FUNCTION_INDICATOR;
+                       color = <LED_COLOR_ID_RED>;
+               };
+
+               led@1 {
+                       reg = <1>;
+                       led-max-microamp = <5000>;
+                       function = LED_FUNCTION_INDICATOR;
+                       color = <LED_COLOR_ID_GREEN>;
+               };
+
+               led@2 {
+                       reg = <2>;
+                       led-max-microamp = <5000>;
+                       function = LED_FUNCTION_INDICATOR;
+                       color = <LED_COLOR_ID_BLUE>;
+               };
+       };
+};
+
 &blsp_i2c2 {
        status = "okay";