Skip to content

Commit

Permalink
ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kishon Vijay Abraham I authored and Benoit Cousson committed Apr 8, 2013
1 parent cf0d869 commit ad871c1
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 1 deletion.
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/usb/omap-usb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/omap3-beagle-xm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,9 @@
*/
ti,pulldowns = <0x03a1c4>;
};

&usb_otg_hs {
interface-type = <0>;
mode = <3>;
power = <50>;
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/omap3-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@
&twl_gpio {
ti,use-leds;
};

&usb_otg_hs {
interface-type = <0>;
mode = <3>;
power = <50>;
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/omap3-overo.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@
&twl_gpio {
ti,use-leds;
};

&usb_otg_hs {
interface-type = <0>;
mode = <3>;
power = <50>;
};
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/omap3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -438,5 +438,17 @@
#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>;
};
};
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/omap4-panda.dts
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,9 @@
&twl_usb_comparator {
usb-supply = <&vusb>;
};

&usb_otg_hs {
interface-type = <1>;
mode = <3>;
power = <50>;
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/omap4-sdp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -494,3 +494,9 @@
&twl_usb_comparator {
usb-supply = <&vusb>;
};

&usb_otg_hs {
interface-type = <1>;
mode = <3>;
power = <50>;
};
13 changes: 13 additions & 0 deletions arch/arm/boot/dts/omap4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -572,5 +572,18 @@
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;
};
};
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/twl4030.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#interrupt-cells = <1>;
};

twl4030-usb {
usb2_phy: twl4030-usb {
compatible = "ti,twl4030-usb";
interrupts = <10>, <4>;
usb1v5-supply = <&vusb1v5>;
Expand Down

0 comments on commit ad871c1

Please sign in to comment.