ARM: dts: exynos: correct fuel gauge interrupt trigger level on GT-I9100
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 10 Dec 2020 21:25:17 +0000 (22:25 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sun, 7 Mar 2021 19:56:16 +0000 (20:56 +0100)
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: 8620cc2f99b7 ("ARM: dts: exynos: Add devicetree file for the Galaxy S2")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201210212534.216197-1-krzk@kernel.org
arch/arm/boot/dts/exynos4210-i9100.dts

index dad950daafb4825a0c853ecbcc41b5ae8aac860d..eb2570e447a1e7403f1c37866f6533df7b02b405 100644 (file)
                        compatible = "maxim,max17042";
 
                        interrupt-parent = <&gpx2>;
-                       interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
+                       interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
 
                        pinctrl-0 = <&max17042_fuel_irq>;
                        pinctrl-names = "default";