mediatek,mtu3.txt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. The device node for Mediatek USB3 DRD controller
  2. Required properties:
  3. - compatible : should be "mediatek,<soc-model>-mtu3", "mediatek,mtu3",
  4. soc-model is the name of SoC, such as mt8512 etc,
  5. when using "mediatek,mtu3" compatible string, you need SoC specific
  6. ones in addition, one of:
  7. - "mediatek,mt8512-mtu3"
  8. - reg : specifies physical base address and size of the registers
  9. - reg-names: should be
  10. - "ippc" : IP Port Control
  11. - power-domains : a phandle to USB power domain node to control USB's MTCMOS
  12. - clocks : a list of phandle + clock-specifier pairs, one for each
  13. entry in clock-names
  14. - clock-names : must contain "sys_ck" for clock of controller,
  15. the following clocks are optional:
  16. "ref_ck", "mcu_ck", "dma_ck" and "xhci_ck";
  17. - phys : list of all the USB PHYs on this HCD
  18. - #address-cells, #size-cells : used for sub-nodes with 'reg' property
  19. - ranges : allows valid 1:1 translation between child's address space and
  20. parent's address space
  21. Optional properties:
  22. - vusb33-supply : regulator of USB AVDD3.3v
  23. - vbus-supply : regulator of VBUS 5v, needed when supports host mode.
  24. Sub-nodes:
  25. Required properties:
  26. - compatible : should be "mediatek,ssusb"
  27. - reg : specifies physical base address and size of the registers
  28. - reg-names: should be
  29. - "mac" : SSUSB MAC, include xHCI and device
  30. - interrupts : interrupt used by xHCI or device
  31. - dr_mode : should be one of "host" or "peripheral",
  32. see : usb/generic.txt
  33. Optional properties:
  34. - pinctrl-names : a pinctrl state named "default" is optional
  35. - pinctrl-0 : pin control group
  36. See: pinctrl/pinctrl-bindings.txt
  37. - device mode:
  38. - maximum-speed : valid arguments are "full-speed", "high-speed",
  39. "super-speed" and "super-speed-plus",
  40. see: usb/generic.txt
  41. - mediatek,force-vbus : force vbus as valid by SW
  42. - host mode (dr_mode is "host"):
  43. - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
  44. bit1 for u3port1, ... etc;
  45. Example:
  46. usb3: usb@11213e00 {
  47. compatible = "mediatek,mt8512-mtu3", "mediatek,mtu3";
  48. reg = <0x11213e00 0x0100>;
  49. reg-names = "ippc";
  50. phys = <&u2port0 PHY_TYPE_USB2>, <&u2port1 PHY_TYPE_USB2>;
  51. power-domains = <&scpsys MT8512_POWER_DOMAIN_USB>;
  52. clocks = <&infracfg CLK_INFRA_USB_SYS>,
  53. <&topckgen CLK_TOP_SSUSB_TOP_CK_EN>,
  54. <&infracfg CLK_INFRA_ICUSB>;
  55. clock-names = "sys_ck", "ref_ck", "mcu_ck";
  56. vusb33-supply = <reg_3p3v>;
  57. vbus-supply = <&usb_p0_vbus>;
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. ranges;
  61. status = "disabled";
  62. ssusb: usb@11210000 {
  63. compatible = "mediatek,ssusb";
  64. reg = <0x11210000 0x3e00>;
  65. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_LOW>;
  66. reg-names = "mac";
  67. dr_mode = "peripheral";
  68. maximum-speed = "high-speed";
  69. status = "disabled";
  70. };
  71. };