qcom,dwc3.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Qualcomm SuperSpeed DWC3 USB SoC controller
  2. Required properties:
  3. - compatible: Compatible list, contains
  4. "qcom,dwc3"
  5. "qcom,msm8996-dwc3" for msm8996 SOC.
  6. "qcom,sdm845-dwc3" for sdm845 SOC.
  7. - reg: Offset and length of register set for QSCRATCH wrapper
  8. - power-domains: specifies a phandle to PM domain provider node
  9. - clocks: A list of phandle + clock-specifier pairs for the
  10. clocks listed in clock-names
  11. - clock-names: Should contain the following:
  12. "core" Master/Core clock, have to be >= 125 MHz for SS
  13. operation and >= 60MHz for HS operation
  14. "mock_utmi" Mock utmi clock needed for ITP/SOF generation in
  15. host mode. Its frequency should be 19.2MHz.
  16. "sleep" Sleep clock, used for wakeup when USB3 core goes
  17. into low power mode (U3).
  18. Optional clocks:
  19. "iface" System bus AXI clock.
  20. Not present on "qcom,msm8996-dwc3" compatible.
  21. "cfg_noc" System Config NOC clock.
  22. Not present on "qcom,msm8996-dwc3" compatible.
  23. - assigned-clocks: Should be:
  24. MOCK_UTMI_CLK
  25. MASTER_CLK
  26. - assigned-clock-rates: Should be:
  27. 19.2Mhz (192000000) for MOCK_UTMI_CLK
  28. >=125Mhz (125000000) for MASTER_CLK in SS mode
  29. >=60Mhz (60000000) for MASTER_CLK in HS mode
  30. Optional properties:
  31. - resets: Phandle to reset control that resets core and wrapper.
  32. - interrupts: specifies interrupts from controller wrapper used
  33. to wakeup from low power/susepnd state. Must contain
  34. one or more entry for interrupt-names property
  35. - interrupt-names: Must include the following entries:
  36. - "hs_phy_irq": The interrupt that is asserted when a
  37. wakeup event is received on USB2 bus
  38. - "ss_phy_irq": The interrupt that is asserted when a
  39. wakeup event is received on USB3 bus
  40. - "dm_hs_phy_irq" and "dp_hs_phy_irq": Separate
  41. interrupts for any wakeup event on DM and DP lines
  42. - qcom,select-utmi-as-pipe-clk: if present, disable USB3 pipe_clk requirement.
  43. Used when dwc3 operates without SSPHY and only
  44. HS/FS/LS modes are supported.
  45. Required child node:
  46. A child node must exist to represent the core DWC3 IP block. The name of
  47. the node is not important. The content of the node is defined in dwc3.txt.
  48. Phy documentation is provided in the following places:
  49. Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt - USB3 QMP PHY
  50. Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt - USB2 QUSB2 PHY
  51. Example device nodes:
  52. hs_phy: phy@100f8800 {
  53. compatible = "qcom,qusb2-v2-phy";
  54. ...
  55. };
  56. ss_phy: phy@100f8830 {
  57. compatible = "qcom,qmp-v3-usb3-phy";
  58. ...
  59. };
  60. usb3_0: usb30@a6f8800 {
  61. compatible = "qcom,dwc3";
  62. reg = <0xa6f8800 0x400>;
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. ranges;
  66. interrupts = <0 131 0>, <0 486 0>, <0 488 0>, <0 489 0>;
  67. interrupt-names = "hs_phy_irq", "ss_phy_irq",
  68. "dm_hs_phy_irq", "dp_hs_phy_irq";
  69. clocks = <&gcc GCC_USB30_PRIM_MASTER_CLK>,
  70. <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>,
  71. <&gcc GCC_USB30_PRIM_SLEEP_CLK>;
  72. clock-names = "core", "mock_utmi", "sleep";
  73. assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>,
  74. <&gcc GCC_USB30_PRIM_MASTER_CLK>;
  75. assigned-clock-rates = <19200000>, <133000000>;
  76. resets = <&gcc GCC_USB30_PRIM_BCR>;
  77. reset-names = "core_reset";
  78. power-domains = <&gcc USB30_PRIM_GDSC>;
  79. qcom,select-utmi-as-pipe-clk;
  80. dwc3@10000000 {
  81. compatible = "snps,dwc3";
  82. reg = <0x10000000 0xcd00>;
  83. interrupts = <0 205 0x4>;
  84. phys = <&hs_phy>, <&ss_phy>;
  85. phy-names = "usb2-phy", "usb3-phy";
  86. dr_mode = "host";
  87. };
  88. };