From patchwork Mon Feb 27 20:52:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 143277 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 79A97B6FDC for ; Tue, 28 Feb 2012 07:54:55 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 30FF628374; Mon, 27 Feb 2012 21:54:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uxwIr4el03W9; Mon, 27 Feb 2012 21:54:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5C9E22836F; Mon, 27 Feb 2012 21:53:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 638AE28349 for ; Mon, 27 Feb 2012 21:53:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Em1Q4Zl4QWb6 for ; Mon, 27 Feb 2012 21:53:26 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qw0-f74.google.com (mail-qw0-f74.google.com [209.85.216.74]) by theia.denx.de (Postfix) with ESMTPS id 41F3E28340 for ; Mon, 27 Feb 2012 21:53:23 +0100 (CET) Received: by qabg24 with SMTP id g24so80180qab.3 for ; Mon, 27 Feb 2012 12:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of sjg@google.com designates 10.236.103.68 as permitted sender) client-ip=10.236.103.68; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sjg@google.com designates 10.236.103.68 as permitted sender) smtp.mail=sjg@google.com Received: from mr.google.com ([10.236.103.68]) by 10.236.103.68 with SMTP id e44mr29435082yhg.3.1330376002755 (num_hops = 1); Mon, 27 Feb 2012 12:53:22 -0800 (PST) Received: by 10.236.103.68 with SMTP id e44mr19579864yhg.3.1330376002745; Mon, 27 Feb 2012 12:53:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.103.68 with SMTP id e44mr19579822yhg.3.1330376002655; Mon, 27 Feb 2012 12:53:22 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id g49si9006554yhe.6.2012.02.27.12.53.22 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 27 Feb 2012 12:53:22 -0800 (PST) Received: from sglass.mtv.corp.google.com (sglass.mtv.corp.google.com [172.22.72.144]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 899D310005F; Mon, 27 Feb 2012 12:53:22 -0800 (PST) Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id 6A69C140EB8; Mon, 27 Feb 2012 12:53:22 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Mon, 27 Feb 2012 12:52:46 -0800 Message-Id: <1330375973-10681-14-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1330375973-10681-1-git-send-email-sjg@chromium.org> References: <1330375973-10681-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnxJH0RT89WBWWVYWY+erbXzlQDu+GwIytvaDaE9Swk9vKwqj/r6d1F7h9rVz/W1D0/5IjRiuTL5VnGJd4dH2Wa53TJdMBHnHs+vlrf3bf2PYGeMtWW9Tv6nV/e89+R7gqM+xe7a7/mjoGECQwd3Dm2rmygAuhjuZLkZhLCbY1g+W3wuHQ= Cc: Jerry Van Baren , Tom Warren , linux-tegra@vger.kernel.org, Devicetree Discuss Subject: [U-Boot] [PATCH v6 13/20] tegra: usb: fdt: Add USB definitions for Tegra2 Seaboard X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de We set up two USB ports, one of which can be host or device. For some reason the kernel version does enable both ports. Signed-off-by: Simon Glass --- Changes in v2: - Remove 0x from fdt aliases - Use "okay" instead of "ok" for fdt node status Changes in v3: - Disable USB2 which is not used on Seaboard - Fix device tree indenting with tabs instead of spaces - Remove "okay" from nodes since this is the default anyway Changes in v5: - Remove support-host-mode property Changes in v6: - Remove dr_mode properties from SOC .dtsi file and move to boards board/nvidia/dts/tegra2-seaboard.dts | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/board/nvidia/dts/tegra2-seaboard.dts b/board/nvidia/dts/tegra2-seaboard.dts index 87f58fb..4fbb252 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@c5008000"; + usb1 = "/usb@c5000000"; + }; + memory { device_type = "memory"; reg = < 0x00000000 0x40000000 >; @@ -42,5 +48,10 @@ usb@c5000000 { nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */ + dr_mode = "otg"; + }; + + usb@c5004000 { + status = "disabled"; }; };