Bananian
banana Pro SPI is not work
4
2531
View: 2531|Reply: 4
|
[Bananian]
banana Pro SPI is not work
[Copy link]
|
|
I use "sudo modprobe spi-sun7i" to load spi. and I get /dev/spidev0.0 and /dev/spi0.1
but SPI PIN has nothing when i am using " echo 111 > /dev/spidev0.0"
Does the SPI working on Banana Pro ? |
|
|
|
|
|
|
|
SPI works. I am using one display with Banana M1 which is not that much different:
You can see it in action, scroll down to the end:
http://www.armbian.com/banana-pi/
SPI functionality can be checked with SPIDEV test (google it). |
|
|
|
|
|
|
|
I am using banana Pro. The Linux version:
root@bananapi / # uname -a
Linux bananapi 3.4.108-bananian #2 SMP PREEMPT Thu Aug 13 06:08:25 UTC 2015 armv7l GNU/Linux
But you Legacy kernel is 3.4.110.
I will try your img.
Thanks!
|
|
|
|
|
|
|
|
SPI still can not workI got spidev.c and compile it .
./spidev -D /dev/spidev0.0
and got this:
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)
can't send spi message: Invalid argument
Aborted
root@bananapipro:~/dev# uname -a
Linux bananapipro 3.4.110-sun7i #12 SMP PREEMPT Tue Mar 1 08:39:29 CET 2016 armv7l GNU/Linux
Are you used the spi in GPIO CONN (Pin19 ,pin21,pin23,pin24)?
|
|
|
|
|
|
|
|
There are few things which could be problematic - fex settings for Banana PRO. I don't know if SPI is properly enabled - you need to double check pin numbers. spi0 pins looks that they are on the same place on 40pin header.
This famous spi_dev tests has to be taken from the kernel source https://github.com/linux-sunxi/linux-sunxi ... and SPI might work even this tests failed. I experienced that too. |
|
|
|
|
|
|