sirfsoc-dma.txt 1.1 KB

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