Back to home page

OSCL-LXR

 
 

    


0001 * Renesas "Type-AXI" NBPFAXI* DMA controllers
0002 
0003 * DMA controller
0004 
0005 Required properties
0006 
0007 - compatible:   must be one of
0008                 "renesas,nbpfaxi64dmac1b4"
0009                 "renesas,nbpfaxi64dmac1b8"
0010                 "renesas,nbpfaxi64dmac1b16"
0011                 "renesas,nbpfaxi64dmac4b4"
0012                 "renesas,nbpfaxi64dmac4b8"
0013                 "renesas,nbpfaxi64dmac4b16"
0014                 "renesas,nbpfaxi64dmac8b4"
0015                 "renesas,nbpfaxi64dmac8b8"
0016                 "renesas,nbpfaxi64dmac8b16"
0017 - #dma-cells:   must be 2: the first integer is a terminal number, to which this
0018                 slave is connected, the second one is flags. Flags is a bitmask
0019                 with the following bits defined:
0020 
0021 #define NBPF_SLAVE_RQ_HIGH      1
0022 #define NBPF_SLAVE_RQ_LOW       2
0023 #define NBPF_SLAVE_RQ_LEVEL     4
0024 
0025 Optional properties:
0026 - max-burst-mem-read:   limit burst size for memory reads
0027   (DMA_MEM_TO_MEM/DMA_MEM_TO_DEV) to this value, specified in bytes, rather
0028   than using the maximum burst size allowed by the hardware's buffer size.
0029 - max-burst-mem-write:  limit burst size for memory writes
0030   (DMA_DEV_TO_MEM/DMA_MEM_TO_MEM) to this value, specified in bytes, rather
0031   than using the maximum burst size allowed by the hardware's buffer size.
0032   If both max-burst-mem-read and max-burst-mem-write are set, DMA_MEM_TO_MEM
0033   will use the lower value.
0034 
0035 You can use dma-channels and dma-requests as described in dma.txt, although they
0036 won't be used, this information is derived from the compatibility string.
0037 
0038 Example:
0039 
0040         dma: dma-controller@48000000 {
0041                 compatible = "renesas,nbpfaxi64dmac8b4";
0042                 reg = <0x48000000 0x400>;
0043                 interrupts = <0 12 0x4
0044                               0 13 0x4
0045                               0 14 0x4
0046                               0 15 0x4
0047                               0 16 0x4
0048                               0 17 0x4
0049                               0 18 0x4
0050                               0 19 0x4>;
0051                 #dma-cells = <2>;
0052                 dma-channels = <8>;
0053                 dma-requests = <8>;
0054         };
0055 
0056 * DMA client
0057 
0058 Required properties:
0059 
0060 dmas and dma-names are required, as described in dma.txt.
0061 
0062 Example:
0063 
0064 #include <dt-bindings/dma/nbpfaxi.h>
0065 
0066 ...
0067                 dmas = <&dma 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)
0068                         &dma 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
0069                 dma-names = "rx", "tx";