dma-common.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/dma/dma-common.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: DMA Engine Common Properties
  7. maintainers:
  8. - Vinod Koul <vkoul@kernel.org>
  9. description:
  10. Generic binding to provide a way for a driver using DMA Engine to
  11. retrieve the DMA request or channel information that goes from a
  12. hardware device to a DMA controller.
  13. select: false
  14. properties:
  15. "#dma-cells":
  16. minimum: 1
  17. # Should be enough
  18. maximum: 255
  19. description:
  20. Used to provide DMA controller specific information.
  21. dma-channel-mask:
  22. description:
  23. Bitmask of available DMA channels in ascending order that are
  24. not reserved by firmware and are available to the
  25. kernel. i.e. first channel corresponds to LSB.
  26. The first item in the array is for channels 0-31, the second is for
  27. channels 32-63, etc.
  28. $ref: /schemas/types.yaml#/definitions/uint32-array
  29. items:
  30. minItems: 1
  31. # Should be enough
  32. maxItems: 255
  33. dma-channels:
  34. $ref: /schemas/types.yaml#/definitions/uint32
  35. description:
  36. Number of DMA channels supported by the controller.
  37. dma-requests:
  38. $ref: /schemas/types.yaml#/definitions/uint32
  39. description:
  40. Number of DMA request signals supported by the controller.
  41. required:
  42. - "#dma-cells"
  43. additionalProperties: true