From: sjg@chromium.org (Simon Glass)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] arm: tegra: dts: Support host/device selection and legacy mode
Date: Fri, 3 Feb 2012 08:56:10 -0800 [thread overview]
Message-ID: <1328288172-8059-2-git-send-email-sjg@chromium.org> (raw)
In-Reply-To: <1328288172-8059-1-git-send-email-sjg@chromium.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 <sjg@chromium.org>
---
.../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.
--
1.7.7.3
next prev parent reply other threads:[~2012-02-03 16:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-03 16:56 [PATCH 0/3] arm: tegra: dts: USB Updates for Tegra legacy mode / OTG Simon Glass
2012-02-03 16:56 ` Simon Glass [this message]
2012-02-03 16:56 ` [PATCH 2/3] arm: tegra: dts: Add legacy mode support to Tegra2x USB1 port Simon Glass
2012-02-03 16:56 ` [PATCH 3/3] arm: tegra: dts: Mark USB1 as an OTG port on Seaboard Simon Glass
2012-02-03 19:59 ` [PATCH 0/3] arm: tegra: dts: USB Updates for Tegra legacy mode / OTG Stephen Warren
2012-03-07 3:16 ` Simon Glass
2012-03-07 4:40 ` Olof Johansson
2012-03-07 5:06 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328288172-8059-2-git-send-email-sjg@chromium.org \
--to=sjg@chromium.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).