]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 7 Mar 2013 13:35:16 +0000 (19:05 +0530)
committerBenoit Cousson <benoit.cousson@linaro.org>
Mon, 8 Apr 2013 22:21:00 +0000 (00:21 +0200)
Add usb otg data node in omap4/omap3 device tree file. Also update
the node with board specific setting in omapx-<board>.dts file.
The dt data specifies among others the interface type (ULPI or UTMI),
mode which is mostly OTG, power that specifies the amount of power
this can supply when in host mode.

The information about usb otg node is available @
Documentation/devicetree/bindings/usb/omap-usb.txt

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
Documentation/devicetree/bindings/usb/omap-usb.txt
arch/arm/boot/dts/omap3-beagle-xm.dts
arch/arm/boot/dts/omap3-evm.dts
arch/arm/boot/dts/omap3-overo.dtsi
arch/arm/boot/dts/omap3.dtsi
arch/arm/boot/dts/omap4-panda.dts
arch/arm/boot/dts/omap4-sdp.dts
arch/arm/boot/dts/omap4.dtsi
arch/arm/boot/dts/twl4030.dtsi

index 1ef0ce71f8faa0f00bb0e459c7c94a36d6abdb1b..abce25684abcb0e3d2d7ed271196d0896eaa31b3 100644 (file)
@@ -18,6 +18,7 @@ OMAP MUSB GLUE
    represents PERIPHERAL.
  - power : Should be "50". This signifies the controller can supply upto
    100mA when operating in host mode.
+ - usb-phy : the phandle for the PHY device
 
 Optional properties:
  - ctrl-module : phandle of the control module this glue uses to write to
index 1c85e0fb0da162a4a71385f3c9a4f229d0d73f7d..1177ff63334a8ee0475f67379cd2d7822a67f03f 100644 (file)
         */
        ti,pulldowns = <0x03a1c4>;
 };
+
+&usb_otg_hs {
+       interface-type = <0>;
+       mode = <3>;
+       power = <50>;
+};
index e8ba1c247a39bf28622276e07a75bf6137baf463..6e6f80db689a3b0d8655aef034bc5e5ea0f1ba80 100644 (file)
@@ -59,3 +59,9 @@
 &twl_gpio {
        ti,use-leds;
 };
+
+&usb_otg_hs {
+       interface-type = <0>;
+       mode = <3>;
+       power = <50>;
+};
index 81341fa27c23f1739f6758382836e4deb2a33bd3..2d93a08960553e9c929e61789d387d57c2915c89 100644 (file)
@@ -70,3 +70,9 @@
 &twl_gpio {
        ti,use-leds;
 };
+
+&usb_otg_hs {
+       interface-type = <0>;
+       mode = <3>;
+       power = <50>;
+};
index ea59c0a8cce84ca2f3afc83bdd099c0a33a39ea3..65b0891b2c0822a1480a95aefe4da385073b0b50 100644 (file)
                        #address-cells = <2>;
                        #size-cells = <1>;
                };
+
+               usb_otg_hs: usb_otg_hs@480ab000 {
+                       compatible = "ti,omap3-musb";
+                       reg = <0x480ab000 0x1000>;
+                       interrupts = <0 92 0x4>, <0 93 0x4>;
+                       interrupt-names = "mc", "dma";
+                       ti,hwmods = "usb_otg_hs";
+                       usb-phy = <&usb2_phy>;
+                       multipoint = <1>;
+                       num-eps = <16>;
+                       ram-bits = <12>;
+               };
        };
 };
index f951e6b3127e65eac2036f5c497b14612854c6bd..1751a254bebc56ac4038a506ae671badd7c8465a 100644 (file)
 &twl_usb_comparator {
        usb-supply = <&vusb>;
 };
+
+&usb_otg_hs {
+       interface-type = <1>;
+       mode = <3>;
+       power = <50>;
+};
index 0e32e8e3a0cc7f2d56126b2cc2d2b9b9e8238f2e..a93a19df2876df6bf372687e9447de029e1d433f 100644 (file)
 &twl_usb_comparator {
        usb-supply = <&vusb>;
 };
+
+&usb_otg_hs {
+       interface-type = <1>;
+       mode = <3>;
+       power = <50>;
+};
index 66ca7dd3a89f7081efbc694f58bebcd9fa44d9ad..07831644a01da143477fd63822ca489b7bb29f1a 100644 (file)
                        reg-names = "control_dev_conf", "otghs_control";
                        ti,type = <1>;
                };
+
+               usb_otg_hs: usb_otg_hs@4a0ab000 {
+                       compatible = "ti,omap4-musb";
+                       reg = <0x4a0ab000 0x7ff>;
+                       interrupts = <0 92 0x4>, <0 93 0x4>;
+                       interrupt-names = "mc", "dma";
+                       ti,hwmods = "usb_otg_hs";
+                       usb-phy = <&usb2_phy>;
+                       multipoint = <1>;
+                       num-eps = <16>;
+                       ram-bits = <12>;
+                       ti,has-mailbox;
+               };
        };
 };
index d216853c162ba23d3ba0ffd1e66cf71bc37350c4..23c0cdd6172b98da54bc8080c25ab209e2decac9 100644 (file)
@@ -67,7 +67,7 @@
                #interrupt-cells = <1>;
        };
 
-       twl4030-usb {
+       usb2_phy: twl4030-usb {
                compatible = "ti,twl4030-usb";
                interrupts = <10>, <4>;
                usb1v5-supply = <&vusb1v5>;