maxim,max3420-udc.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MAXIM MAX3420/1 USB Peripheral Controller
  7. maintainers:
  8. - Jassi Brar <jaswinder.singh@linaro.org>
  9. description: |
  10. The controller provices USB2.0 compliant FullSpeed peripheral
  11. implementation over the SPI interface.
  12. Specifications about the part can be found at:
  13. http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
  14. properties:
  15. compatible:
  16. enum:
  17. - maxim,max3420-udc
  18. - maxim,max3421-udc
  19. reg:
  20. maxItems: 1
  21. interrupts:
  22. items:
  23. - description: usb irq from max3420
  24. - description: vbus detection irq
  25. minItems: 1
  26. interrupt-names:
  27. items:
  28. - const: udc
  29. - const: vbus
  30. minItems: 1
  31. spi-max-frequency:
  32. maximum: 26000000
  33. required:
  34. - compatible
  35. - reg
  36. - interrupts
  37. - interrupt-names
  38. additionalProperties: false
  39. examples:
  40. - |
  41. #include <dt-bindings/gpio/gpio.h>
  42. #include <dt-bindings/interrupt-controller/irq.h>
  43. spi {
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. udc@0 {
  47. compatible = "maxim,max3420-udc";
  48. reg = <0>;
  49. interrupt-parent = <&gpio>;
  50. interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
  51. interrupt-names = "udc", "vbus";
  52. spi-max-frequency = <12500000>;
  53. };
  54. };