summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/s5pv210-fascinate4g.dts
diff options
context:
space:
mode:
authorJonathan Bakker <xc-racer2@live.ca>2020-06-13 20:44:24 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2020-06-15 09:00:39 +0200
commit99bb20321f0e4886c8f7c12f3406828b24f00d9c (patch)
treed95bce4f5f33f63919a81132fe4048beefa758cc /arch/arm/boot/dts/s5pv210-fascinate4g.dts
parentARM: dts: s5pv210: Add interrupt-controller property to gph3 (diff)
downloadlinux-99bb20321f0e4886c8f7c12f3406828b24f00d9c.tar.xz
linux-99bb20321f0e4886c8f7c12f3406828b24f00d9c.zip
ARM: dts: s5pv210: Correct fuelgauge definition on Aries
Correct the fuelgauge definition because only the fuelgauge on fascinate4g has interrupt support (and even then it was wrong). Also, assign the GPIO pinctrl so the interrupt is properly configured Signed-off-by: Jonathan Bakker <xc-racer2@live.ca> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/s5pv210-fascinate4g.dts')
-rw-r--r--arch/arm/boot/dts/s5pv210-fascinate4g.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/s5pv210-fascinate4g.dts b/arch/arm/boot/dts/s5pv210-fascinate4g.dts
index 5e1b81823a8d..65eed01cfced 100644
--- a/arch/arm/boot/dts/s5pv210-fascinate4g.dts
+++ b/arch/arm/boot/dts/s5pv210-fascinate4g.dts
@@ -37,10 +37,27 @@
};
};
+&fg {
+ compatible = "maxim,max77836-battery";
+
+ interrupt-parent = <&gph3>;
+ interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&fg_irq>;
+};
+
&pinctrl0 {
pinctrl-names = "default";
pinctrl-0 = <&sleep_cfg>;
+ fg_irq: fg-irq {
+ samsung,pins = "gph3-3";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
+ samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
+ samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
+ };
+
/* Based on vendor kernel v2.6.35.7 */
sleep_cfg: sleep-cfg {
PIN_SLP(gpa0-0, PREV, NONE);