Spi in verdin imx8m mini

Hello Toradex,

Now , we are struggling to use SPI protocol for [Verdin iMX8M Mini Quad 2GB IT] in Linux . We have found SPI driver code from workdir/linux-toradex/drivers/spi/spi-imx.c . is it correct to use? if you will provide any sample code and procedure to use it in our application, it would be great help for us.

My ticket number for this request is: Ticket#2022101310000058

1 Like

Hi @Hemangi,

Can you please confirm if SPI working for you now. If not kindly share all the steps you are trying in order to get SPI communication running.
Please note you do not need to include any driver, spi device should be available in /dev, you can check using below command

ls -l /dev/verdin-spi*

To access spi from userspace application please go through below example

Let me know if you have any queries.
Best Regards
Ritesh Kumar

1 Like


Right now , I don’t have hardware handy so i will check and update you soon but yes I have referred your example and commands which seems useful for my requirement and with using it , SPI communication should work. when I get my hardware, i will inform you for sure.

Thank you so much for support.