* [PATCH v2] arm64: dts: qcom: pmi8998: Add node for WLED
@ 2021-09-09 12:36 AngeloGioacchino Del Regno
2021-09-09 18:05 ` AngeloGioacchino Del Regno
0 siblings, 1 reply; 2+ messages in thread
From: AngeloGioacchino Del Regno @ 2021-09-09 12:36 UTC (permalink / raw)
To: bjorn.andersson
Cc: agross, robh+dt, linux-arm-msm, devicetree, linux-kernel,
konrad.dybcio, marijn.suijten, martin.botka,
~postmarketos/upstreaming, phone-devel, paul.bouchara,
AngeloGioacchino Del Regno
The PMI8998 PMIC has a WLED backlight controller, which is used on
most MSM8998 and SDM845 based devices: add a base configuration for
it and keep it disabled.
This contains only the PMIC specific configuration that does not
change across boards; parameters like number of strings, OVP and
current limits are product specific and shall be specified in the
product DT in order to achieve functionality.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
---
arch/arm64/boot/dts/qcom/pmi8998.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi
index d230c510d4b7..0fef5f113f05 100644
--- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi
@@ -41,5 +41,17 @@ lab: lab {
interrupt-names = "sc-err", "ocp";
};
};
+
+ pmi8998_wled: leds@d800 {
+ compatible = "qcom,pmi8998-wled";
+ reg = <0xd800 0xd900>;
+ interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
+ <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "ovp", "short";
+ label = "backlight";
+
+ status = "disabled";
+ };
+
};
};
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: pmi8998: Add node for WLED
2021-09-09 12:36 [PATCH v2] arm64: dts: qcom: pmi8998: Add node for WLED AngeloGioacchino Del Regno
@ 2021-09-09 18:05 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 2+ messages in thread
From: AngeloGioacchino Del Regno @ 2021-09-09 18:05 UTC (permalink / raw)
To: bjorn.andersson
Cc: agross, robh+dt, linux-arm-msm, devicetree, linux-kernel,
konrad.dybcio, marijn.suijten, martin.botka,
~postmarketos/upstreaming, phone-devel, paul.bouchara
Il 09/09/21 14:36, AngeloGioacchino Del Regno ha scritto:
> The PMI8998 PMIC has a WLED backlight controller, which is used on
> most MSM8998 and SDM845 based devices: add a base configuration for
> it and keep it disabled.
>
> This contains only the PMIC specific configuration that does not
> change across boards; parameters like number of strings, OVP and
> current limits are product specific and shall be specified in the
> product DT in order to achieve functionality.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
P.S.: I forgot to add a note to this patch. The reason for sending a v2
is that in v1 I had a bad signoff (was using my old email).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-09 18:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09 12:36 [PATCH v2] arm64: dts: qcom: pmi8998: Add node for WLED AngeloGioacchino Del Regno
2021-09-09 18:05 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).