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 108 119,360 09-25-2023, 12:46 AM
Last Post: ChriChri
  setting permissions on gpio baraqiyal 0 1,108 08-16-2022, 11:37 AM
Last Post: baraqiyal
  Support says "regulator" on the SBC burned out; how to fix? dmos 0 911 06-02-2022, 02:20 AM
Last Post: dmos
  No Hardware Interrupts for GPIO pantera 2 4,771 05-08-2021, 10:16 AM
Last Post: Badger
  Using GPIO pins smartdave 12 21,610 02-08-2021, 01:49 PM
Last Post: {-DesT-}
  Camera sensor support on MIPI lines abhimanyu_gr 0 1,713 01-22-2021, 09:23 AM
Last Post: abhimanyu_gr
  USB Type-C Display cable support (for 2 in 1: Video + Power) Paprika88 0 2,399 02-12-2020, 06:47 AM
Last Post: Paprika88
  rockpro64 support in the rockchip uboot dedoz 0 2,179 01-13-2020, 01:51 PM
Last Post: dedoz
  Vulkan support with rockpro64 rahulsharma 2 5,018 08-21-2019, 10:34 PM
Last Post: rahulsharma
  Camera support for linux image in rockpro64 rahulsharma 1 2,998 01-26-2019, 09:48 AM
Last Post: anykey

Forum Jump:


Users browsing this thread: 1 Guest(s)