usb-uhci.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/usb/usb-uhci.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Generic Platform UHCI Controller
  7. maintainers:
  8. - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - const: generic-uhci
  13. - const: platform-uhci
  14. deprecated: true
  15. - items:
  16. - enum:
  17. - aspeed,ast2400-uhci
  18. - aspeed,ast2500-uhci
  19. - aspeed,ast2600-uhci
  20. - const: generic-uhci
  21. reg:
  22. maxItems: 1
  23. interrupts:
  24. maxItems: 1
  25. '#ports':
  26. $ref: /schemas/types.yaml#/definitions/uint32
  27. clocks:
  28. maxItems: 1
  29. required:
  30. - compatible
  31. - reg
  32. - interrupts
  33. allOf:
  34. - $ref: usb-hcd.yaml
  35. - if:
  36. properties:
  37. compatible:
  38. contains:
  39. const: generic-uhci
  40. then:
  41. required:
  42. - clocks
  43. unevaluatedProperties: false
  44. examples:
  45. - |
  46. #include <dt-bindings/clock/aspeed-clock.h>
  47. usb@d8007b00 {
  48. compatible = "generic-uhci";
  49. reg = <0xd8007b00 0x200>;
  50. interrupts = <43>;
  51. clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>;
  52. };
  53. - |
  54. #include <dt-bindings/clock/aspeed-clock.h>
  55. usb@1e6b0000 {
  56. compatible = "aspeed,ast2500-uhci", "generic-uhci";
  57. reg = <0x1e6b0000 0x100>;
  58. interrupts = <14>;
  59. #ports = <2>;
  60. clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>;
  61. };
  62. ...