Power & Source of Big Ideas

NanoPi Duo SPI speed

Moderators: chensy, FATechsupport

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.
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
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

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 102 on Mon Oct 08, 2018 12:42 pm

Users browsing this forum: No registered users and 1 guest