[U-Boot] [PATCH v3 10/10] exynos: dts: Add USB VBUS GPIOs to the device tree

Vivek Gautam gautam.vivek at samsung.com
Sat Sep 14 10:32:53 CEST 2013


From: Julius Werner <jwerner at chromium.org>

This patch adds a new samsung,vbus-gpio parameter to the device tree, in
preparation of replacing the currently hardcoded VBUS GPIO mechanism in
exynos5-dt.c with a device tree controlled solution, just as it already
exists in the Linux kernel.

Signed-off-by: Julius Werner <jwerner at chromium.org>
Signed-off-by: Vivek Gautam <gautam.vivek at samsung.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Minkyu Kang <mk7.kang at samsung.com>
Cc: Marek Vasut <marex at denx.de>
---

Changes since v2:
 - This patch is newly added in this version of the series.

 board/samsung/dts/exynos5250-smdk5250.dts |    4 ++++
 board/samsung/dts/exynos5250-snow.dts     |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts
index 1e94c7f..6d6b0ba 100644
--- a/board/samsung/dts/exynos5250-smdk5250.dts
+++ b/board/samsung/dts/exynos5250-smdk5250.dts
@@ -145,4 +145,8 @@
 	mmc at 12230000 {
 		status = "disabled";
 	};
+
+	ehci at 12110000 {
+		samsung,vbus-gpio = <&gpio 0xbe 0>; /* X26 */
+	};
 };
diff --git a/board/samsung/dts/exynos5250-snow.dts b/board/samsung/dts/exynos5250-snow.dts
index 7832e4e..e023661 100644
--- a/board/samsung/dts/exynos5250-snow.dts
+++ b/board/samsung/dts/exynos5250-snow.dts
@@ -109,6 +109,14 @@
 		status = "disabled";
 	};
 
+	ehci at 12110000 {
+		samsung,vbus-gpio = <&gpio 0xb1 0>; /* X11 */
+	};
+
+	xhci at 12000000 {
+		samsung,vbus-gpio = <&gpio 0xbf 0>; /* X27 */
+	};
+
 	tmu at 10060000 {
 		samsung,min-temp	= <25>;
 		samsung,max-temp	= <125>;
-- 
1.7.6.5



More information about the U-Boot mailing list