From patchwork Mon Feb 27 20:52:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 143270 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 563E0B6FCB for ; Tue, 28 Feb 2012 07:53:44 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A813128333; Mon, 27 Feb 2012 21:53:38 +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 OWQTo8uG7Z65; Mon, 27 Feb 2012 21:53:38 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F0E312834C; Mon, 27 Feb 2012 21:53:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EFF7228321 for ; Mon, 27 Feb 2012 21:53:24 +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 FhT5bijj4d4l for ; Mon, 27 Feb 2012 21:53:24 +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-yx0-f202.google.com (mail-yx0-f202.google.com [209.85.213.202]) by theia.denx.de (Postfix) with ESMTPS id 8E2DE2833B for ; Mon, 27 Feb 2012 21:53:22 +0100 (CET) Received: by yenq2 with SMTP id q2so118121yen.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 e44mr29434896yhg.3.1330376002004 (num_hops = 1); Mon, 27 Feb 2012 12:53:22 -0800 (PST) Received: by 10.236.103.68 with SMTP id e44mr19579715yhg.3.1330376001994; Mon, 27 Feb 2012 12:53:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.103.68 with SMTP id e44mr19579678yhg.3.1330376001918; Mon, 27 Feb 2012 12:53:21 -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 d64si9011881yhn.3.2012.02.27.12.53.21 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 27 Feb 2012 12:53:21 -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 C89B710005F; Mon, 27 Feb 2012 12:53:21 -0800 (PST) Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id A9871140EB8; Mon, 27 Feb 2012 12:53:21 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Mon, 27 Feb 2012 12:52:42 -0800 Message-Id: <1330375973-10681-10-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: ALoCoQlmjN2hh+B36CHfQq8O0EEI221vKW+4oKQlVip+pzK9z67evXeLELyQ2IFSJGFiDnskJ6v13ggdsJfI2arFP1EmgNp9L94Ah+WLbLz0sbxjq9HF891kAV17YHAK/uxPFqqraAQryIN00eJMx7uEhRsnh791LP8RDoceRNa9csZ0vjOcg6A= Cc: Devicetree Discuss , Jerry Van Baren , Tom Warren , linux-tegra@vger.kernel.org Subject: [U-Boot] [PATCH v6 09/20] tegra: fdt: Add additional USB binding 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 This adds a property to indicate a port which can switch between host and device mode. Signed-off-by: Simon Glass --- Changes in v5: - Add dr_mode property to control host/device/otg mode - Add nvidia,has-legacy-mode property per review comments doc/device-tree-bindings/usb/tegra-usb.txt | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/doc/device-tree-bindings/usb/tegra-usb.txt b/doc/device-tree-bindings/usb/tegra-usb.txt index 035d63d..b7174a3 100644 --- a/doc/device-tree-bindings/usb/tegra-usb.txt +++ b/doc/device-tree-bindings/usb/tegra-usb.txt @@ -11,3 +11,15 @@ Required properties : - phy_type : Should be one of "ulpi" or "utmi". - nvidia,vbus-gpio : If present, specifies a gpio that needs to be activated for the bus to be powered. + +Optional properties: + - dr_mode : dual role mode. Indicates the working mode for + nvidia,tegra20-ehci compatible controllers. Can be "host", "peripheral", + or "otg". Default to "host" if not defined for backward compatibility. + host means this is a host controller + peripheral means it is device controller + otg means it can operate as either ("on the go") + - nvidia,has-legacy-mode : boolean indicates whether this controller can + operate in legacy mode (as APX 2500 / 2600). In legacy mode some + registers are accessed through the APB_MISC base address instead of + the USB controller.