nbpfaxi.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. You can use dma-channels and dma-requests as described in dma.txt, although they
  22. won't be used, this information is derived from the compatibility string.
  23. Example:
  24. dma: dma-controller@48000000 {
  25. compatible = "renesas,nbpfaxi64dmac8b4";
  26. reg = <0x48000000 0x400>;
  27. interrupts = <0 12 0x4
  28. 0 13 0x4
  29. 0 14 0x4
  30. 0 15 0x4
  31. 0 16 0x4
  32. 0 17 0x4
  33. 0 18 0x4
  34. 0 19 0x4>;
  35. #dma-cells = <2>;
  36. dma-channels = <8>;
  37. dma-requests = <8>;
  38. };
  39. * DMA client
  40. Required properties:
  41. dmas and dma-names are required, as described in dma.txt.
  42. Example:
  43. #include <dt-bindings/dma/nbpfaxi.h>
  44. ...
  45. dmas = <&dma 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)
  46. &dma 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
  47. dma-names = "rx", "tx";