atmel-dma.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. * Atmel Direct Memory Access Controller (DMA)
  2. Required properties:
  3. - compatible: Should be "atmel,<chip>-dma".
  4. - reg: Should contain DMA registers location and length.
  5. - interrupts: Should contain DMA interrupt.
  6. - #dma-cells: Must be <2>, used to represent the number of integer cells in
  7. the dmas property of client devices.
  8. Example:
  9. dma0: dma@ffffec00 {
  10. compatible = "atmel,at91sam9g45-dma";
  11. reg = <0xffffec00 0x200>;
  12. interrupts = <21>;
  13. #dma-cells = <2>;
  14. };
  15. DMA clients connected to the Atmel DMA controller must use the format
  16. described in the dma.txt file, using a three-cell specifier for each channel:
  17. a phandle plus two integer cells.
  18. The three cells in order are:
  19. 1. A phandle pointing to the DMA controller.
  20. 2. The memory interface (16 most significant bits), the peripheral interface
  21. (16 less significant bits).
  22. 3. Parameters for the at91 DMA configuration register which are device
  23. dependent:
  24. - bit 7-0: peripheral identifier for the hardware handshaking interface. The
  25. identifier can be different for tx and rx.
  26. - bit 11-8: FIFO configuration. 0 for half FIFO, 1 for ALAP, 2 for ASAP.
  27. Example:
  28. i2c0@i2c@f8010000 {
  29. compatible = "atmel,at91sam9x5-i2c";
  30. reg = <0xf8010000 0x100>;
  31. interrupts = <9 4 6>;
  32. dmas = <&dma0 1 7>,
  33. <&dma0 1 8>;
  34. dma-names = "tx", "rx";
  35. };