brcm,bcm2835-dma.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. - #dma-cells: Must be <1>, the cell in the dmas property of the
  14. client device represents the DREQ number.
  15. - brcm,dma-channel-mask: Bit mask representing the channels
  16. not used by the firmware in ascending order,
  17. i.e. first channel corresponds to LSB.
  18. Example:
  19. dma: dma@7e007000 {
  20. compatible = "brcm,bcm2835-dma";
  21. reg = <0x7e007000 0xf00>;
  22. interrupts = <1 16>,
  23. <1 17>,
  24. <1 18>,
  25. <1 19>,
  26. <1 20>,
  27. <1 21>,
  28. <1 22>,
  29. <1 23>,
  30. <1 24>,
  31. <1 25>,
  32. <1 26>,
  33. <1 27>,
  34. <1 28>;
  35. #dma-cells = <1>;
  36. brcm,dma-channel-mask = <0x7f35>;
  37. };
  38. DMA clients connected to the BCM2835 DMA controller must use the format
  39. described in the dma.txt file, using a two-cell specifier for each channel.
  40. Example:
  41. bcm2835_i2s: i2s@7e203000 {
  42. compatible = "brcm,bcm2835-i2s";
  43. reg = < 0x7e203000 0x20>,
  44. < 0x7e101098 0x02>;
  45. dmas = <&dma 2>,
  46. <&dma 3>;
  47. dma-names = "tx", "rx";
  48. };