Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

Interfacing (DSI, CSI, I2C, etc.) • Re: Small TFT based on ILI9341 ST7789 - how to use

$
0
0
For people with the red PCB LCD with ili9486 and ili9488 (with touch ads7846 or xpt2040) like:

http://www.lcdwiki.com/4.0inch_SPI_Module_ILI9486
http://www.lcdwiki.com/3.5inch_SPI_Modu ... %3AMSP3520
https://www.aliexpress.us/item/3256805605201245.html

You will need a DTS that will command the driver panel-mipi-dbi-spi to send pixels in RGB666 format. I made a DTS for people to give it a try:

Instructions:
* download the zip file in this post
* copy the 4in.bin into /lib/firmware
* copy the dtbo to /boot/firmware/overlays
* edit the config.txt following the example config.txt last section:
*change mipi-dbi-spi-overlay to mipi-dbi-spi-format-parameter
* add dtparam=format=b6x2g6x2r6x2

This was only tested in Raspberry Pi 3b. I don't know if other Pis owners will need to recompile the DTS

This DTS is meant to be universal, with an override DT parameter. If you don't need the "format=b6x2g6x2r6x2" directive, just don't add it in the config file and it will be the same as the original DTS.
raspberry-mipi-dbi-spi-format.zip

raspberry-ili9488.jpeg

Statistics: Posted by robertojguerra — Sat Jul 05, 2025 7:09 am



Viewing all articles
Browse latest Browse all 8374

Trending Articles