SPI as slave from user space in linux

Hi Team,

I’m using a board with an imx8m plus CPU called a humming board pulse (controller). My controller will be used as an SPI slave. Tell me about any Linux user space APIs that I may use to use my controller as a slave, please.

Thanks & Regards,

Kartheek

Historically userspace access to spi devices in the kernel were handles by the spidev interface. This is still available but deprecated, however some of our customers continue to use this. I would recommend you look into that, additional documentation regarding using SPI in linux user-space can be referenced here, Overview of Linux kernel SPI support — The Linux Kernel documentation