sirfsoc-dma.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. * CSR SiRFSoC DMA controller
  2. See dma.txt first
  3. Required properties:
  4. - compatible: Should be "sirf,prima2-dmac" or "sirf,marco-dmac"
  5. - reg: Should contain DMA registers location and length.
  6. - interrupts: Should contain one interrupt shared by all channel
  7. - #dma-cells: must be <1>. used to represent the number of integer
  8. cells in the dmas property of client device.
  9. - clocks: clock required
  10. Example:
  11. Controller:
  12. dmac0: dma-controller@b00b0000 {
  13. compatible = "sirf,prima2-dmac";
  14. reg = <0xb00b0000 0x10000>;
  15. interrupts = <12>;
  16. clocks = <&clks 24>;
  17. #dma-cells = <1>;
  18. };
  19. Client:
  20. Fill the specific dma request line in dmas. In the below example, spi0 read
  21. channel request line is 9 of the 2nd dma controller, while write channel uses
  22. 4 of the 2nd dma controller; spi1 read channel request line is 12 of the 1st
  23. dma controller, while write channel uses 13 of the 1st dma controller:
  24. spi0: spi@b00d0000 {
  25. compatible = "sirf,prima2-spi";
  26. dmas = <&dmac1 9>,
  27. <&dmac1 4>;
  28. dma-names = "rx", "tx";
  29. };
  30. spi1: spi@b0170000 {
  31. compatible = "sirf,prima2-spi";
  32. dmas = <&dmac0 12>,
  33. <&dmac0 13>;
  34. dma-names = "rx", "tx";
  35. };