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
Works perfectly on the Neo Air, its been modified as so:
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 are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 4 guests