zxdma.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. * ZTE ZX296702 DMA controller
  2. Required properties:
  3. - compatible: Should be "zte,zx296702-dma"
  4. - reg: Should contain DMA registers location and length.
  5. - interrupts: Should contain one interrupt shared by all channel
  6. - #dma-cells: see dma.txt, should be 1, para number
  7. - dma-channels: physical channels supported
  8. - dma-requests: virtual channels supported, each virtual channel
  9. have specific request line
  10. - clocks: clock required
  11. Example:
  12. Controller:
  13. dma: dma-controller@0x09c00000{
  14. compatible = "zte,zx296702-dma";
  15. reg = <0x09c00000 0x1000>;
  16. clocks = <&topclk ZX296702_DMA_ACLK>;
  17. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  18. #dma-cells = <1>;
  19. dma-channels = <24>;
  20. dma-requests = <24>;
  21. };
  22. Client:
  23. Use specific request line passing from dmax
  24. For example, spdif0 tx channel request line is 4
  25. spdif0: spdif0@0b004000 {
  26. #sound-dai-cells = <0>;
  27. compatible = "zte,zx296702-spdif";
  28. reg = <0x0b004000 0x1000>;
  29. clocks = <&lsp0clk ZX296702_SPDIF0_DIV>;
  30. clock-names = "tx";
  31. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  32. dmas = <&dma 4>;
  33. dma-names = "tx";
  34. }