sprd-dma.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. * Spreadtrum DMA controller
  2. This binding follows the generic DMA bindings defined in dma.txt.
  3. Required properties:
  4. - compatible: Should be "sprd,sc9860-dma".
  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. - #dma-channels : Number of DMA channels supported. Should be 32.
  10. - clock-names: Should contain the clock of the DMA controller.
  11. - clocks: Should contain a clock specifier for each entry in clock-names.
  12. Example:
  13. Controller:
  14. apdma: dma-controller@20100000 {
  15. compatible = "sprd,sc9860-dma";
  16. reg = <0x20100000 0x4000>;
  17. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  18. #dma-cells = <1>;
  19. #dma-channels = <32>;
  20. clock-names = "enable";
  21. clocks = <&clk_ap_ahb_gates 5>;
  22. };
  23. Client:
  24. DMA clients connected to the Spreadtrum DMA controller must use the format
  25. described in the dma.txt file, using a two-cell specifier for each channel.
  26. The two cells in order are:
  27. 1. A phandle pointing to the DMA controller.
  28. 2. The channel id.
  29. spi0: spi@70a00000{
  30. ...
  31. dma-names = "rx_chn", "tx_chn";
  32. dmas = <&apdma 11>, <&apdma 12>;
  33. ...
  34. };