Hi,
We are working on linux 3.15.0 kernel from analog devices on my ZED board.
We want to transfer data b/w PS and PL using axi-dma on HP port 3.
My config base address is at 0x40400000.
Here is my device tree
axi_dma_0: axidma@40400000 {
compatible = "xlnx,axi-dma";
#address-cells = <1>;
#size-cells = <1>;
#dma-cells = <1>;
#dma-channels = <1>;
interrupt-parent = <&gic>;
interrupts = <0 29 4 0 30 4>;
reg = <0x40400000 0x1000>;
dma-channel@40400000 {
compatible = "xlnx,axi-dma-mm2s-channel";
interrupts = <0 29 0x4>;
xlnx,datawidth = <0x40>;
xlnx,device-id = <0x0>;
#xlnx,genlock-mode = <0x0>;
#xlnx,include-dre = <0x0>;
};
dma-channel@40400030 {
compatible = "xlnx,axi-dma-s2mm-channel";
interrupts = <0 30 0x4>;
xlnx,datawidth = <0x40>;
xlnx,device-id = <0x0>;
#xlnx,genlock-mode = <0x0>;
#xlnx,include-dre = <0x0>;
};
I could see the dma channel registered in /sys/class/dma
dma1chan0 -> ../../devices/soc0/fpga-axi@0/40400000.axidma/dma/dma1chan0
lrwxrwxrwx 1 root root 0 Jan 1 1970 dma1chan1 -> ../../devices/soc0/fpga-axi@0/40400000.axidma/dma/dma1chan1
Is there any application to access this from user space.
Above method is using kernel drivers.
Other method i tried using memorymapping the base address and trying to access the registers, this also does not work.
Any pointers will be helpful.
Thanks in advance.
Ramprasad