I am using Yocto on a imx8 quad max evaluation board, and I want to add a custom spi module. I have done all the steps described in yocto manual, but when I plug in the board the probe function is not called so when I try to use my driver calling a write I have kernel exception messages (when spi_sync is called) such as "Unable to handle kernel NULL pointer dereference at virtual address". I previously tried this module on a Udoo-neo board (with imx6) and it worked fine.
Do I need to modify my device tree files in order to enable my module to use spi? If yes, how can I modify them?
I read a lot of stuff about dts files but still do not understand how they work.
I am new to Yocto and to kernel drivers.
Thank you in advance for your help!