ti-edma.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. Texas Instruments eDMA
  2. The eDMA3 consists of two components: Channel controller (CC) and Transfer
  3. Controller(s) (TC). The CC is the main entry for DMA users since it is
  4. responsible for the DMA channel handling, while the TCs are responsible to
  5. execute the actual DMA tansfer.
  6. ------------------------------------------------------------------------------
  7. eDMA3 Channel Controller
  8. Required properties:
  9. - compatible: "ti,edma3-tpcc" for the channel controller(s)
  10. - #dma-cells: Should be set to <2>. The first number is the DMA request
  11. number and the second is the TC the channel is serviced on.
  12. - reg: Memory map of eDMA CC
  13. - reg-names: "edma3_cc"
  14. - interrupts: Interrupt lines for CCINT, MPERR and CCERRINT.
  15. - interrupt-names: "edma3_ccint", "emda3_mperr" and "edma3_ccerrint"
  16. - ti,tptcs: List of TPTCs associated with the eDMA in the following form:
  17. <&tptc_phandle TC_priority_number>. The highest priority is 0.
  18. Optional properties:
  19. - ti,hwmods: Name of the hwmods associated to the eDMA CC
  20. - ti,edma-memcpy-channels: List of channels allocated to be used for memcpy, iow
  21. these channels will be SW triggered channels. See example.
  22. - ti,edma-reserved-slot-ranges: PaRAM slot ranges which should not be used by
  23. the driver, they are allocated to be used by for example the
  24. DSP. See example.
  25. ------------------------------------------------------------------------------
  26. eDMA3 Transfer Controller
  27. Required properties:
  28. - compatible: "ti,edma3-tptc" for the transfer controller(s)
  29. - reg: Memory map of eDMA TC
  30. - interrupts: Interrupt number for TCerrint.
  31. Optional properties:
  32. - ti,hwmods: Name of the hwmods associated to the given eDMA TC
  33. - interrupt-names: "edma3_tcerrint"
  34. ------------------------------------------------------------------------------
  35. Example:
  36. edma: edma@49000000 {
  37. compatible = "ti,edma3-tpcc";
  38. ti,hwmods = "tpcc";
  39. reg = <0x49000000 0x10000>;
  40. reg-names = "edma3_cc";
  41. interrupts = <12 13 14>;
  42. interrupt-names = "edma3_ccint", "emda3_mperr", "edma3_ccerrint";
  43. dma-requests = <64>;
  44. #dma-cells = <2>;
  45. ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 7>, <&edma_tptc2 0>;
  46. /* Channel 20 and 21 is allocated for memcpy */
  47. ti,edma-memcpy-channels = <20 21>;
  48. /* The following PaRAM slots are reserved: 35-44 and 100-109 */
  49. ti,edma-reserved-slot-ranges = <35 10>, <100 10>;
  50. };
  51. edma_tptc0: tptc@49800000 {
  52. compatible = "ti,edma3-tptc";
  53. ti,hwmods = "tptc0";
  54. reg = <0x49800000 0x100000>;
  55. interrupts = <112>;
  56. interrupt-names = "edm3_tcerrint";
  57. };
  58. edma_tptc1: tptc@49900000 {
  59. compatible = "ti,edma3-tptc";
  60. ti,hwmods = "tptc1";
  61. reg = <0x49900000 0x100000>;
  62. interrupts = <113>;
  63. interrupt-names = "edm3_tcerrint";
  64. };
  65. edma_tptc2: tptc@49a00000 {
  66. compatible = "ti,edma3-tptc";
  67. ti,hwmods = "tptc2";
  68. reg = <0x49a00000 0x100000>;
  69. interrupts = <114>;
  70. interrupt-names = "edm3_tcerrint";
  71. };
  72. sham: sham@53100000 {
  73. compatible = "ti,omap4-sham";
  74. ti,hwmods = "sham";
  75. reg = <0x53100000 0x200>;
  76. interrupts = <109>;
  77. /* DMA channel 36 executed on eDMA TC0 - low priority queue */
  78. dmas = <&edma 36 0>;
  79. dma-names = "rx";
  80. };
  81. mcasp0: mcasp@48038000 {
  82. compatible = "ti,am33xx-mcasp-audio";
  83. ti,hwmods = "mcasp0";
  84. reg = <0x48038000 0x2000>,
  85. <0x46000000 0x400000>;
  86. reg-names = "mpu", "dat";
  87. interrupts = <80>, <81>;
  88. interrupt-names = "tx", "rx";
  89. status = "disabled";
  90. /* DMA channels 8 and 9 executed on eDMA TC2 - high priority queue */
  91. dmas = <&edma 8 2>,
  92. <&edma 9 2>;
  93. dma-names = "tx", "rx";
  94. };
  95. ------------------------------------------------------------------------------
  96. DEPRECATED binding, new DTS files must use the ti,edma3-tpcc/ti,edma3-tptc
  97. binding.
  98. Required properties:
  99. - compatible : "ti,edma3"
  100. - #dma-cells: Should be set to <1>
  101. Clients should use a single channel number per DMA request.
  102. - reg: Memory map for accessing module
  103. - interrupt-parent: Interrupt controller the interrupt is routed through
  104. - interrupts: Exactly 3 interrupts need to be specified in the order:
  105. 1. Transfer completion interrupt.
  106. 2. Memory protection interrupt.
  107. 3. Error interrupt.
  108. Optional properties:
  109. - ti,hwmods: Name of the hwmods associated to the EDMA
  110. - ti,edma-xbar-event-map: Crossbar event to channel map
  111. Deprecated properties:
  112. Listed here in case one wants to boot an old kernel with new DTB. These
  113. properties might need to be added to the new DTS files.
  114. - ti,edma-regions: Number of regions
  115. - ti,edma-slots: Number of slots
  116. - dma-channels: Specify total DMA channels per CC
  117. Example:
  118. edma: edma@49000000 {
  119. reg = <0x49000000 0x10000>;
  120. interrupt-parent = <&intc>;
  121. interrupts = <12 13 14>;
  122. compatible = "ti,edma3";
  123. ti,hwmods = "tpcc", "tptc0", "tptc1", "tptc2";
  124. #dma-cells = <1>;
  125. ti,edma-xbar-event-map = /bits/ 16 <1 12
  126. 2 13>;
  127. };