diff mbox series

[03/18] ARM: dts: exynos: correct fuel gauge interrupt trigger level on Midas family

Message ID 20201210212534.216197-3-krzk@kernel.org
State Accepted
Commit 8a45f33bd36efbb624198cfa9fdf1f66fd1c3d26
Headers show
Series [01/18] ARM: dts: exynos: correct fuel gauge interrupt trigger level on GT-I9100 | expand

Commit Message

Krzysztof Kozlowski Dec. 10, 2020, 9:25 p.m. UTC
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: e8614292cd41 ("ARM: dts: Add Maxim 77693 fuel gauge node for exynos4412-trats2")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 arch/arm/boot/dts/exynos4412-midas.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Krzysztof Kozlowski Dec. 29, 2020, 3:43 p.m. UTC | #1
On Thu, Dec 10, 2020 at 10:25:19PM +0100, Krzysztof Kozlowski wrote:
> 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: e8614292cd41 ("ARM: dts: Add Maxim 77693 fuel gauge node for exynos4412-trats2")

> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

> ---

>  arch/arm/boot/dts/exynos4412-midas.dtsi | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)


Hi Marek,

I remember you were reporting that on Trats2 you see fuel gauge
interrupt storm with this patchset. Is it correct? Shall I wait with
applying this?

Best regards,
Krzysztof

> diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi

> index 111c32bae02c..b8b75dc81aa1 100644

> --- a/arch/arm/boot/dts/exynos4412-midas.dtsi

> +++ b/arch/arm/boot/dts/exynos4412-midas.dtsi

> @@ -221,7 +221,7 @@ i2c_max77693_fuel: i2c-gpio-3 {

>  		fuel-gauge@36 {

>  			compatible = "maxim,max17047";

>  			interrupt-parent = <&gpx2>;

> -			interrupts = <3 IRQ_TYPE_EDGE_FALLING>;

> +			interrupts = <3 IRQ_TYPE_LEVEL_LOW>;

>  			pinctrl-names = "default";

>  			pinctrl-0 = <&max77693_fuel_irq>;

>  			reg = <0x36>;

> -- 

> 2.25.1

>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi
index 111c32bae02c..b8b75dc81aa1 100644
--- a/arch/arm/boot/dts/exynos4412-midas.dtsi
+++ b/arch/arm/boot/dts/exynos4412-midas.dtsi
@@ -221,7 +221,7 @@  i2c_max77693_fuel: i2c-gpio-3 {
 		fuel-gauge@36 {
 			compatible = "maxim,max17047";
 			interrupt-parent = <&gpx2>;
-			interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
+			interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&max77693_fuel_irq>;
 			reg = <0x36>;