I am working on an imx8 nano dev board, I built a Linux image following the "i.MX Yocto Project User's Guide" the image is working fine but I cannot see spi under /dev/. Please help me with enabling SPI.
Are you working with an NXP EVK?
If yes, and you're using default device tree there is no eCSPI node enabled, so you'll need to create your own eCSPI node.
You'll find this useful as well: