* [PATCH] arm64: dts: qcom: pm660: Add rradc, charger
@ 2024-06-06 14:47 Barnabás Czémán
2024-06-07 2:34 ` Bjorn Andersson
0 siblings, 1 reply; 2+ messages in thread
From: Barnabás Czémán @ 2024-06-06 14:47 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Aboothahir U,
Barnabás Czémán
From: Aboothahir U <aboothahirpkd@gmail.com>
Add charger to PM660 PMIC. Readings from round-robin ADC
are needed for charger to function, so add it as well.
Signed-off-by: Aboothahir U <aboothahirpkd@gmail.com>
Signed-off-by: Barnabás Czémán <trabarni@gmail.com>
---
arch/arm64/boot/dts/qcom/pm660.dtsi | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pm660.dtsi b/arch/arm64/boot/dts/qcom/pm660.dtsi
index 98dc04962fe3..ed2c8e485cdd 100644
--- a/arch/arm64/boot/dts/qcom/pm660.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm660.dtsi
@@ -74,6 +74,23 @@ pon_resin: resin {
};
};
+ pm660_charger: charger@1000 {
+ compatible = "qcom,pm660-charger";
+ reg = <0x1000>;
+
+ interrupts = <0x0 0x13 0x4 IRQ_TYPE_EDGE_BOTH>,
+ <0x0 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
+ <0x0 0x16 0x1 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x13 0x6 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "usb-plugin", "bat-ov", "wdog-bark", "usbin-icl-change";
+
+ io-channels = <&pm660_rradc 3>,
+ <&pm660_rradc 4>;
+ io-channel-names = "usbin_i", "usbin_v";
+
+ status = "disabled";
+ };
+
pm660_temp: temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;
@@ -181,6 +198,14 @@ channel@85 {
};
};
+ pm660_rradc: adc@4500 {
+ compatible = "qcom,pm660-rradc";
+ reg = <0x4500>;
+ #io-channel-cells = <1>;
+
+ status = "disabled";
+ };
+
pm660_gpios: gpio@c000 {
compatible = "qcom,pm660-gpio", "qcom,spmi-gpio";
reg = <0xc000>;
---
base-commit: ee78a17615ad0cfdbbc27182b1047cd36c9d4d5f
change-id: 20240606-pm660-charger-rrdac-e003ff9498c8
Best regards,
--
Barnabás Czémán <trabarni@gmail.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: qcom: pm660: Add rradc, charger
2024-06-06 14:47 [PATCH] arm64: dts: qcom: pm660: Add rradc, charger Barnabás Czémán
@ 2024-06-07 2:34 ` Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2024-06-07 2:34 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Barnabás Czémán
Cc: linux-arm-msm, devicetree, linux-kernel, Aboothahir U
On Thu, 06 Jun 2024 16:47:28 +0200, Barnabás Czémán wrote:
> Add charger to PM660 PMIC. Readings from round-robin ADC
> are needed for charger to function, so add it as well.
>
>
Applied, thanks!
[1/1] arm64: dts: qcom: pm660: Add rradc, charger
commit: 0354ab18ef5ef11f3139c7252f573c5d4af87c60
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-07 2:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-06 14:47 [PATCH] arm64: dts: qcom: pm660: Add rradc, charger Barnabás Czémán
2024-06-07 2:34 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox