Patchwork [U-Boot,08/14] tegra: usb: Add USB definitions for Tegra2 Seaboard

login
register
mail settings
Submitter Simon Glass
Date Nov. 24, 2011, 3:54 a.m.
Message ID <1322106896-23054-9-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/127425/
State New, archived
Headers show

Comments

Simon Glass - Nov. 24, 2011, 3:54 a.m.
We set up two USB ports, one of which can be host or device.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 board/nvidia/dts/tegra2-seaboard.dts |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

Patch

diff --git a/board/nvidia/dts/tegra2-seaboard.dts b/board/nvidia/dts/tegra2-seaboard.dts
index 7d0869a..395d3fa 100644
--- a/board/nvidia/dts/tegra2-seaboard.dts
+++ b/board/nvidia/dts/tegra2-seaboard.dts
@@ -11,6 +11,12 @@ 
 		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk1p3 rw rootwait";
 	};
 
+        aliases {
+		/* This defines the order of our USB ports */
+                usb0 = "/usb@0xc5008000";
+                usb1 = "/usb@0xc5000000";
+        };
+
 	memory {
 		device_type = "memory";
 		reg = < 0x00000000 0x40000000 >;
@@ -29,4 +35,19 @@ 
 	sdhci@c8000600 {
 		support-8bit;
 	};
+
+	usb@0xc5000000 {
+		status = "ok";
+		support-host-mode;
+	};
+
+	usbphy: usbphy@0 {
+		compatible = "smsc,usb3315";
+		status = "ok";
+	};
+
+	usb@0xc5008000 {
+		status = "ok";
+		utmi = <&usbphy>;
+	};
 };