PINE64
SPI support in GPIO - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: General Discussion on ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=99)
+--- Thread: SPI support in GPIO (/showthread.php?tid=7583)



SPI support in GPIO - mr_rabbit - 06-11-2019

Hi!

I recently bought a RockPro64 with 4GB and would like to control a 1.8 LCD screen with SPI interface using the pins on the GPIO header.

The system is running ayufan's Ubuntu minimal. 

I had success in simple GPIO switching by using the RP64-GPIO library:
https://forum.frank-mankel.org/topic/292/rockpro64-rp64-gpio

However, I was not able to access SPI. I could not find any help or documentation on the internet, not even on the Wiki.

Anyone had success with this?


RE: SPI support in GPIO - ayufan - 07-05-2019

SPI is exposed by default on my builds, as you use also SPI flash.

It is very likely that there's a driver for your LCD screen, but I'm unsure if this is compiled in.


RE: SPI support in GPIO - Wom the Bat - 07-21-2019

(07-05-2019, 02:53 PM)ayufan Wrote: SPI is exposed by default on my builds, as you use also SPI flash.

It is very likely that there's a driver for your LCD screen, but I'm unsure if this is compiled in.

You'd need to create a device tree overlay that describes your device, and hooks up a driver to it.  I don't know how to specify the chip select line (the one on pin 24 of the PI2 bus is already consumed by the SPI flash and should not be used), and have asked in another thread how to do this.