nbpfaxi.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. * Renesas "Type-AXI" NBPFAXI* DMA controllers
  2. * DMA controller
  3. Required properties
  4. - compatible: must be one of
  5. "renesas,nbpfaxi64dmac1b4"
  6. "renesas,nbpfaxi64dmac1b8"
  7. "renesas,nbpfaxi64dmac1b16"
  8. "renesas,nbpfaxi64dmac4b4"
  9. "renesas,nbpfaxi64dmac4b8"
  10. "renesas,nbpfaxi64dmac4b16"
  11. "renesas,nbpfaxi64dmac8b4"
  12. "renesas,nbpfaxi64dmac8b8"
  13. "renesas,nbpfaxi64dmac8b16"
  14. - #dma-cells: must be 2: the first integer is a terminal number, to which this
  15. slave is connected, the second one is flags. Flags is a bitmask
  16. with the following bits defined:
  17. #define NBPF_SLAVE_RQ_HIGH 1
  18. #define NBPF_SLAVE_RQ_LOW 2
  19. #define NBPF_SLAVE_RQ_LEVEL 4
  20. Optional properties:
  21. - max-burst-mem-read: limit burst size for memory reads
  22. (DMA_MEM_TO_MEM/DMA_MEM_TO_DEV) to this value, specified in bytes, rather
  23. than using the maximum burst size allowed by the hardware's buffer size.
  24. - max-burst-mem-write: limit burst size for memory writes
  25. (DMA_DEV_TO_MEM/DMA_MEM_TO_MEM) to this value, specified in bytes, rather
  26. than using the maximum burst size allowed by the hardware's buffer size.
  27. If both max-burst-mem-read and max-burst-mem-write are set, DMA_MEM_TO_MEM
  28. will use the lower value.
  29. You can use dma-channels and dma-requests as described in dma.txt, although they
  30. won't be used, this information is derived from the compatibility string.
  31. Example:
  32. dma: dma-controller@48000000 {
  33. compatible = "renesas,nbpfaxi64dmac8b4";
  34. reg = <0x48000000 0x400>;
  35. interrupts = <0 12 0x4
  36. 0 13 0x4
  37. 0 14 0x4
  38. 0 15 0x4
  39. 0 16 0x4
  40. 0 17 0x4
  41. 0 18 0x4
  42. 0 19 0x4>;
  43. #dma-cells = <2>;
  44. dma-channels = <8>;
  45. dma-requests = <8>;
  46. };
  47. * DMA client
  48. Required properties:
  49. dmas and dma-names are required, as described in dma.txt.
  50. Example:
  51. #include <dt-bindings/dma/nbpfaxi.h>
  52. ...
  53. dmas = <&dma 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)
  54. &dma 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
  55. dma-names = "rx", "tx";