Hi Experts:
I want SPI to transfer data using DMA, which should be possible to transfer using PDMA according to the AM62X TRM, but I didn't find an example of this.

This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
the McSPI driver in Linux already is using DMA using the DMAEngine framework, see https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/spi/spi-omap2-mcspi.c?h=ti-linux-5.10.y#n375 .
Regards, Andreas
Hi,
Sorry I may not have made it clear, what I want to know is how to configure dts so that the SPI DMA works, I don't know which DMA channel to use, other dts do not seem to have a similar configuration, and the existing DMA configuration does not seem to be PDMA, not sure if it can be used for SPI.
Regards,
Lin yang
Hi Lin,
Sorry I may not have made it clear, what I want to know is how to configure dts so that the SPI DMA works
ah ok I understand. By default the DMA is not enabled/configured for SPI use (as of SDK v8.6, as well as for the current SDK v9.0), so you need to update the DTS file to add DMA support. Please refer to the below E2E post for details and how-to.
Regards, Andreas