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: 143260 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id ADE4CB6FE4 for ; Tue, 28 Feb 2012 07:53:24 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754856Ab2B0UxX (ORCPT ); Mon, 27 Feb 2012 15:53:23 -0500 Received: from mail-qy0-f202.google.com ([209.85.216.202]:61041 "EHLO mail-qy0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754177Ab2B0UxW (ORCPT ); Mon, 27 Feb 2012 15:53:22 -0500 Received: by qcsp5 with SMTP id p5so400486qcs.1 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 e44mr29434903yhg.3.1330376002008 (num_hops = 1); Mon, 27 Feb 2012 12:53:22 -0800 (PST) Received: by 10.236.103.68 with SMTP id e44mr19579713yhg.3.1330376001992; 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 Cc: Tom Warren , Stephen Warren , Simon Glass , linux-tegra@vger.kernel.org, Jerry Van Baren , Devicetree Discuss Subject: [PATCH v6 09/20] tegra: fdt: Add additional USB binding 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: ALoCoQnZFY/zLAV5flmFtj9RM+5BAyr2IgZrdr+JgCOvlFeexABkKQ0lbV4Ak1QDVvgoU5OJuacUEOOnp8JVtMeX4lECfCJvy9jQP+JaCIXuqkWC0lGjlVy3NzctL3RyH7D64p6lG6G/diYU9aVNk94epdbjotoxZHoeezHksTg+JwTZ3IlxAkg= Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 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.