brcm,bcm2835-dma.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. * BCM2835 DMA controller
  2. The BCM2835 DMA controller has 16 channels in total.
  3. Only the lower 13 channels have an associated IRQ.
  4. Some arbitrary channels are used by the firmware
  5. (1,3,6,7 in the current firmware version).
  6. The channels 0,2 and 3 have special functionality
  7. and should not be used by the driver.
  8. Required properties:
  9. - compatible: Should be "brcm,bcm2835-dma".
  10. - reg: Should contain DMA registers location and length.
  11. - interrupts: Should contain the DMA interrupts associated
  12. to the DMA channels in ascending order.
  13. - interrupt-names: Should contain the names of the interrupt
  14. in the form "dmaXX".
  15. Use "dma-shared-all" for the common interrupt line
  16. that is shared by all dma channels.
  17. - #dma-cells: Must be <1>, the cell in the dmas property of the
  18. client device represents the DREQ number.
  19. - brcm,dma-channel-mask: Bit mask representing the channels
  20. not used by the firmware in ascending order,
  21. i.e. first channel corresponds to LSB.
  22. Example:
  23. dma: dma@7e007000 {
  24. compatible = "brcm,bcm2835-dma";
  25. reg = <0x7e007000 0xf00>;
  26. interrupts = <1 16>,
  27. <1 17>,
  28. <1 18>,
  29. <1 19>,
  30. <1 20>,
  31. <1 21>,
  32. <1 22>,
  33. <1 23>,
  34. <1 24>,
  35. <1 25>,
  36. <1 26>,
  37. /* dma channel 11-14 share one irq */
  38. <1 27>,
  39. <1 27>,
  40. <1 27>,
  41. <1 27>,
  42. /* unused shared irq for all channels */
  43. <1 28>;
  44. interrupt-names = "dma0",
  45. "dma1",
  46. "dma2",
  47. "dma3",
  48. "dma4",
  49. "dma5",
  50. "dma6",
  51. "dma7",
  52. "dma8",
  53. "dma9",
  54. "dma10",
  55. "dma11",
  56. "dma12",
  57. "dma13",
  58. "dma14",
  59. "dma-shared-all";
  60. #dma-cells = <1>;
  61. brcm,dma-channel-mask = <0x7f35>;
  62. };
  63. DMA clients connected to the BCM2835 DMA controller must use the format
  64. described in the dma.txt file, using a two-cell specifier for each channel.
  65. Example:
  66. bcm2835_i2s: i2s@7e203000 {
  67. compatible = "brcm,bcm2835-i2s";
  68. reg = < 0x7e203000 0x20>,
  69. < 0x7e101098 0x02>;
  70. dmas = <&dma 2>,
  71. <&dma 3>;
  72. dma-names = "tx", "rx";
  73. };