ARM: dts: qcom: msm8974-oneplus-bacon: Add notification LED
authorLuca Weiss <luca@z3ntu.xyz>
Mon, 6 Feb 2023 20:40:18 +0000 (21:40 +0100)
committerBjorn Andersson <andersson@kernel.org>
Thu, 9 Feb 2023 03:30:53 +0000 (19:30 -0800)
Add the node describing the sn3193 that's used to provide notification
LED.

Unfortunately the driver currently supports neither multicolor API nor
using the properties function & color, so we use label instead.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230122-msm8974-bacon-features-v2-5-06bb83c20a58@z3ntu.xyz
arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts

index a4b5d680c09769a1bc54831f0b397fe66f71b882..8d2a054d8feed72afa744122f73b3ff94275a861 100644 (file)
                        default-brightness = <80>;
                };
        };
+
+       led-controller@68 {
+               compatible = "si-en,sn3193";
+               reg = <0x68>;
+
+               shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               led@1 {
+                       reg = <1>;
+                       label = "red:status";
+                       led-max-microamp = <17500>;
+               };
+
+               led@2 {
+                       reg = <2>;
+                       label = "green:status";
+                       led-max-microamp = <17500>;
+               };
+
+               led@3 {
+                       reg = <3>;
+                       label = "blue:status";
+                       led-max-microamp = <17500>;
+               };
+       };
 };
 
 &blsp1_i2c6 {