diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-03-19 16:57:28 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-03-19 16:57:28 -0400 |
commit | f4eb28340771c12cdbf8b5ec149dbd3b0eef1687 (patch) | |
tree | 71c0860b9271daac24dfa37350ec3f569e2583f2 | |
parent | a94c7b0a8f31a8bcf3b136d469f7eb6b6b57bb78 (diff) | |
parent | 0a428036dfb28be3e5f0d671e3457509d1f4ea29 (diff) |
Merge branch 'for-3.4/dt' of git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra into next/dt2
* 'for-3.4/dt' of git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra:
arm: tegra: dts: Mark USB1 as an OTG port on Seaboard
arm: tegra: dts: Add legacy mode support to Tegra2x USB1 port
arm: tegra: dts: Support host/device selection and legacy mode
-rw-r--r-- | Documentation/devicetree/bindings/usb/tegra-usb.txt | 13 | ||||
-rw-r--r-- | arch/arm/boot/dts/tegra-seaboard.dts | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/tegra20.dtsi | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/usb/tegra-usb.txt b/Documentation/devicetree/bindings/usb/tegra-usb.txt index 035d63d5646d..007005ddbe12 100644 --- a/Documentation/devicetree/bindings/usb/tegra-usb.txt +++ b/Documentation/devicetree/bindings/usb/tegra-usb.txt | |||
@@ -11,3 +11,16 @@ Required properties : | |||
11 | - phy_type : Should be one of "ulpi" or "utmi". | 11 | - phy_type : Should be one of "ulpi" or "utmi". |
12 | - nvidia,vbus-gpio : If present, specifies a gpio that needs to be | 12 | - nvidia,vbus-gpio : If present, specifies a gpio that needs to be |
13 | activated for the bus to be powered. | 13 | activated for the bus to be powered. |
14 | |||
15 | Optional properties: | ||
16 | - dr_mode : dual role mode. Indicates the working mode for | ||
17 | nvidia,tegra20-ehci compatible controllers. Can be "host", "peripheral", | ||
18 | or "otg". Default to "host" if not defined for backward compatibility. | ||
19 | host means this is a host controller | ||
20 | peripheral means it is device controller | ||
21 | otg means it can operate as either ("on the go") | ||
22 | - nvidia,has-legacy-mode : boolean indicates whether this controller can | ||
23 | operate in legacy mode (as APX 2500 / 2600). In legacy mode some | ||
24 | registers are accessed through the APB_MISC base address instead of | ||
25 | the USB controller. Since this is a legacy issue it probably does not | ||
26 | warrant a compatible string of its own. | ||
diff --git a/arch/arm/boot/dts/tegra-seaboard.dts b/arch/arm/boot/dts/tegra-seaboard.dts index 876d5c92ce36..dbf1c5a171c2 100644 --- a/arch/arm/boot/dts/tegra-seaboard.dts +++ b/arch/arm/boot/dts/tegra-seaboard.dts | |||
@@ -112,6 +112,7 @@ | |||
112 | 112 | ||
113 | usb@c5000000 { | 113 | usb@c5000000 { |
114 | nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */ | 114 | nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */ |
115 | dr_mode = "otg"; | ||
115 | }; | 116 | }; |
116 | 117 | ||
117 | gpio-keys { | 118 | gpio-keys { |
diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index d2bc7e7ad06d..f29978ecaebe 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi | |||
@@ -188,6 +188,7 @@ | |||
188 | reg = <0xc5000000 0x4000>; | 188 | reg = <0xc5000000 0x4000>; |
189 | interrupts = < 0 20 0x04 >; | 189 | interrupts = < 0 20 0x04 >; |
190 | phy_type = "utmi"; | 190 | phy_type = "utmi"; |
191 | nvidia,has-legacy-mode; | ||
191 | }; | 192 | }; |
192 | 193 | ||
193 | usb@c5004000 { | 194 | usb@c5004000 { |