arm: dts: trats: add i2c_fg node for fuelgauge
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 30 Mar 2017 12:30:00 +0000 (21:30 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 3 Apr 2017 02:35:38 +0000 (11:35 +0900)
Trats has the i2c gpio for fuel-gaugge.
This patch s for preparing to use the fuel-gauge.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/dts/exynos4210-trats.dts

index 69c0605184c4544568909ff78577472beb76e92f..ac422e4fc405431d486a6df45a0fa4c37c6d949e 100644 (file)
@@ -23,6 +23,7 @@
                console = "/serial@13820000";
                mmc0 = "/sdhci@12510000";
                mmc2 = "/sdhci@12530000";
+               i2c8 = &i2c_fg;
        };
 
        fimd@11c00000 {
        dwmmc@12550000 {
                status = "disabled";
        };
+
+       i2c_fg: fuel-gauge {
+               compatible = "i2c-gpio";
+               gpios = <&gpy4 1 0>,    /* sda */
+                       <&gpy4 0 0>;    /* scl */
+               i2c-gpio,delay-us = <2>;        /* ~100 kHz */
+               status = "okay";
+       };
 };
 
 &i2c_5 {