ARM: dts: qcom: msm8974-samsung-klte: correct fuel gauge interrupt trigger level
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 3 Mar 2021 18:28:16 +0000 (19:28 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 4 Apr 2021 17:21:53 +0000 (12:21 -0500)
The Maxim fuel gauge datasheets describe the interrupt line as active
low with a requirement of acknowledge from the CPU.  The falling edge
interrupt will mostly work but it's not correct.

Fixes: da8d46992e67 ("ARM: dts: qcom: msm8974-klte: Add fuel gauge")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-By: Iskren Chernev <iskren.chernev@gmail.com>
Tested-By: Iskren Chernev <iskren.chernev@gmail.com>
Link: https://lore.kernel.org/r/20210303182816.137255-2-krzk@kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts

index a0f7f46..2dadb83 100644 (file)
                        maxim,rcomp = /bits/ 8 <0x56>;
 
                        interrupt-parent = <&pma8084_gpios>;
-                       interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
+                       interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&fuelgauge_pin>;