I want to use SPI port of BPI-R2. I saw wiringPi support for BPI-M2 kernel. Is the kernel compatible with BPI-R2? How Can I use the Spi on BPI-R2 with C++ Spidev. I mean How can I install or enable SPI driver on DPI-R2? Is there anybody have an idea?
non-bpi-r2-kernel does not work on bpi-r2 because its a different SOC
default kernel do not have spi-support afaik. you can try to build your own and test it…
you need the SPI-Module and the dts-nodes for SPI enabled. you can try it with my 4.14 kernel, SPI-module is enabled, you have to activate the SPI-Node(s) in bananapi-r2.dts and build again
Where can I find your kernel 4.14 for BPI-R2? As I understand, If I load the your kernel 4.14 to my BPI_R2, The SPI module will be enabled on this kernel and I will see the /dev/spidev0.0 on userspace. Am I right?
I use kernel 4.4.xx . Also, I activated the device -> driver->SPI support from kernel menuconfig. I compiled the kernel gcc-arm-linux-gnueabihf-6. It compiled succesfully. gcc-7 gives errors.
I still don’t see spidev0 or spidev1 driver in /dev directory.
Which one of the device driver Should I activate from ./build.sh option 4 for spidev?