提交 99bb2032 编写于 作者: J Jonathan Bakker 提交者: Krzysztof Kozlowski

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: NJonathan Bakker <xc-racer2@live.ca>
Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
上级 5b293570
......@@ -425,10 +425,8 @@
pinctrl-names = "default";
pinctrl-0 = <&fg_i2c_pins>;
fuelgauge@36 {
fg: fuelgauge@36 {
compatible = "maxim,max17040";
interrupt-parent = <&vic0>;
interrupts = <7>;
reg = <0x36>;
};
};
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册