dma.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. * Generic DMA Controller and DMA request bindings
  2. Generic binding to provide a way for a driver using DMA Engine to retrieve the
  3. DMA request or channel information that goes from a hardware device to a DMA
  4. controller.
  5. * DMA controller
  6. Required property:
  7. - #dma-cells: Must be at least 1. Used to provide DMA controller
  8. specific information. See DMA client binding below for
  9. more details.
  10. Optional properties:
  11. - dma-channels: Number of DMA channels supported by the controller.
  12. - dma-requests: Number of DMA requests signals supported by the
  13. controller.
  14. Example:
  15. dma: dma@48000000 {
  16. compatible = "ti,omap-sdma";
  17. reg = <0x48000000 0x1000>;
  18. interrupts = <0 12 0x4
  19. 0 13 0x4
  20. 0 14 0x4
  21. 0 15 0x4>;
  22. #dma-cells = <1>;
  23. dma-channels = <32>;
  24. dma-requests = <127>;
  25. };
  26. * DMA client
  27. Client drivers should specify the DMA property using a phandle to the controller
  28. followed by DMA controller specific data.
  29. Required property:
  30. - dmas: List of one or more DMA specifiers, each consisting of
  31. - A phandle pointing to DMA controller node
  32. - A number of integer cells, as determined by the
  33. #dma-cells property in the node referenced by phandle
  34. containing DMA controller specific information. This
  35. typically contains a DMA request line number or a
  36. channel number, but can contain any data that is used
  37. required for configuring a channel.
  38. - dma-names: Contains one identifier string for each DMA specifier in
  39. the dmas property. The specific strings that can be used
  40. are defined in the binding of the DMA client device.
  41. Multiple DMA specifiers can be used to represent
  42. alternatives and in this case the dma-names for those
  43. DMA specifiers must be identical (see examples).
  44. Examples:
  45. 1. A device with one DMA read channel, one DMA write channel:
  46. i2c1: i2c@1 {
  47. ...
  48. dmas = <&dma 2 /* read channel */
  49. &dma 3>; /* write channel */
  50. dma-names = "rx", "tx";
  51. ...
  52. };
  53. 2. A single read-write channel with three alternative DMA controllers:
  54. dmas = <&dma1 5
  55. &dma2 7
  56. &dma3 2>;
  57. dma-names = "rx-tx", "rx-tx", "rx-tx";
  58. 3. A device with three channels, one of which has two alternatives:
  59. dmas = <&dma1 2 /* read channel */
  60. &dma1 3 /* write channel */
  61. &dma2 0 /* error read */
  62. &dma3 0>; /* alternative error read */
  63. dma-names = "rx", "tx", "error", "error";