SPI support in GPIO
#1
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...-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?
  Reply
#2
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.
Homepage: https://ayufan.eu

Releases:
Rock/Pro 64/Pinebook Pro: LinuxChromium OS
So/Pine A64/Pinebook: LinuxAndroid 6.0Android 7.1

Buy me a Beer
  Reply
#3
(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.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Vulkan support with rockpro64 rahulsharma 2 278 08-21-2019, 10:34 PM
Last Post: rahulsharma
  Camera support for linux image in rockpro64 rahulsharma 1 373 01-26-2019, 09:48 AM
Last Post: anykey
  Review/Advice for new board owner (support,purchase etc) tinkerdan 8 956 12-24-2018, 10:07 PM
Last Post: celer
  No Hardware Interrupts for GPIO pantera 0 235 10-24-2018, 05:09 AM
Last Post: pantera
  Using GPIO pins smartdave 11 2,916 10-03-2018, 12:46 PM
Last Post: Bullet64
  Query regarding MIPI CSI camera support kafan1986 8 1,262 06-10-2018, 09:55 PM
Last Post: vbb
  Support for Windows IoT Core? Ben Hayat 3 1,093 06-07-2018, 12:17 AM
Last Post: dkryder

Forum Jump:


Users browsing this thread: 1 Guest(s)