We used spi on a banana pi to interface with a sensor module. I used spidev there, and needed to load spi-sun7i.ko module. Everything worked there. See spidev examples for banana pi.
I want to switch to nanopi neo air and port the application that interfaces with spi. I had difficulties. First, I did not find spi-sun7i.ko in the kernel, although I can see /dev/spidev0.0 . I installed WiringNP on my nanopi neo air board, and looked at some examples there. One example requires you run "gpio load spi", and that returns "can't find spi-sun7i.." . I compiled some simple spi test code following the examples and run without spi-sun7i, and failed to get correct result.
Please help and let me know how I can communicate with nanopi spi. Greatly appreciated.
I want to switch to nanopi neo air and port the application that interfaces with spi. I had difficulties. First, I did not find spi-sun7i.ko in the kernel, although I can see /dev/spidev0.0 . I installed WiringNP on my nanopi neo air board, and looked at some examples there. One example requires you run "gpio load spi", and that returns "can't find spi-sun7i.." . I compiled some simple spi test code following the examples and run without spi-sun7i, and failed to get correct result.
Please help and let me know how I can communicate with nanopi spi. Greatly appreciated.