1c66ec88fSEmmanuel VadotOMAP GLUE AND OTHER OMAP SPECIFIC COMPONENTS
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotOMAP MUSB GLUE
4c66ec88fSEmmanuel Vadot - compatible : Should be "ti,omap4-musb" or "ti,omap3-musb"
5c66ec88fSEmmanuel Vadot - ti,hwmods : must be "usb_otg_hs"
6c66ec88fSEmmanuel Vadot - multipoint : Should be "1" indicating the musb controller supports
7c66ec88fSEmmanuel Vadot   multipoint. This is a MUSB configuration-specific setting.
8c66ec88fSEmmanuel Vadot - num-eps : Specifies the number of endpoints. This is also a
9c66ec88fSEmmanuel Vadot   MUSB configuration-specific setting. Should be set to "16"
10c66ec88fSEmmanuel Vadot - ram-bits : Specifies the ram address size. Should be set to "12"
11c66ec88fSEmmanuel Vadot - interface-type : This is a board specific setting to describe the type of
12c66ec88fSEmmanuel Vadot   interface between the controller and the phy. It should be "0" or "1"
13c66ec88fSEmmanuel Vadot   specifying ULPI and UTMI respectively.
14c66ec88fSEmmanuel Vadot - mode : Should be "3" to represent OTG. "1" signifies HOST and "2"
15c66ec88fSEmmanuel Vadot   represents PERIPHERAL.
16c66ec88fSEmmanuel Vadot - power : Should be "50". This signifies the controller can supply up to
17c66ec88fSEmmanuel Vadot   100mA when operating in host mode.
18c66ec88fSEmmanuel Vadot - usb-phy : the phandle for the PHY device
19c66ec88fSEmmanuel Vadot - phys : the phandle for the PHY device (used by generic PHY framework)
20c66ec88fSEmmanuel Vadot - phy-names : the names of the PHY corresponding to the PHYs present in the
21c66ec88fSEmmanuel Vadot   *phy* phandle.
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel VadotOptional properties:
24c66ec88fSEmmanuel Vadot - ctrl-module : phandle of the control module this glue uses to write to
25c66ec88fSEmmanuel Vadot   mailbox
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel VadotSOC specific device node entry
28c66ec88fSEmmanuel Vadotusb_otg_hs: usb_otg_hs@4a0ab000 {
29c66ec88fSEmmanuel Vadot	compatible = "ti,omap4-musb";
30c66ec88fSEmmanuel Vadot	ti,hwmods = "usb_otg_hs";
31c66ec88fSEmmanuel Vadot	multipoint = <1>;
32c66ec88fSEmmanuel Vadot	num-eps = <16>;
33c66ec88fSEmmanuel Vadot	ram-bits = <12>;
34c66ec88fSEmmanuel Vadot	ctrl-module = <&omap_control_usb>;
35c66ec88fSEmmanuel Vadot	phys = <&usb2_phy>;
36c66ec88fSEmmanuel Vadot	phy-names = "usb2-phy";
37c66ec88fSEmmanuel Vadot};
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel VadotBoard specific device node entry
40c66ec88fSEmmanuel Vadot&usb_otg_hs {
41c66ec88fSEmmanuel Vadot	interface-type = <1>;
42c66ec88fSEmmanuel Vadot	mode = <3>;
43c66ec88fSEmmanuel Vadot	power = <50>;
44c66ec88fSEmmanuel Vadot};
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel VadotOMAP DWC3 GLUE
47c66ec88fSEmmanuel Vadot - compatible : Should be
48c66ec88fSEmmanuel Vadot	* "ti,dwc3" for OMAP5 and DRA7
49c66ec88fSEmmanuel Vadot	* "ti,am437x-dwc3" for AM437x
50c66ec88fSEmmanuel Vadot - ti,hwmods : Should be "usb_otg_ss"
51c66ec88fSEmmanuel Vadot - reg : Address and length of the register set for the device.
52c66ec88fSEmmanuel Vadot - interrupts : The irq number of this device that is used to interrupt the
53c66ec88fSEmmanuel Vadot   MPU
54c66ec88fSEmmanuel Vadot - #address-cells, #size-cells : Must be present if the device has sub-nodes
55c66ec88fSEmmanuel Vadot - utmi-mode : controls the source of UTMI/PIPE status for VBUS and OTG ID.
56c66ec88fSEmmanuel Vadot   It should be set to "1" for HW mode and "2" for SW mode.
57c66ec88fSEmmanuel Vadot - ranges: the child address space are mapped 1:1 onto the parent address space
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel VadotOptional Properties:
60c66ec88fSEmmanuel Vadot - extcon : phandle for the extcon device omap dwc3 uses to detect
61c66ec88fSEmmanuel Vadot   connect/disconnect events.
62c66ec88fSEmmanuel Vadot - vbus-supply : phandle to the regulator device tree node if needed.
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel VadotSub-nodes:
65c66ec88fSEmmanuel VadotThe dwc3 core should be added as subnode to omap dwc3 glue.
66c66ec88fSEmmanuel Vadot- dwc3 :
67c66ec88fSEmmanuel Vadot   The binding details of dwc3 can be found in:
68*5def4c47SEmmanuel Vadot   Documentation/devicetree/bindings/usb/snps,dwc3.yaml
69c66ec88fSEmmanuel Vadot
70c66ec88fSEmmanuel Vadotomap_dwc3 {
71c66ec88fSEmmanuel Vadot	compatible = "ti,dwc3";
72c66ec88fSEmmanuel Vadot	ti,hwmods = "usb_otg_ss";
73c66ec88fSEmmanuel Vadot	reg = <0x4a020000 0x1ff>;
74c66ec88fSEmmanuel Vadot	interrupts = <0 93 4>;
75c66ec88fSEmmanuel Vadot	#address-cells = <1>;
76c66ec88fSEmmanuel Vadot	#size-cells = <1>;
77c66ec88fSEmmanuel Vadot	utmi-mode = <2>;
78c66ec88fSEmmanuel Vadot	ranges;
79c66ec88fSEmmanuel Vadot};
80c66ec88fSEmmanuel Vadot
81