arm/dt: add basic usb nodes to tegra device trees
authorOlof Johansson <olof@lixom.net>
Fri, 4 Nov 2011 09:12:39 +0000 (09:12 +0000)
committerOlof Johansson <olof@lixom.net>
Thu, 8 Dec 2011 04:47:47 +0000 (20:47 -0800)
For now they are a minimal binding. It needs to be amended with
vendor-specific settings for phy setup and link tuning, etc.

v2: Added bindings specification and phy_type properties

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Stephen Warren <swarren@nvidia.com>
Documentation/devicetree/bindings/usb/tegra-usb.txt [new file with mode: 0644]
arch/arm/boot/dts/tegra-seaboard.dts
arch/arm/boot/dts/tegra20.dtsi

diff --git a/Documentation/devicetree/bindings/usb/tegra-usb.txt b/Documentation/devicetree/bindings/usb/tegra-usb.txt
new file mode 100644 (file)
index 0000000..035d63d
--- /dev/null
@@ -0,0 +1,13 @@
+Tegra SOC USB controllers
+
+The device node for a USB controller that is part of a Tegra
+SOC is as described in the document "Open Firmware Recommended
+Practice : Universal Serial Bus" with the following modifications
+and additions :
+
+Required properties :
+ - compatible : Should be "nvidia,tegra20-ehci" for USB controllers
+   used in host mode.
+ - 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.
index a72299b8e66857b43c1ac2ec4a2c709df6562b2a..88c682a26cb20a25bd405bbc0ef603e471f1ba7a 100644 (file)
@@ -29,4 +29,8 @@
        sdhci@c8000600 {
                support-8bit;
        };
+
+       usb@c5000000 {
+               nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */
+       };
 };
index 65d7e6a333eb8214ae5b21607d325e8db84935e1..795b921d92fc1f6ff82f800d73346f6d5f250295 100644 (file)
                reg = <0xc8000600 0x200>;
                interrupts = < 63 >;
        };
+
+       usb@c5000000 {
+               compatible = "nvidia,tegra20-ehci", "usb-ehci";
+               reg = <0xc5000000 0x4000>;
+               interrupts = < 52 >;
+               phy_type = "utmi";
+       };
+
+       usb@c5004000 {
+               compatible = "nvidia,tegra20-ehci", "usb-ehci";
+               reg = <0xc5004000 0x4000>;
+               interrupts = < 53 >;
+               phy_type = "ulpi";
+       };
+
+       usb@c5008000 {
+               compatible = "nvidia,tegra20-ehci", "usb-ehci";
+               reg = <0xc5008000 0x4000>;
+               interrupts = < 129 >;
+               phy_type = "utmi";
+       };
 };