Hello guys, would love to get your input regarding the SPI interface on Rockpi 4.
I got a bunch of them, mostly As and using them for different projects. Haven’t used SPI up to now tho.
Now I need to use a 2.4 inch SPI display on a 1.4A, that’s got however no SPI flash soldered. Dunno why this how i got them from Allnet.
I’m running Ambian Buster 5.4.32. I’ve enabled spi-spidev overlay. Now it seems to be enabled and showing on port 1, device 0: /dev/spidev1.0 . UART4 isn’t activated.
Went on and did a loop test on GPIO1_B0 with GPIO1_A7 and it seems to communicate.
Did the binding:
MISO isn’t needed for this display.
GPIO1_A7 : SDA (MOSI)
GPIO1_B1 : SCK
GPIO1_B2 : CS (living the CS floating makes no difference )
Bound RESET and A0 in the ST7735 driver on different pins (settled for GPIO4_D2 and GPIO4_D5)
VCC and Backlight to 3.3V and Ground pin.
The ST7735 driver together with the GPIO handling I’ve implemented it in Python and test it on the Display on two other micro-controllers using spidev hardware interface also on 3.3V. There everything works fine, however on the Rockpi i see the GPIO pins for the Command line (A0) and Reset getting exported and set High or Low accordingly for communication with the display. However the display doesn’t seem to be getting anything.
So what am I missing here? Is the SPI1 port activated and running?, dunno how to check that anymore, I’ve run out of ideas. The kernel doesn’t complain about anything SPI related …
The CS pin should also be controlled by the hw right? The other controllers did handled that too.
Is the 1.4 hardware rev i got different regarding the SPI ports layout ? I have’t looked into the rock-pi-4 device tree but if the NOR SPI would be present it would be bound to SPI0 not 1 right?
I have’t tried the SPI2 port since i there is no CS overlay yet.
Hope somebody knows more. Thanks!