162306a36Sopenharmony_ciXilinx AXI VDMA engine, it does transfers between memory and video devices. 262306a36Sopenharmony_ciIt can be configured to have one channel or two channels. If configured 362306a36Sopenharmony_cias two channels, one is to transmit to the video device and another is 462306a36Sopenharmony_cito receive from the video device. 562306a36Sopenharmony_ci 662306a36Sopenharmony_ciXilinx AXI DMA engine, it does transfers between memory and AXI4 stream 762306a36Sopenharmony_citarget devices. It can be configured to have one channel or two channels. 862306a36Sopenharmony_ciIf configured as two channels, one is to transmit to the device and another 962306a36Sopenharmony_ciis to receive from the device. 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ciXilinx AXI CDMA engine, it does transfers between memory-mapped source 1262306a36Sopenharmony_ciaddress and a memory-mapped destination address. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciXilinx AXI MCDMA engine, it does transfer between memory and AXI4 stream 1562306a36Sopenharmony_citarget devices. It can be configured to have up to 16 independent transmit 1662306a36Sopenharmony_ciand receive channels. 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciRequired properties: 1962306a36Sopenharmony_ci- compatible: Should be one of- 2062306a36Sopenharmony_ci "xlnx,axi-vdma-1.00.a" 2162306a36Sopenharmony_ci "xlnx,axi-dma-1.00.a" 2262306a36Sopenharmony_ci "xlnx,axi-cdma-1.00.a" 2362306a36Sopenharmony_ci "xlnx,axi-mcdma-1.00.a" 2462306a36Sopenharmony_ci- #dma-cells: Should be <1>, see "dmas" property below 2562306a36Sopenharmony_ci- reg: Should contain VDMA registers location and length. 2662306a36Sopenharmony_ci- xlnx,addrwidth: Should be the vdma addressing size in bits(ex: 32 bits). 2762306a36Sopenharmony_ci- dma-ranges: Should be as the following <dma_addr cpu_addr max_len>. 2862306a36Sopenharmony_ci- dma-channel child node: Should have at least one channel and can have up to 2962306a36Sopenharmony_ci two channels per device. This node specifies the properties of each 3062306a36Sopenharmony_ci DMA channel (see child node properties below). 3162306a36Sopenharmony_ci- clocks: Input clock specifier. Refer to common clock bindings. 3262306a36Sopenharmony_ci- clock-names: List of input clocks 3362306a36Sopenharmony_ci For VDMA: 3462306a36Sopenharmony_ci Required elements: "s_axi_lite_aclk" 3562306a36Sopenharmony_ci Optional elements: "m_axi_mm2s_aclk" "m_axi_s2mm_aclk", 3662306a36Sopenharmony_ci "m_axis_mm2s_aclk", "s_axis_s2mm_aclk" 3762306a36Sopenharmony_ci For CDMA: 3862306a36Sopenharmony_ci Required elements: "s_axi_lite_aclk", "m_axi_aclk" 3962306a36Sopenharmony_ci For AXIDMA and MCDMA: 4062306a36Sopenharmony_ci Required elements: "s_axi_lite_aclk" 4162306a36Sopenharmony_ci Optional elements: "m_axi_mm2s_aclk", "m_axi_s2mm_aclk", 4262306a36Sopenharmony_ci "m_axi_sg_aclk" 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ciRequired properties for VDMA: 4562306a36Sopenharmony_ci- xlnx,num-fstores: Should be the number of framebuffers as configured in h/w. 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ciOptional properties for AXI DMA and MCDMA: 4862306a36Sopenharmony_ci- xlnx,sg-length-width: Should be set to the width in bits of the length 4962306a36Sopenharmony_ci register as configured in h/w. Takes values {8...26}. If the property 5062306a36Sopenharmony_ci is missing or invalid then the default value 23 is used. This is the 5162306a36Sopenharmony_ci maximum value that is supported by all IP versions. 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ciOptional properties for AXI DMA: 5462306a36Sopenharmony_ci- xlnx,axistream-connected: Tells whether DMA is connected to AXI stream IP. 5562306a36Sopenharmony_ci- xlnx,irq-delay: Tells the interrupt delay timeout value. Valid range is from 5662306a36Sopenharmony_ci 0-255. Setting this value to zero disables the delay timer interrupt. 5762306a36Sopenharmony_ci 1 timeout interval = 125 * clock period of SG clock. 5862306a36Sopenharmony_ciOptional properties for VDMA: 5962306a36Sopenharmony_ci- xlnx,flush-fsync: Tells which channel to Flush on Frame sync. 6062306a36Sopenharmony_ci It takes following values: 6162306a36Sopenharmony_ci {1}, flush both channels 6262306a36Sopenharmony_ci {2}, flush mm2s channel 6362306a36Sopenharmony_ci {3}, flush s2mm channel 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ciRequired child node properties: 6662306a36Sopenharmony_ci- compatible: 6762306a36Sopenharmony_ci For VDMA: It should be either "xlnx,axi-vdma-mm2s-channel" or 6862306a36Sopenharmony_ci "xlnx,axi-vdma-s2mm-channel". 6962306a36Sopenharmony_ci For CDMA: It should be "xlnx,axi-cdma-channel". 7062306a36Sopenharmony_ci For AXIDMA and MCDMA: It should be either "xlnx,axi-dma-mm2s-channel" 7162306a36Sopenharmony_ci or "xlnx,axi-dma-s2mm-channel". 7262306a36Sopenharmony_ci- interrupts: Should contain per channel VDMA interrupts. 7362306a36Sopenharmony_ci- xlnx,datawidth: Should contain the stream data width, take values 7462306a36Sopenharmony_ci {32,64...1024}. 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ciOptional child node properties: 7762306a36Sopenharmony_ci- xlnx,include-dre: Tells hardware is configured for Data 7862306a36Sopenharmony_ci Realignment Engine. 7962306a36Sopenharmony_ciOptional child node properties for VDMA: 8062306a36Sopenharmony_ci- xlnx,genlock-mode: Tells Genlock synchronization is 8162306a36Sopenharmony_ci enabled/disabled in hardware. 8262306a36Sopenharmony_ci- xlnx,enable-vert-flip: Tells vertical flip is 8362306a36Sopenharmony_ci enabled/disabled in hardware(S2MM path). 8462306a36Sopenharmony_ciOptional child node properties for MCDMA: 8562306a36Sopenharmony_ci- dma-channels: Number of dma channels in child node. 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ciExample: 8862306a36Sopenharmony_ci++++++++ 8962306a36Sopenharmony_ci 9062306a36Sopenharmony_ciaxi_vdma_0: axivdma@40030000 { 9162306a36Sopenharmony_ci compatible = "xlnx,axi-vdma-1.00.a"; 9262306a36Sopenharmony_ci #dma_cells = <1>; 9362306a36Sopenharmony_ci reg = < 0x40030000 0x10000 >; 9462306a36Sopenharmony_ci dma-ranges = <0x00000000 0x00000000 0x40000000>; 9562306a36Sopenharmony_ci xlnx,num-fstores = <0x8>; 9662306a36Sopenharmony_ci xlnx,flush-fsync = <0x1>; 9762306a36Sopenharmony_ci xlnx,addrwidth = <0x20>; 9862306a36Sopenharmony_ci clocks = <&clk 0>, <&clk 1>, <&clk 2>, <&clk 3>, <&clk 4>; 9962306a36Sopenharmony_ci clock-names = "s_axi_lite_aclk", "m_axi_mm2s_aclk", "m_axi_s2mm_aclk", 10062306a36Sopenharmony_ci "m_axis_mm2s_aclk", "s_axis_s2mm_aclk"; 10162306a36Sopenharmony_ci dma-channel@40030000 { 10262306a36Sopenharmony_ci compatible = "xlnx,axi-vdma-mm2s-channel"; 10362306a36Sopenharmony_ci interrupts = < 0 54 4 >; 10462306a36Sopenharmony_ci xlnx,datawidth = <0x40>; 10562306a36Sopenharmony_ci } ; 10662306a36Sopenharmony_ci dma-channel@40030030 { 10762306a36Sopenharmony_ci compatible = "xlnx,axi-vdma-s2mm-channel"; 10862306a36Sopenharmony_ci interrupts = < 0 53 4 >; 10962306a36Sopenharmony_ci xlnx,datawidth = <0x40>; 11062306a36Sopenharmony_ci } ; 11162306a36Sopenharmony_ci} ; 11262306a36Sopenharmony_ci 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ci* DMA client 11562306a36Sopenharmony_ci 11662306a36Sopenharmony_ciRequired properties: 11762306a36Sopenharmony_ci- dmas: a list of <[Video DMA device phandle] [Channel ID]> pairs, 11862306a36Sopenharmony_ci where Channel ID is '0' for write/tx and '1' for read/rx 11962306a36Sopenharmony_ci channel. For MCMDA, MM2S channel(write/tx) ID start from 12062306a36Sopenharmony_ci '0' and is in [0-15] range. S2MM channel(read/rx) ID start 12162306a36Sopenharmony_ci from '16' and is in [16-31] range. These channels ID are 12262306a36Sopenharmony_ci fixed irrespective of IP configuration. 12362306a36Sopenharmony_ci 12462306a36Sopenharmony_ci- dma-names: a list of DMA channel names, one per "dmas" entry 12562306a36Sopenharmony_ci 12662306a36Sopenharmony_ciExample: 12762306a36Sopenharmony_ci++++++++ 12862306a36Sopenharmony_ci 12962306a36Sopenharmony_civdmatest_0: vdmatest@0 { 13062306a36Sopenharmony_ci compatible ="xlnx,axi-vdma-test-1.00.a"; 13162306a36Sopenharmony_ci dmas = <&axi_vdma_0 0 13262306a36Sopenharmony_ci &axi_vdma_0 1>; 13362306a36Sopenharmony_ci dma-names = "vdma0", "vdma1"; 13462306a36Sopenharmony_ci} ; 135