Skip to content

Commit

Permalink
arm64: dts: qcom: pm660l: Add WLED support
Browse files Browse the repository at this point in the history
This will enable backlight control on WLED-enabled devices.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210728222542.54269-22-konrad.dybcio@somainline.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
konradybcio authored and andersson committed Aug 4, 2021
1 parent b59b058 commit 7b56a80
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions arch/arm64/boot/dts/qcom/pm660l.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@
reg = <0x3 SPMI_USID>;
#address-cells = <1>;
#size-cells = <0>;

pm660l_wled: leds@d800 {
compatible = "qcom,pm660l-wled";
reg = <0xd800 0xd900>;
interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "ovp";
label = "backlight";

qcom,switching-freq = <800>;
qcom,ovp-millivolt = <29600>;
qcom,current-boost-limit = <970>;
qcom,current-limit-microamp = <20000>;
qcom,num-strings = <2>;
qcom,enabled-strings = <0 1>;

status = "disabled";
};
};
};

0 comments on commit 7b56a80

Please sign in to comment.