SPI with DMA implementation in LInux kernel for s32vxx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI with DMA implementation in LInux kernel for s32vxx

SPI with DMA implementation in LInux kernel for s32vxx

Hi,

I am currently working on SPI with DMA for S32V234.
I have tested SPI code it is working fine. I am tested for SPI1 and chip select 0 and mode 3 it is working fine.

Now i have to implement SPI with DMA code.

Please see the below links i have taken as a reference for s32v234, I made little bit changes in that link source code.
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-February/235598.html
https://www.toradex.com/community/questions/1961/vf61-linux-spi-dma-support.html

1. Can you please suggest which link is suitable for s32v234?

2. How to write dtsi for "spi with dma"? I wrote the below lines, when compiled it's getting error?
     spi1: spi@400C0000 {
                                compatible = "fsl,s32v234-dspi";
                                reg = <0x0 0x400C0000 0x0 0x1000>;
                                interrupts = <0 62 4>;
                                clocks = <&clks S32V234_CLK_SYS6>;
                                clock-names = "dspi";
                                spi-num-chipselects = <4>;
                                bus-num = <1>;
                                spi-cpol;
                                spi-cpha;
                                /* TODO: Update the dma when edma ip is activated*/
                                use-dma;
                                dmas =  <&edma 12>,
                                        <&edma 13>;
                                dma-names = "rx","tx";

                                status = "disabled";
                };
ERROR (phandle_references): Reference to non-existent node or label "edma"

ERROR (phandle_references): Reference to non-existent node or label "edma"

ERROR: Input tree has errors, aborting (use -f to force output)
scripts/Makefile.lib:293: recipe for target 'arch/arm64/boot/dts/freescale/s32v234-evb.dtb' failed
make[2]: *** [arch/arm64/boot/dts/freescale/s32v234-evb.dtb] Error 2
scripts/Makefile.build:403: recipe for target 'arch/arm64/boot/dts/freescale' failed
make[1]: *** [arch/arm64/boot/dts/freescale] Error 2
arch/arm64/Makefile:89: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2

3. Please give do you have any reference code SPI with DMA for S32V234.

I am waiting for your reply.

Thanks & Regards,
Ramanjineyulu.

No ratings
Version history
Last update:
‎10-20-2016 11:41 PM
Updated by: