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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mainline U-Boot with SPI, NVMe and SATA boot support sigmaris 103 44,685 07-08-2021, 04:55 PM
Last Post: Mentaluproar
  No Hardware Interrupts for GPIO pantera 2 1,889 05-08-2021, 10:16 AM
Last Post: Badger
  Using GPIO pins smartdave 12 10,205 02-08-2021, 01:49 PM
Last Post: {-DesT-}
  Camera sensor support on MIPI lines abhimanyu_gr 0 487 01-22-2021, 09:23 AM
Last Post: abhimanyu_gr
  USB Type-C Display cable support (for 2 in 1: Video + Power) Paprika88 0 1,025 02-12-2020, 06:47 AM
Last Post: Paprika88
  rockpro64 support in the rockchip uboot dedoz 0 961 01-13-2020, 01:51 PM
Last Post: dedoz
  Vulkan support with rockpro64 rahulsharma 2 2,376 08-21-2019, 10:34 PM
Last Post: rahulsharma
  Camera support for linux image in rockpro64 rahulsharma 1 1,386 01-26-2019, 09:48 AM
Last Post: anykey
  Review/Advice for new board owner (support,purchase etc) tinkerdan 8 4,046 12-24-2018, 10:07 PM
Last Post: celer
  Query regarding MIPI CSI camera support kafan1986 8 4,795 06-10-2018, 09:55 PM
Last Post: vbb

Forum Jump:


Users browsing this thread: 1 Guest(s)