[U-Boot] [PATCH 1/6] arm: dts: trats2: add the i2c-gpio nodes

Jaehoon Chung jh80.chung at samsung.com
Mon Apr 3 10:02:53 UTC 2017


Add the i2c-gpio nodes for fuelgauge and max77693.
There are i2c8 and i2c9.

Signed-off-by: Jaehoon Chung <jh80.chung at samsung.com>
---
 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 1fbcf89..fd9e48c 100644
--- a/arch/arm/dts/exynos4412-trats2.dts
+++ b/arch/arm/dts/exynos4412-trats2.dts
@@ -27,6 +27,8 @@
 		i2c5 = "/i2c at 138b0000";
 		i2c6 = "/i2c at 138c0000";
 		i2c7 = "/i2c at 138d0000";
+		i2c8 = &i2c_fg;
+		i2c9 = &i2c_max77693;
 		serial0 = "/serial at 13800000";
 		console = "/serial at 13820000";
 		mmc0 = "/sdhci at 12510000";
@@ -34,6 +36,22 @@
 		mshc0 = "/dwmmc at 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 at 138d0000 {
 		samsung,i2c-sda-delay = <100>;
 		samsung,i2c-slave-addr = <0x10>;
-- 
2.10.2



More information about the U-Boot mailing list