generic-ohci.yaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/usb/generic-ohci.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: USB OHCI Controller
  7. maintainers:
  8. - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - items:
  13. - enum:
  14. - allwinner,sun4i-a10-ohci
  15. - allwinner,sun50i-a64-ohci
  16. - allwinner,sun50i-h6-ohci
  17. - allwinner,sun50i-h616-ohci
  18. - allwinner,sun5i-a13-ohci
  19. - allwinner,sun6i-a31-ohci
  20. - allwinner,sun7i-a20-ohci
  21. - allwinner,sun8i-a23-ohci
  22. - allwinner,sun8i-a83t-ohci
  23. - allwinner,sun8i-h3-ohci
  24. - allwinner,sun8i-r40-ohci
  25. - allwinner,sun8i-v3s-ohci
  26. - allwinner,sun9i-a80-ohci
  27. - allwinner,sun20i-d1-ohci
  28. - brcm,bcm3384-ohci
  29. - brcm,bcm63268-ohci
  30. - brcm,bcm6328-ohci
  31. - brcm,bcm6358-ohci
  32. - brcm,bcm6362-ohci
  33. - brcm,bcm6368-ohci
  34. - brcm,bcm7125-ohci
  35. - brcm,bcm7346-ohci
  36. - brcm,bcm7358-ohci
  37. - brcm,bcm7360-ohci
  38. - brcm,bcm7362-ohci
  39. - brcm,bcm7420-ohci
  40. - brcm,bcm7425-ohci
  41. - brcm,bcm7435-ohci
  42. - hpe,gxp-ohci
  43. - ibm,476gtr-ohci
  44. - ingenic,jz4740-ohci
  45. - rockchip,rk3588-ohci
  46. - snps,hsdk-v1.0-ohci
  47. - const: generic-ohci
  48. - enum:
  49. - generic-ohci
  50. - ti,ohci-omap3
  51. - items:
  52. - enum:
  53. - cavium,octeon-6335-ohci
  54. - nintendo,hollywood-usb-ohci
  55. - nxp,ohci-nxp
  56. - st,spear600-ohci
  57. - const: usb-ohci
  58. reg:
  59. maxItems: 1
  60. interrupts:
  61. maxItems: 1
  62. resets:
  63. minItems: 1
  64. maxItems: 2
  65. clocks:
  66. minItems: 1
  67. maxItems: 4
  68. description: |
  69. In case the Renesas R-Car Gen3 SoCs:
  70. - if a host only channel: first clock should be host.
  71. - if a USB DRD channel: first clock should be host and second
  72. one should be peripheral
  73. power-domains:
  74. maxItems: 1
  75. big-endian:
  76. $ref: /schemas/types.yaml#/definitions/flag
  77. description:
  78. Set this flag for HCDs with big endian descriptors and big
  79. endian registers.
  80. big-endian-desc:
  81. $ref: /schemas/types.yaml#/definitions/flag
  82. description:
  83. Set this flag for HCDs with big endian descriptors.
  84. big-endian-regs:
  85. $ref: /schemas/types.yaml#/definitions/flag
  86. description:
  87. Set this flag for HCDs with big endian registers.
  88. remote-wakeup-connected:
  89. $ref: /schemas/types.yaml#/definitions/flag
  90. description:
  91. Remote wakeup is wired on the platform.
  92. no-big-frame-no:
  93. $ref: /schemas/types.yaml#/definitions/flag
  94. description:
  95. Set if frame_no lives in bits [15:0] of HCCA
  96. num-ports:
  97. $ref: /schemas/types.yaml#/definitions/uint32
  98. description:
  99. Overrides the detected port count
  100. phys:
  101. minItems: 1
  102. maxItems: 3
  103. phy-names:
  104. const: usb
  105. iommus:
  106. maxItems: 1
  107. dr_mode:
  108. enum:
  109. - host
  110. - otg
  111. transceiver:
  112. $ref: /schemas/types.yaml#/definitions/phandle
  113. description:
  114. The associated ISP1301 device. Necessary for the UDC controller for
  115. connecting to the USB physical layer.
  116. required:
  117. - compatible
  118. - reg
  119. - interrupts
  120. allOf:
  121. - $ref: usb-hcd.yaml
  122. - if:
  123. not:
  124. properties:
  125. compatible:
  126. contains:
  127. const: nxp,ohci-nxp
  128. then:
  129. properties:
  130. transceiver: false
  131. - if:
  132. properties:
  133. compatible:
  134. contains:
  135. const: rockchip,rk3588-ohci
  136. then:
  137. properties:
  138. clocks:
  139. minItems: 4
  140. else:
  141. properties:
  142. clocks:
  143. minItems: 1
  144. maxItems: 3
  145. unevaluatedProperties: false
  146. examples:
  147. - |
  148. ohci0: usb@1c14400 {
  149. compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
  150. reg = <0x01c14400 0x100>;
  151. interrupts = <64>;
  152. clocks = <&usb_clk 6>, <&ahb_gates 2>;
  153. phys = <&usbphy 1>;
  154. phy-names = "usb";
  155. };
  156. ...