18c2ecf20Sopenharmony_ciXilinx AXI VDMA engine, it does transfers between memory and video devices. 28c2ecf20Sopenharmony_ciIt can be configured to have one channel or two channels. If configured 38c2ecf20Sopenharmony_cias two channels, one is to transmit to the video device and another is 48c2ecf20Sopenharmony_cito receive from the video device. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciXilinx AXI DMA engine, it does transfers between memory and AXI4 stream 78c2ecf20Sopenharmony_citarget devices. It can be configured to have one channel or two channels. 88c2ecf20Sopenharmony_ciIf configured as two channels, one is to transmit to the device and another 98c2ecf20Sopenharmony_ciis to receive from the device. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciXilinx AXI CDMA engine, it does transfers between memory-mapped source 128c2ecf20Sopenharmony_ciaddress and a memory-mapped destination address. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciXilinx AXI MCDMA engine, it does transfer between memory and AXI4 stream 158c2ecf20Sopenharmony_citarget devices. It can be configured to have up to 16 independent transmit 168c2ecf20Sopenharmony_ciand receive channels. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciRequired properties: 198c2ecf20Sopenharmony_ci- compatible: Should be one of- 208c2ecf20Sopenharmony_ci "xlnx,axi-vdma-1.00.a" 218c2ecf20Sopenharmony_ci "xlnx,axi-dma-1.00.a" 228c2ecf20Sopenharmony_ci "xlnx,axi-cdma-1.00.a" 238c2ecf20Sopenharmony_ci "xlnx,axi-mcdma-1.00.a" 248c2ecf20Sopenharmony_ci- #dma-cells: Should be <1>, see "dmas" property below 258c2ecf20Sopenharmony_ci- reg: Should contain VDMA registers location and length. 268c2ecf20Sopenharmony_ci- xlnx,addrwidth: Should be the vdma addressing size in bits(ex: 32 bits). 278c2ecf20Sopenharmony_ci- dma-ranges: Should be as the following <dma_addr cpu_addr max_len>. 288c2ecf20Sopenharmony_ci- dma-channel child node: Should have at least one channel and can have up to 298c2ecf20Sopenharmony_ci two channels per device. This node specifies the properties of each 308c2ecf20Sopenharmony_ci DMA channel (see child node properties below). 318c2ecf20Sopenharmony_ci- clocks: Input clock specifier. Refer to common clock bindings. 328c2ecf20Sopenharmony_ci- clock-names: List of input clocks 338c2ecf20Sopenharmony_ci For VDMA: 348c2ecf20Sopenharmony_ci Required elements: "s_axi_lite_aclk" 358c2ecf20Sopenharmony_ci Optional elements: "m_axi_mm2s_aclk" "m_axi_s2mm_aclk", 368c2ecf20Sopenharmony_ci "m_axis_mm2s_aclk", "s_axis_s2mm_aclk" 378c2ecf20Sopenharmony_ci For CDMA: 388c2ecf20Sopenharmony_ci Required elements: "s_axi_lite_aclk", "m_axi_aclk" 398c2ecf20Sopenharmony_ci For AXIDMA and MCDMA: 408c2ecf20Sopenharmony_ci Required elements: "s_axi_lite_aclk" 418c2ecf20Sopenharmony_ci Optional elements: "m_axi_mm2s_aclk", "m_axi_s2mm_aclk", 428c2ecf20Sopenharmony_ci "m_axi_sg_aclk" 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ciRequired properties for VDMA: 458c2ecf20Sopenharmony_ci- xlnx,num-fstores: Should be the number of framebuffers as configured in h/w. 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ciOptional properties for AXI DMA and MCDMA: 488c2ecf20Sopenharmony_ci- xlnx,sg-length-width: Should be set to the width in bits of the length 498c2ecf20Sopenharmony_ci register as configured in h/w. Takes values {8...26}. If the property 508c2ecf20Sopenharmony_ci is missing or invalid then the default value 23 is used. This is the 518c2ecf20Sopenharmony_ci maximum value that is supported by all IP versions. 528c2ecf20Sopenharmony_ciOptional properties for VDMA: 538c2ecf20Sopenharmony_ci- xlnx,flush-fsync: Tells which channel to Flush on Frame sync. 548c2ecf20Sopenharmony_ci It takes following values: 558c2ecf20Sopenharmony_ci {1}, flush both channels 568c2ecf20Sopenharmony_ci {2}, flush mm2s channel 578c2ecf20Sopenharmony_ci {3}, flush s2mm channel 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ciRequired child node properties: 608c2ecf20Sopenharmony_ci- compatible: 618c2ecf20Sopenharmony_ci For VDMA: It should be either "xlnx,axi-vdma-mm2s-channel" or 628c2ecf20Sopenharmony_ci "xlnx,axi-vdma-s2mm-channel". 638c2ecf20Sopenharmony_ci For CDMA: It should be "xlnx,axi-cdma-channel". 648c2ecf20Sopenharmony_ci For AXIDMA and MCDMA: It should be either "xlnx,axi-dma-mm2s-channel" 658c2ecf20Sopenharmony_ci or "xlnx,axi-dma-s2mm-channel". 668c2ecf20Sopenharmony_ci- interrupts: Should contain per channel VDMA interrupts. 678c2ecf20Sopenharmony_ci- xlnx,datawidth: Should contain the stream data width, take values 688c2ecf20Sopenharmony_ci {32,64...1024}. 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ciOptional child node properties: 718c2ecf20Sopenharmony_ci- xlnx,include-dre: Tells hardware is configured for Data 728c2ecf20Sopenharmony_ci Realignment Engine. 738c2ecf20Sopenharmony_ciOptional child node properties for VDMA: 748c2ecf20Sopenharmony_ci- xlnx,genlock-mode: Tells Genlock synchronization is 758c2ecf20Sopenharmony_ci enabled/disabled in hardware. 768c2ecf20Sopenharmony_ci- xlnx,enable-vert-flip: Tells vertical flip is 778c2ecf20Sopenharmony_ci enabled/disabled in hardware(S2MM path). 788c2ecf20Sopenharmony_ciOptional child node properties for MCDMA: 798c2ecf20Sopenharmony_ci- dma-channels: Number of dma channels in child node. 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ciExample: 828c2ecf20Sopenharmony_ci++++++++ 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ciaxi_vdma_0: axivdma@40030000 { 858c2ecf20Sopenharmony_ci compatible = "xlnx,axi-vdma-1.00.a"; 868c2ecf20Sopenharmony_ci #dma_cells = <1>; 878c2ecf20Sopenharmony_ci reg = < 0x40030000 0x10000 >; 888c2ecf20Sopenharmony_ci dma-ranges = <0x00000000 0x00000000 0x40000000>; 898c2ecf20Sopenharmony_ci xlnx,num-fstores = <0x8>; 908c2ecf20Sopenharmony_ci xlnx,flush-fsync = <0x1>; 918c2ecf20Sopenharmony_ci xlnx,addrwidth = <0x20>; 928c2ecf20Sopenharmony_ci clocks = <&clk 0>, <&clk 1>, <&clk 2>, <&clk 3>, <&clk 4>; 938c2ecf20Sopenharmony_ci clock-names = "s_axi_lite_aclk", "m_axi_mm2s_aclk", "m_axi_s2mm_aclk", 948c2ecf20Sopenharmony_ci "m_axis_mm2s_aclk", "s_axis_s2mm_aclk"; 958c2ecf20Sopenharmony_ci dma-channel@40030000 { 968c2ecf20Sopenharmony_ci compatible = "xlnx,axi-vdma-mm2s-channel"; 978c2ecf20Sopenharmony_ci interrupts = < 0 54 4 >; 988c2ecf20Sopenharmony_ci xlnx,datawidth = <0x40>; 998c2ecf20Sopenharmony_ci } ; 1008c2ecf20Sopenharmony_ci dma-channel@40030030 { 1018c2ecf20Sopenharmony_ci compatible = "xlnx,axi-vdma-s2mm-channel"; 1028c2ecf20Sopenharmony_ci interrupts = < 0 53 4 >; 1038c2ecf20Sopenharmony_ci xlnx,datawidth = <0x40>; 1048c2ecf20Sopenharmony_ci } ; 1058c2ecf20Sopenharmony_ci} ; 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ci* DMA client 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ciRequired properties: 1118c2ecf20Sopenharmony_ci- dmas: a list of <[Video DMA device phandle] [Channel ID]> pairs, 1128c2ecf20Sopenharmony_ci where Channel ID is '0' for write/tx and '1' for read/rx 1138c2ecf20Sopenharmony_ci channel. 1148c2ecf20Sopenharmony_ci- dma-names: a list of DMA channel names, one per "dmas" entry 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ciExample: 1178c2ecf20Sopenharmony_ci++++++++ 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_civdmatest_0: vdmatest@0 { 1208c2ecf20Sopenharmony_ci compatible ="xlnx,axi-vdma-test-1.00.a"; 1218c2ecf20Sopenharmony_ci dmas = <&axi_vdma_0 0 1228c2ecf20Sopenharmony_ci &axi_vdma_0 1>; 1238c2ecf20Sopenharmony_ci dma-names = "vdma0", "vdma1"; 1248c2ecf20Sopenharmony_ci} ; 125