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