From 8b6edb27e0e5e557b975ba5b7095a1dd4f8be1cd Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 3 Apr 2017 19:02:53 +0900 Subject: [PATCH] arm: dts: trats2: add the i2c-gpio nodes Add the i2c-gpio nodes for fuelgauge and max77693. There are i2c8 and i2c9. Signed-off-by: Jaehoon Chung Signed-off-by: Minkyu Kang --- arch/arm/dts/exynos4412-trats2.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/exynos4412-trats2.dts b/arch/arm/dts/exynos4412-trats2.dts index 1fbcf8914f..fd9e48c899 100644 --- a/arch/arm/dts/exynos4412-trats2.dts +++ b/arch/arm/dts/exynos4412-trats2.dts @@ -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"; @@ -34,6 +36,22 @@ 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>; -- 2.39.5