ARM: dts: omap: update usb_otg_hs data
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / usb / omap-usb.txt
1 OMAP GLUE AND OTHER OMAP SPECIFIC COMPONENTS
2
3 OMAP MUSB GLUE
4  - compatible : Should be "ti,omap4-musb" or "ti,omap3-musb"
5  - ti,hwmods : must be "usb_otg_hs"
6  - ti,has-mailbox : to specify that omap uses an external mailbox
7    (in control module) to communicate with the musb core during device connect
8    and disconnect.
9  - multipoint : Should be "1" indicating the musb controller supports
10    multipoint. This is a MUSB configuration-specific setting.
11  - num-eps : Specifies the number of endpoints. This is also a
12    MUSB configuration-specific setting. Should be set to "16"
13  - ram-bits : Specifies the ram address size. Should be set to "12"
14  - interface-type : This is a board specific setting to describe the type of
15    interface between the controller and the phy. It should be "0" or "1"
16    specifying ULPI and UTMI respectively.
17  - mode : Should be "3" to represent OTG. "1" signifies HOST and "2"
18    represents PERIPHERAL.
19  - power : Should be "50". This signifies the controller can supply up to
20    100mA when operating in host mode.
21  - usb-phy : the phandle for the PHY device
22  - phys : the phandle for the PHY device (used by generic PHY framework)
23  - phy-names : the names of the PHY corresponding to the PHYs present in the
24    *phy* phandle.
25
26 Optional properties:
27  - ctrl-module : phandle of the control module this glue uses to write to
28    mailbox
29
30 SOC specific device node entry
31 usb_otg_hs: usb_otg_hs@4a0ab000 {
32         compatible = "ti,omap4-musb";
33         ti,hwmods = "usb_otg_hs";
34         ti,has-mailbox;
35         multipoint = <1>;
36         num-eps = <16>;
37         ram-bits = <12>;
38         ctrl-module = <&omap_control_usb>;
39         phys = <&usb2_phy>;
40         phy-names = "usb2-phy";
41 };
42
43 Board specific device node entry
44 &usb_otg_hs {
45         interface-type = <1>;
46         mode = <3>;
47         power = <50>;
48 };
49
50 OMAP DWC3 GLUE
51  - compatible : Should be "ti,dwc3"
52  - ti,hwmods : Should be "usb_otg_ss"
53  - reg : Address and length of the register set for the device.
54  - interrupts : The irq number of this device that is used to interrupt the
55    MPU
56  - #address-cells, #size-cells : Must be present if the device has sub-nodes
57  - utmi-mode : controls the source of UTMI/PIPE status for VBUS and OTG ID.
58    It should be set to "1" for HW mode and "2" for SW mode.
59  - ranges: the child address space are mapped 1:1 onto the parent address space
60
61 Optional Properties:
62  - extcon : phandle for the extcon device omap dwc3 uses to detect
63    connect/disconnect events.
64  - vbus-supply : phandle to the regulator device tree node if needed.
65
66 Sub-nodes:
67 The dwc3 core should be added as subnode to omap dwc3 glue.
68 - dwc3 :
69    The binding details of dwc3 can be found in:
70    Documentation/devicetree/bindings/usb/dwc3.txt
71
72 omap_dwc3 {
73         compatible = "ti,dwc3";
74         ti,hwmods = "usb_otg_ss";
75         reg = <0x4a020000 0x1ff>;
76         interrupts = <0 93 4>;
77         #address-cells = <1>;
78         #size-cells = <1>;
79         utmi-mode = <2>;
80         ranges;
81 };
82
83 OMAP CONTROL USB
84
85 Required properties:
86  - compatible: Should be "ti,omap-control-usb"
87  - reg : Address and length of the register set for the device. It contains
88    the address of "control_dev_conf" and "otghs_control" or "phy_power_usb"
89    depending upon omap4 or omap5.
90  - reg-names: The names of the register addresses corresponding to the registers
91    filled in "reg".
92  - ti,type: This is used to differentiate whether the control module has
93    usb mailbox or usb3 phy power. omap4 has usb mailbox in control module to
94    notify events to the musb core and omap5 has usb3 phy power register to
95    power on usb3 phy. Should be "1" if it has mailbox and "2" if it has usb3
96    phy power.
97
98 omap_control_usb: omap-control-usb@4a002300 {
99         compatible = "ti,omap-control-usb";
100         reg = <0x4a002300 0x4>,
101               <0x4a00233c 0x4>;
102         reg-names = "control_dev_conf", "otghs_control";
103         ti,type = <1>;
104 };