[U-Boot] [PATCH 4/6] arm: dts: trats: add i2c_fg node for fuelgauge

Jaehoon Chung jh80.chung at samsung.com
Thu Mar 30 12:30:00 UTC 2017


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 at samsung.com>
---
 arch/arm/dts/exynos4210-trats.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/dts/exynos4210-trats.dts b/arch/arm/dts/exynos4210-trats.dts
index 69c0605..ac422e4 100644
--- a/arch/arm/dts/exynos4210-trats.dts
+++ b/arch/arm/dts/exynos4210-trats.dts
@@ -23,6 +23,7 @@
 		console = "/serial at 13820000";
 		mmc0 = "/sdhci at 12510000";
 		mmc2 = "/sdhci at 12530000";
+		i2c8 = &i2c_fg;
 	};
 
 	fimd at 11c00000 {
@@ -113,6 +114,14 @@
 	dwmmc at 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 {
-- 
2.10.2



More information about the U-Boot mailing list