Hello,
I am build a Linux image using Yocto. I will need to use CAN, SPI and I2C on my device. Using the commands
bitbake -c menuconfig virtual/kernel
and
bitbake -c menuconfig busybox
I have enabled the peripherals. In /usr/sbin I can see I2C commands just as i2cdetect and i2cdump. In /usr/bin I can see CAN commands like cansend or candump.
The CAN interface works well, there was no additional setup required. I started an eclipse project and just went on. I assume it will be the same with I2C. It seems the bitbake process adds CAN and I2C to the device tree.
When it comes to SPI I do not see any SPI commands and I believe I need to setup a custom device tree. My question is, do I need a custom device tree? Can I do all of the initialization in my C code without editing my Yocto build further?
Edit: Looking through my folders I found some dts files. One is attached. There are many references to SPI. I assume this means it is enabled? Do I need to do anything else?