I’m trying to access the SPI port of a Colibri iMX7 module while running Torizon, but I’m struggling to get started. I just need to be able to open the port, set the chip select then clock a few bytes in and out.
Inside the container running on Torizon I can see a device called spi2 in /sys/class/spi_master, but I don’t know how to access this device. There are no SPI devices visible in the /dev folder.
Is one SPI port enabled by default in the device tree? Do I need to create a driver for my SPI device or can I just read and write bytes directly to it from C code, like I could in Windows CE?