Page 1 of 1

NanoPi Duo SPI speed

Posted: Tue Sep 12, 2017 1:08 am
by elecdashtron
I have just received my NanoPi Duo boards and have an issue. I assumed it would be very similar to the Nano Pi Neo Air.
Im having a problem getting the SPI port to work "properly"
The following code
https://github.com/leonyuhanov/SK6812viaSPI/tree/master/NanoPi%20Neo%20Air%20VIA%20SPIDEV
Works perfectly on the Neo Air, its been modified as so:
https://github.com/leonyuhanov/SK6812viaSPI/tree/master/NanoPi%20DUO%20VIA%20SPIDEV
For the DUO with the only change beeing the name of the SPI device from SPIDEV0.0 to SPIDEV1.0

The code compiles and runs, and i can see data moving on the SPI port, but it seems that the speed settings are incorrect...
Both boards have the same processor....what could be the problem?
I am using the NATIVE SPI driver.

Re: NanoPi Duo

Posted: Tue Sep 12, 2017 12:36 pm
by elecdashtron
An update on this.
It seems the speed setting work just fine.
But data is sent out SPIDEV1.0 not in line. There seem to be gaps between transmitions

Re: NanoPi Duo SPI speed

Posted: Thu Sep 14, 2017 12:23 pm
by elecdashtron
Ok i have done some testing and noticed that the SPI speed can only be set in increments of 1Mhz!
SO 3,4,5 etc...?
On The Nano Pi Neo air which runs the H3, i could previously set the speed to anything i wanted like 3.5mhz!
Something in your kernel drivers has changed
Can you advise a resolution