]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: exynos: Add pinctrl for Midas fuelgauge IRQ pin
authorSimon Shields <simon@lineageos.org>
Sat, 21 Jul 2018 12:50:51 +0000 (22:50 +1000)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 23 Jul 2018 17:10:48 +0000 (19:10 +0200)
This pin is externally pulled up, so we should disable the SoC's
pull down resistor in order for the interrupt to function properly.

Signed-off-by: Simon Shields <simon@lineageos.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos4412-midas.dtsi

index 635e5ea87a6c0e36ca2be01c917e6b5282e275e2..58b298d8441c54949ed98916c8ba2e9150261b1e 100644 (file)
@@ -188,6 +188,8 @@ max77693-fuel-gauge@36 {
                        compatible = "maxim,max17047";
                        interrupt-parent = <&gpx2>;
                        interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&max77693_fuel_irq>;
                        reg = <0x36>;
 
                        maxim,over-heat-temp = <700>;
@@ -1021,6 +1023,11 @@ max77693_irq: max77693-irq {
                samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
        };
 
+       max77693_fuel_irq: max77693-fuel-irq {
+               samsung,pins = "gpx2-3";
+               samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+       };
+
        hdmi_hpd: hdmi-hpd {
                samsung,pins = "gpx3-7";
                samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;