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
  Mainline U-Boot with SPI, NVMe and SATA boot support sigmaris 75 31,411 04-16-2021, 02:20 AM
Last Post: LMM
  Using GPIO pins smartdave 12 8,221 02-08-2021, 01:49 PM
Last Post: {-DesT-}
  Camera sensor support on MIPI lines abhimanyu_gr 0 260 01-22-2021, 09:23 AM
Last Post: abhimanyu_gr
  No Hardware Interrupts for GPIO pantera 1 1,311 09-10-2020, 12:38 AM
Last Post: fmotsch
  USB Type-C Display cable support (for 2 in 1: Video + Power) Paprika88 0 797 02-12-2020, 06:47 AM
Last Post: Paprika88
  rockpro64 support in the rockchip uboot dedoz 0 761 01-13-2020, 01:51 PM
Last Post: dedoz
  Vulkan support with rockpro64 rahulsharma 2 1,864 08-21-2019, 10:34 PM
Last Post: rahulsharma
  Camera support for linux image in rockpro64 rahulsharma 1 1,143 01-26-2019, 09:48 AM
Last Post: anykey
  Review/Advice for new board owner (support,purchase etc) tinkerdan 8 3,254 12-24-2018, 10:07 PM
Last Post: celer
  Query regarding MIPI CSI camera support kafan1986 8 3,862 06-10-2018, 09:55 PM
Last Post: vbb

Forum Jump:


Users browsing this thread: 1 Guest(s)