public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sc8280xp-pmics: fix pon compatible and registers
@ 2023-03-27 12:29 Johan Hovold
  2023-03-27 13:59 ` Konrad Dybcio
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Johan Hovold @ 2023-03-27 12:29 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	linux-arm-msm, devicetree, linux-kernel, Johan Hovold

The pmk8280 PMIC PON peripheral is gen3 and uses two sets of registers;
hlos and pbs.

This specifically fixes the following error message during boot when the
pbs registers are not defined:

	PON_PBS address missing, can't read HW debounce time

Note that this also enables the spurious interrupt workaround introduced
by commit 0b65118e6ba3 ("Input: pm8941-pwrkey - add software key press
debouncing support") (which may or may not be needed).

Fixes: ccd3517faf18 ("arm64: dts: qcom: sc8280xp: Add reference device")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
 arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi
index c35e7f6bd657..a0ba535bb6c9 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi
@@ -59,8 +59,9 @@ pmk8280: pmic@0 {
 		#size-cells = <0>;
 
 		pmk8280_pon: pon@1300 {
-			compatible = "qcom,pm8998-pon";
-			reg = <0x1300>;
+			compatible = "qcom,pmk8350-pon";
+			reg = <0x1300>, <0x800>;
+			reg-names = "hlos", "pbs";
 
 			pmk8280_pon_pwrkey: pwrkey {
 				compatible = "qcom,pmk8350-pwrkey";
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-04-05  4:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-27 12:29 [PATCH] arm64: dts: qcom: sc8280xp-pmics: fix pon compatible and registers Johan Hovold
2023-03-27 13:59 ` Konrad Dybcio
2023-03-27 17:31 ` Steev Klimaszewski
2023-04-03  9:18 ` Krzysztof Kozlowski
2023-04-03 10:54   ` Johan Hovold
2023-04-03 11:41     ` Dmitry Baryshkov
2023-04-03 12:33     ` Krzysztof Kozlowski
2023-04-03 12:46       ` Krzysztof Kozlowski
2023-04-03 12:54         ` Dmitry Baryshkov
2023-04-03 13:11         ` Johan Hovold
2023-04-03 13:47           ` Krzysztof Kozlowski
2023-04-03 14:33             ` Johan Hovold
2023-04-03 13:03       ` Johan Hovold
2023-04-05  4:08 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox