From patchwork Wed Mar 7 05:04:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 145153 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 727E3B6FB4 for ; Wed, 7 Mar 2012 16:07:03 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751793Ab2CGFGe (ORCPT ); Wed, 7 Mar 2012 00:06:34 -0500 Received: from mail-qy0-f202.google.com ([209.85.216.202]:53100 "EHLO mail-qy0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776Ab2CGFGd (ORCPT ); Wed, 7 Mar 2012 00:06:33 -0500 Received: by qcsp5 with SMTP id p5so742911qcs.1 for ; Tue, 06 Mar 2012 21:06:32 -0800 (PST) Received: by 10.100.230.15 with SMTP id c15mr93672anh.7.1331096792413; Tue, 06 Mar 2012 21:06:32 -0800 (PST) Received: by 10.100.230.15 with SMTP id c15mr93645anh.7.1331096792188; Tue, 06 Mar 2012 21:06:32 -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 e44si11962766yhk.0.2012.03.06.21.06.32 (version=TLSv1/SSLv3 cipher=AES128-SHA); Tue, 06 Mar 2012 21:06:32 -0800 (PST) Received: from sglass.mtv.corp.google.com (dhcp-172-22-162-38.mtv.corp.google.com [172.22.162.38]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 18E9610004D; Tue, 6 Mar 2012 21:06:32 -0800 (PST) Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id B47D1140817; Tue, 6 Mar 2012 21:06:31 -0800 (PST) From: Simon Glass To: LKML Cc: linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Stephen Warren , Devicetree Discuss , Olof Johansson , Simon Glass Subject: [RESEND PATCH 1/3] arm: tegra: dts: Support host/device selection and legacy mode Date: Tue, 6 Mar 2012 21:04:32 -0800 Message-Id: <1331096674-8324-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1331096674-8324-1-git-send-email-sjg@chromium.org> References: <1331096674-8324-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQn9PsaqEE6gisIwVNd1jenGCNzBUzUaPbNeCTaPI2d3dmBzYJhgIlJU9pqNspFqNRzimwQCJHhU34QV6FnIBp1tqEeWivdX7rEk9YwgJD3b1tQEcf+4+Z/rL5CdTaiJMPPE3l4VvTZZAImA5oJphHtZvD2Hcf4bntAe28NeHdQRcWUx2s0= Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Some USB ports can support host and device operation. We add the dr_mode property (as found in Freescale) for this. One USB port has a 'legacy mode', left over from the days of pre-Tegra chips. I don't believe this is actually used, except that we must know to turn this off in the driver. Signed-off-by: Simon Glass --- .../devicetree/bindings/usb/tegra-usb.txt | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/tegra-usb.txt b/Documentation/devicetree/bindings/usb/tegra-usb.txt index 035d63d..007005d 100644 --- a/Documentation/devicetree/bindings/usb/tegra-usb.txt +++ b/Documentation/devicetree/bindings/usb/tegra-usb.txt @@ -11,3 +11,16 @@ 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. Since this is a legacy issue it probably does not + warrant a compatible string of its own.