Quantcast
Viewing all articles
Browse latest Browse all 4860

Interfacing (DSI, CSI, I2C, etc.) • Re: SPI display for RPI5 with dtoverlay?

You were able to get a working LCD panel using the tinydrm driver only by editing the source and recompliling the driver into a custom kernel. It showed that by doing this one could get a target LCD to work and kudos for that - - but my objective is to get these two target 320x240 SPI LCD panels (Waveshare SKU18366(ili9341) and SKU27579(st7789) working on mainstream 64bit Bookworm, using a native (unmodified) kernel and with nothing more than adding any necessary dtbo to boot/firmware/overlay (as a modifier to the kernel dtb) and then adding a few lines to config.txt to configure it. And rotation, should it be needed, could perhaps be implemented with xrandr if cli or arandr if desktop.
I'm not using tinydrm driver; never ever used it! I've had a custom driver which was based on mipi-dbi-spi. Once that was proofed working I've started using the standard mipi-dbi-spi .

look at my postings - as said already - here you see two of 'SKU18366' binary based displays running
viewtopic.php?p=2214879&hilit=6+SPI#p2198014 - as well as two more displays.

All this is stock Bookworm, one will have to have a .bin file for the display to be used (that needs to be placed in the correct location) and one needs to add required overlays (plus related dtparam's).

Get the display up&n running, then test how the rotation can be achieved.

below is an example for a ST7789 based display. Check the TCON data sheet for details

Code:

# dts has rotate=0command 0x36 0x00# MIPI_DCS_SET_ADDRESS_MODE# dts has rotate=90 ->  driver converts to:  MADCTL_MX | MADCTL_MV#command 0x36 0x60# MIPI_DCS_SET_ADDRESS_MODE# dts has rotate=180 -> driver converts to:  MADCTL_MX | MADCTL_MY#command 0x36 0xC0# MIPI_DCS_SET_ADDRESS_MODE# dts has rotate=270 -> driver converts to:  MADCTL_MV | MADCTL_MY#command 0x36 0xA0# MIPI_DCS_SET_ADDRESS_MODE
..
I wish I had a better understanding of this but it seems to me that this objective isn't currently possible because the necessary kernel dtb isn't yet merged. I wonder if this Is the missing "panel.bin" the mpip-dbi-spi readme refers to - or have I got this hopelessly wrong!
incorrect! Everything is in place.
also refer to https://github.com/notro/panel-mipi-dbi/wiki for details on the driver, as well as required steps for generating a binary.

Statistics: Posted by aBUGSworstnightmare — Mon Aug 12, 2024 2:11 pm



Viewing all articles
Browse latest Browse all 4860

Trending Articles