Kishon Vijay Abraham I | 01658f0 | 2013-01-25 15:53:57 +0530 | [diff] [blame] | 1 | OMAP GLUE AND OTHER OMAP SPECIFIC COMPONENTS |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 2 | |
| 3 | OMAP MUSB GLUE |
| 4 | - compatible : Should be "ti,omap4-musb" or "ti,omap3-musb" |
| 5 | - ti,hwmods : must be "usb_otg_hs" |
Kishon Vijay Abraham I | ca784be | 2013-01-25 15:54:00 +0530 | [diff] [blame] | 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. |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 9 | - multipoint : Should be "1" indicating the musb controller supports |
| 10 | multipoint. This is a MUSB configuration-specific setting. |
Kishon Vijay Abraham I | eee44da | 2013-03-07 18:51:46 +0530 | [diff] [blame] | 11 | - num-eps : Specifies the number of endpoints. This is also a |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 12 | MUSB configuration-specific setting. Should be set to "16" |
Kishon Vijay Abraham I | eee44da | 2013-03-07 18:51:46 +0530 | [diff] [blame] | 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 |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 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. |
Anatol Pomozov | f884ab1 | 2013-05-08 16:56:16 -0700 | [diff] [blame] | 19 | - power : Should be "50". This signifies the controller can supply up to |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 20 | 100mA when operating in host mode. |
Kishon Vijay Abraham I | ad871c1 | 2013-03-07 19:05:16 +0530 | [diff] [blame] | 21 | - usb-phy : the phandle for the PHY device |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 22 | |
Kishon Vijay Abraham I | 01658f0 | 2013-01-25 15:53:57 +0530 | [diff] [blame] | 23 | Optional properties: |
| 24 | - ctrl-module : phandle of the control module this glue uses to write to |
| 25 | mailbox |
| 26 | |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 27 | SOC specific device node entry |
| 28 | usb_otg_hs: usb_otg_hs@4a0ab000 { |
| 29 | compatible = "ti,omap4-musb"; |
| 30 | ti,hwmods = "usb_otg_hs"; |
Kishon Vijay Abraham I | ca784be | 2013-01-25 15:54:00 +0530 | [diff] [blame] | 31 | ti,has-mailbox; |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 32 | multipoint = <1>; |
Kishon Vijay Abraham I | eee44da | 2013-03-07 18:51:46 +0530 | [diff] [blame] | 33 | num-eps = <16>; |
| 34 | ram-bits = <12>; |
Kishon Vijay Abraham I | 01658f0 | 2013-01-25 15:53:57 +0530 | [diff] [blame] | 35 | ctrl-module = <&omap_control_usb>; |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | Board specific device node entry |
| 39 | &usb_otg_hs { |
Kishon Vijay Abraham I | eee44da | 2013-03-07 18:51:46 +0530 | [diff] [blame] | 40 | interface-type = <1>; |
Kishon Vijay Abraham I | 00a0b1d | 2012-09-11 14:39:40 +0530 | [diff] [blame] | 41 | mode = <3>; |
| 42 | power = <50>; |
| 43 | }; |
Kishon Vijay Abraham I | 01658f0 | 2013-01-25 15:53:57 +0530 | [diff] [blame] | 44 | |
Kishon Vijay Abraham I | e36a0c8 | 2013-02-26 20:03:27 +0530 | [diff] [blame] | 45 | OMAP DWC3 GLUE |
| 46 | - compatible : Should be "ti,dwc3" |
| 47 | - ti,hwmods : Should be "usb_otg_ss" |
| 48 | - reg : Address and length of the register set for the device. |
| 49 | - interrupts : The irq number of this device that is used to interrupt the |
| 50 | MPU |
| 51 | - #address-cells, #size-cells : Must be present if the device has sub-nodes |
| 52 | - utmi-mode : controls the source of UTMI/PIPE status for VBUS and OTG ID. |
| 53 | It should be set to "1" for HW mode and "2" for SW mode. |
| 54 | - ranges: the child address space are mapped 1:1 onto the parent address space |
| 55 | |
| 56 | Sub-nodes: |
| 57 | The dwc3 core should be added as subnode to omap dwc3 glue. |
| 58 | - dwc3 : |
| 59 | The binding details of dwc3 can be found in: |
| 60 | Documentation/devicetree/bindings/usb/dwc3.txt |
| 61 | |
| 62 | omap_dwc3 { |
| 63 | compatible = "ti,dwc3"; |
| 64 | ti,hwmods = "usb_otg_ss"; |
| 65 | reg = <0x4a020000 0x1ff>; |
| 66 | interrupts = <0 93 4>; |
| 67 | #address-cells = <1>; |
| 68 | #size-cells = <1>; |
| 69 | utmi-mode = <2>; |
| 70 | ranges; |
| 71 | }; |
| 72 | |
Kishon Vijay Abraham I | 01658f0 | 2013-01-25 15:53:57 +0530 | [diff] [blame] | 73 | OMAP CONTROL USB |
| 74 | |
| 75 | Required properties: |
| 76 | - compatible: Should be "ti,omap-control-usb" |
| 77 | - reg : Address and length of the register set for the device. It contains |
| 78 | the address of "control_dev_conf" and "otghs_control" or "phy_power_usb" |
| 79 | depending upon omap4 or omap5. |
| 80 | - reg-names: The names of the register addresses corresponding to the registers |
| 81 | filled in "reg". |
| 82 | - ti,type: This is used to differentiate whether the control module has |
| 83 | usb mailbox or usb3 phy power. omap4 has usb mailbox in control module to |
| 84 | notify events to the musb core and omap5 has usb3 phy power register to |
| 85 | power on usb3 phy. Should be "1" if it has mailbox and "2" if it has usb3 |
| 86 | phy power. |
| 87 | |
| 88 | omap_control_usb: omap-control-usb@4a002300 { |
| 89 | compatible = "ti,omap-control-usb"; |
| 90 | reg = <0x4a002300 0x4>, |
| 91 | <0x4a00233c 0x4>; |
| 92 | reg-names = "control_dev_conf", "otghs_control"; |
| 93 | ti,type = <1>; |
| 94 | }; |