arm64: dts: qcom: pmi8994: Add WLED node
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Sun, 28 Feb 2021 13:08:28 +0000 (14:08 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 26 May 2021 03:40:33 +0000 (22:40 -0500)
Add and configure WLED node to enable backlight
control on WLED-enabled devices.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210228130831.203765-10-konrad.dybcio@somainline.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/pmi8994.dtsi

index e5ed28ab9b2de825ef9a5276bd3c2ec3c0f468e9..b4ac900ab115f7fa808c5623f2614685107a3abc 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
                };
+
+               pmi8994_wled: wled@d800 {
+                       compatible = "qcom,pmi8994-wled";
+                       reg = <0xd800 0xd900>;
+                       interrupts = <3 0xd8 0x02 IRQ_TYPE_EDGE_RISING>;
+                       interrupt-names = "short";
+                       qcom,num-strings = <3>;
+                       /* Yes, all four strings *have to* be defined or things won't work. */
+                       qcom,enabled-strings = <0 1 2 3>;
+                       qcom,cabc;
+                       qcom,eternal-pfet;
+                       status = "disabled";
+               };
        };
 };