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