]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: trats2: add the i2c-gpio nodes
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 3 Apr 2017 10:02:53 +0000 (19:02 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 7 Apr 2017 02:27:55 +0000 (11:27 +0900)
Add the i2c-gpio nodes for fuelgauge and max77693.
There are i2c8 and i2c9.

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

index 1fbcf8914fa50050fbdffbd64ed41b3262ad1fa7..fd9e48c899c3f20c4324f6c411b7eb6bc397c56a 100644 (file)
@@ -27,6 +27,8 @@
                i2c5 = "/i2c@138b0000";
                i2c6 = "/i2c@138c0000";
                i2c7 = "/i2c@138d0000";
+               i2c8 = &i2c_fg;
+               i2c9 = &i2c_max77693;
                serial0 = "/serial@13800000";
                console = "/serial@13820000";
                mmc0 = "/sdhci@12510000";
                mshc0 = "/dwmmc@12550000";
        };
 
+       i2c_fg: fuel-gauge {
+               compatible = "i2c-gpio";
+               gpios = <&gpf1 5 0>,    /* sda */
+                       <&gpf1 4 0>;    /* scl */
+               i2c-gpio,delay-us = <2>;        /* ~100 kHz */
+               status = "okay";
+       };
+
+       i2c_max77693: max77693 {
+               compatible = "i2c-gpio";
+               gpio = <&gpm2 0 0>,     /* sda */
+                      <&gpm2 1 0>;     /* scl */
+               i2c-gpio,delay-us = <2>;        /* ~100 kHz */
+               status = "okay";
+       };
+
        i2c@138d0000 {
                samsung,i2c-sda-delay = <100>;
                samsung,i2c-slave-addr = <0x10>;