shdma.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. * SHDMA Device Tree bindings
  2. Sh-/r-mobile and r-car systems often have multiple identical DMA controller
  3. instances, capable of serving any of a common set of DMA slave devices, using
  4. the same configuration. To describe this topology we require all compatible
  5. SHDMA DT nodes to be placed under a DMA multiplexer node. All such compatible
  6. DMAC instances have the same number of channels and use the same DMA
  7. descriptors. Therefore respective DMA DT bindings can also all be placed in the
  8. multiplexer node. Even if there is only one such DMAC instance on a system, it
  9. still has to be placed under such a multiplexer node.
  10. * DMA multiplexer
  11. Required properties:
  12. - compatible: should be "renesas,shdma-mux"
  13. - #dma-cells: should be <1>, see "dmas" property below
  14. Optional properties (currently unused):
  15. - dma-channels: number of DMA channels
  16. - dma-requests: number of DMA request signals
  17. * DMA controller
  18. Required properties:
  19. - compatible: should be of the form "renesas,shdma-<soc>", where <soc> should
  20. be replaced with the desired SoC model, e.g.
  21. "renesas,shdma-r8a73a4" for the system DMAC on r8a73a4 SoC
  22. Example:
  23. dmac: dma-multiplexer@0 {
  24. compatible = "renesas,shdma-mux";
  25. #dma-cells = <1>;
  26. dma-channels = <20>;
  27. dma-requests = <256>;
  28. #address-cells = <2>;
  29. #size-cells = <2>;
  30. ranges;
  31. dma0: dma-controller@e6700020 {
  32. compatible = "renesas,shdma-r8a73a4";
  33. reg = <0 0xe6700020 0 0x89e0>;
  34. interrupt-parent = <&gic>;
  35. interrupts = <0 220 4
  36. 0 200 4
  37. 0 201 4
  38. 0 202 4
  39. 0 203 4
  40. 0 204 4
  41. 0 205 4
  42. 0 206 4
  43. 0 207 4
  44. 0 208 4
  45. 0 209 4
  46. 0 210 4
  47. 0 211 4
  48. 0 212 4
  49. 0 213 4
  50. 0 214 4
  51. 0 215 4
  52. 0 216 4
  53. 0 217 4
  54. 0 218 4
  55. 0 219 4>;
  56. interrupt-names = "error",
  57. "ch0", "ch1", "ch2", "ch3",
  58. "ch4", "ch5", "ch6", "ch7",
  59. "ch8", "ch9", "ch10", "ch11",
  60. "ch12", "ch13", "ch14", "ch15",
  61. "ch16", "ch17", "ch18", "ch19";
  62. };
  63. };
  64. * DMA client
  65. Required properties:
  66. - dmas: a list of <[DMA multiplexer phandle] [MID/RID value]> pairs,
  67. where MID/RID values are fixed handles, specified in the SoC
  68. manual
  69. - dma-names: a list of DMA channel names, one per "dmas" entry
  70. Example:
  71. dmas = <&dmac 0xd1
  72. &dmac 0xd2>;
  73. dma-names = "tx", "rx";