k3dma.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. * Hisilicon K3 DMA controller
  2. See dma.txt first
  3. Required properties:
  4. - compatible: Should be "hisilicon,k3-dma-1.0"
  5. - reg: Should contain DMA registers location and length.
  6. - interrupts: Should contain one interrupt shared by all channel
  7. - #dma-cells: see dma.txt, should be 1, para number
  8. - dma-channels: physical channels supported
  9. - dma-requests: virtual channels supported, each virtual channel
  10. have specific request line
  11. - clocks: clock required
  12. Example:
  13. Controller:
  14. dma0: dma@fcd02000 {
  15. compatible = "hisilicon,k3-dma-1.0";
  16. reg = <0xfcd02000 0x1000>;
  17. #dma-cells = <1>;
  18. dma-channels = <16>;
  19. dma-requests = <27>;
  20. interrupts = <0 12 4>;
  21. clocks = <&pclk>;
  22. status = "disable";
  23. };
  24. Client:
  25. Use specific request line passing from dmax
  26. For example, i2c0 read channel request line is 18, while write channel use 19
  27. i2c0: i2c@fcb08000 {
  28. compatible = "snps,designware-i2c";
  29. dmas = <&dma0 18 /* read channel */
  30. &dma0 19>; /* write channel */
  31. dma-names = "rx", "tx";
  32. };
  33. i2c1: i2c@fcb09000 {
  34. compatible = "snps,designware-i2c";
  35. dmas = <&dma0 20 /* read channel */
  36. &dma0 21>; /* write channel */
  37. dma-names = "rx", "tx";
  38. };