101658f0fSKishon Vijay Abraham IOMAP GLUE AND OTHER OMAP SPECIFIC COMPONENTS
200a0b1d5SKishon Vijay Abraham I
300a0b1d5SKishon Vijay Abraham IOMAP MUSB GLUE
400a0b1d5SKishon Vijay Abraham I - compatible : Should be "ti,omap4-musb" or "ti,omap3-musb"
500a0b1d5SKishon Vijay Abraham I - ti,hwmods : must be "usb_otg_hs"
6ca784be3SKishon Vijay Abraham I - ti,has-mailbox : to specify that omap uses an external mailbox
7ca784be3SKishon Vijay Abraham I   (in control module) to communicate with the musb core during device connect
8ca784be3SKishon Vijay Abraham I   and disconnect.
900a0b1d5SKishon Vijay Abraham I - multipoint : Should be "1" indicating the musb controller supports
1000a0b1d5SKishon Vijay Abraham I   multipoint. This is a MUSB configuration-specific setting.
11eee44da0SKishon Vijay Abraham I - num-eps : Specifies the number of endpoints. This is also a
1200a0b1d5SKishon Vijay Abraham I   MUSB configuration-specific setting. Should be set to "16"
13eee44da0SKishon Vijay Abraham I - ram-bits : Specifies the ram address size. Should be set to "12"
14eee44da0SKishon Vijay Abraham I - interface-type : This is a board specific setting to describe the type of
1500a0b1d5SKishon Vijay Abraham I   interface between the controller and the phy. It should be "0" or "1"
1600a0b1d5SKishon Vijay Abraham I   specifying ULPI and UTMI respectively.
1700a0b1d5SKishon Vijay Abraham I - mode : Should be "3" to represent OTG. "1" signifies HOST and "2"
1800a0b1d5SKishon Vijay Abraham I   represents PERIPHERAL.
1900a0b1d5SKishon Vijay Abraham I - power : Should be "50". This signifies the controller can supply up to
2000a0b1d5SKishon Vijay Abraham I   100mA when operating in host mode.
21ad871c10SKishon Vijay Abraham I - usb-phy : the phandle for the PHY device
22975d963eSKishon Vijay Abraham I - phys : the phandle for the PHY device (used by generic PHY framework)
23975d963eSKishon Vijay Abraham I - phy-names : the names of the PHY corresponding to the PHYs present in the
24975d963eSKishon Vijay Abraham I   *phy* phandle.
2500a0b1d5SKishon Vijay Abraham I
2601658f0fSKishon Vijay Abraham IOptional properties:
2701658f0fSKishon Vijay Abraham I - ctrl-module : phandle of the control module this glue uses to write to
2801658f0fSKishon Vijay Abraham I   mailbox
2901658f0fSKishon Vijay Abraham I
3000a0b1d5SKishon Vijay Abraham ISOC specific device node entry
3100a0b1d5SKishon Vijay Abraham Iusb_otg_hs: usb_otg_hs@4a0ab000 {
3200a0b1d5SKishon Vijay Abraham I	compatible = "ti,omap4-musb";
3300a0b1d5SKishon Vijay Abraham I	ti,hwmods = "usb_otg_hs";
34ca784be3SKishon Vijay Abraham I	ti,has-mailbox;
3500a0b1d5SKishon Vijay Abraham I	multipoint = <1>;
36eee44da0SKishon Vijay Abraham I	num-eps = <16>;
37eee44da0SKishon Vijay Abraham I	ram-bits = <12>;
3801658f0fSKishon Vijay Abraham I	ctrl-module = <&omap_control_usb>;
39975d963eSKishon Vijay Abraham I	phys = <&usb2_phy>;
40975d963eSKishon Vijay Abraham I	phy-names = "usb2-phy";
4100a0b1d5SKishon Vijay Abraham I};
4200a0b1d5SKishon Vijay Abraham I
4300a0b1d5SKishon Vijay Abraham IBoard specific device node entry
4400a0b1d5SKishon Vijay Abraham I&usb_otg_hs {
45eee44da0SKishon Vijay Abraham I	interface-type = <1>;
4600a0b1d5SKishon Vijay Abraham I	mode = <3>;
4700a0b1d5SKishon Vijay Abraham I	power = <50>;
4800a0b1d5SKishon Vijay Abraham I};
4901658f0fSKishon Vijay Abraham I
50e36a0c87SKishon Vijay Abraham IOMAP DWC3 GLUE
51e36a0c87SKishon Vijay Abraham I - compatible : Should be "ti,dwc3"
52e36a0c87SKishon Vijay Abraham I - ti,hwmods : Should be "usb_otg_ss"
53e36a0c87SKishon Vijay Abraham I - reg : Address and length of the register set for the device.
54e36a0c87SKishon Vijay Abraham I - interrupts : The irq number of this device that is used to interrupt the
55e36a0c87SKishon Vijay Abraham I   MPU
56e36a0c87SKishon Vijay Abraham I - #address-cells, #size-cells : Must be present if the device has sub-nodes
57e36a0c87SKishon Vijay Abraham I - utmi-mode : controls the source of UTMI/PIPE status for VBUS and OTG ID.
58e36a0c87SKishon Vijay Abraham I   It should be set to "1" for HW mode and "2" for SW mode.
59e36a0c87SKishon Vijay Abraham I - ranges: the child address space are mapped 1:1 onto the parent address space
60e36a0c87SKishon Vijay Abraham I
618061ad72SKishon Vijay Abraham IOptional Properties:
628061ad72SKishon Vijay Abraham I - extcon : phandle for the extcon device omap dwc3 uses to detect
638061ad72SKishon Vijay Abraham I   connect/disconnect events.
648061ad72SKishon Vijay Abraham I - vbus-supply : phandle to the regulator device tree node if needed.
658061ad72SKishon Vijay Abraham I
66e36a0c87SKishon Vijay Abraham ISub-nodes:
67e36a0c87SKishon Vijay Abraham IThe dwc3 core should be added as subnode to omap dwc3 glue.
68e36a0c87SKishon Vijay Abraham I- dwc3 :
69e36a0c87SKishon Vijay Abraham I   The binding details of dwc3 can be found in:
70e36a0c87SKishon Vijay Abraham I   Documentation/devicetree/bindings/usb/dwc3.txt
71e36a0c87SKishon Vijay Abraham I
72e36a0c87SKishon Vijay Abraham Iomap_dwc3 {
73e36a0c87SKishon Vijay Abraham I	compatible = "ti,dwc3";
74e36a0c87SKishon Vijay Abraham I	ti,hwmods = "usb_otg_ss";
75e36a0c87SKishon Vijay Abraham I	reg = <0x4a020000 0x1ff>;
76e36a0c87SKishon Vijay Abraham I	interrupts = <0 93 4>;
77e36a0c87SKishon Vijay Abraham I	#address-cells = <1>;
78e36a0c87SKishon Vijay Abraham I	#size-cells = <1>;
79e36a0c87SKishon Vijay Abraham I	utmi-mode = <2>;
80e36a0c87SKishon Vijay Abraham I	ranges;
81e36a0c87SKishon Vijay Abraham I};
82e36a0c87SKishon Vijay Abraham I
8301658f0fSKishon Vijay Abraham IOMAP CONTROL USB
8401658f0fSKishon Vijay Abraham I
8501658f0fSKishon Vijay Abraham IRequired properties:
8601658f0fSKishon Vijay Abraham I - compatible: Should be "ti,omap-control-usb"
8701658f0fSKishon Vijay Abraham I - reg : Address and length of the register set for the device. It contains
8801658f0fSKishon Vijay Abraham I   the address of "control_dev_conf" and "otghs_control" or "phy_power_usb"
8901658f0fSKishon Vijay Abraham I   depending upon omap4 or omap5.
9001658f0fSKishon Vijay Abraham I - reg-names: The names of the register addresses corresponding to the registers
9101658f0fSKishon Vijay Abraham I   filled in "reg".
9201658f0fSKishon Vijay Abraham I - ti,type: This is used to differentiate whether the control module has
9301658f0fSKishon Vijay Abraham I   usb mailbox or usb3 phy power. omap4 has usb mailbox in control module to
9401658f0fSKishon Vijay Abraham I   notify events to the musb core and omap5 has usb3 phy power register to
9501658f0fSKishon Vijay Abraham I   power on usb3 phy. Should be "1" if it has mailbox and "2" if it has usb3
9601658f0fSKishon Vijay Abraham I   phy power.
9701658f0fSKishon Vijay Abraham I
9801658f0fSKishon Vijay Abraham Iomap_control_usb: omap-control-usb@4a002300 {
9901658f0fSKishon Vijay Abraham I	compatible = "ti,omap-control-usb";
10001658f0fSKishon Vijay Abraham I	reg = <0x4a002300 0x4>,
10101658f0fSKishon Vijay Abraham I	      <0x4a00233c 0x4>;
10201658f0fSKishon Vijay Abraham I	reg-names = "control_dev_conf", "otghs_control";
10301658f0fSKishon Vijay Abraham I	ti,type = <1>;
10401658f0fSKishon Vijay Abraham I};
105