k3dma.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. };
  23. Client:
  24. Use specific request line passing from dmax
  25. For example, i2c0 read channel request line is 18, while write channel use 19
  26. i2c0: i2c@fcb08000 {
  27. compatible = "snps,designware-i2c";
  28. dmas = <&dma0 18 /* read channel */
  29. &dma0 19>; /* write channel */
  30. dma-names = "rx", "tx";
  31. };
  32. i2c1: i2c@fcb09000 {
  33. compatible = "snps,designware-i2c";
  34. dmas = <&dma0 20 /* read channel */
  35. &dma0 21>; /* write channel */
  36. dma-names = "rx", "tx";
  37. };