]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
authorDzmitry Sankouski <dsankouski@gmail.com>
Fri, 26 Sep 2025 17:13:27 +0000 (20:13 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 Oct 2025 16:19:03 +0000 (11:19 -0500)
Since max77705 has a register, which indicates interrupt source, it acts
as an interrupt controller.

Direct MAX77705's subdevices to use the IC's internal interrupt
controller, instead of listening to every interrupt fired by the
chip towards the host device.

Fixes: 7a88a931d095 ("arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250926-starqltechn-correct_max77705_nodes-v5-2-c6ab35165534@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts

index 45c7aa0f602d85a18620a8e6daf0354abe7fca45..215e1491f3e9ad99f3214b4863d6d857c7c4bbb2 100644 (file)
 &i2c14 {
        status = "okay";
 
-       pmic@66 {
+       max77705: pmic@66 {
                compatible = "maxim,max77705";
                reg = <0x66>;
+               #interrupt-cells = <1>;
                interrupt-parent = <&pm8998_gpios>;
                interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-controller;
                pinctrl-0 = <&pmic_int_default>;
                pinctrl-names = "default";
 
                reg = <0x69>;
                compatible = "maxim,max77705-charger";
                monitored-battery = <&battery>;
-               interrupt-parent = <&pm8998_gpios>;
-               interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-parent = <&max77705>;
+               interrupts = <0>;
        };
 
        fuel-gauge@36 {
                compatible = "maxim,max77705-battery";
                power-supplies = <&max77705_charger>;
                maxim,rsns-microohm = <5000>;
-               interrupt-parent = <&pm8998_gpios>;
-               interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-parent = <&max77705>;
+               interrupts = <2>;
        };
 };