d1_build icon indicating copy to clipboard operation
d1_build copied to clipboard

Enable the Sitronix ST7789V screen

Open tmolteno opened this issue 2 years ago • 3 comments

The Lichee RV comes with an optional 1.14" 135×240 SPI LCD screen. This bug report is for the necessary steps to get this going and build a small debian image for it.

  • [ ] Create a new target board 'lichee_rv_lcd'
  • [x] Add a section to the device tree. The display is SPI connected. There is some information here. Even more here thanks Daniel
  • [ ] make board specific uboot overlays for each.
  • [ ] Actually use the panel-mipi-dbi-spi driver from (https://github.com/notro/panel-mipi-dbi/wiki)
  • [ ] Test and Debug

Notes:

  • https://www.kernel.org/doc/html/latest/devicetree/overlay-notes.html

tmolteno avatar May 25 '22 03:05 tmolteno

Since the panel is optional, it cannot be included in the devicetree that is merged upstream. So at that point, enabling the panel will need to be done via a devicetree overlay. I recommend doing that to begin with.

After enabling CONFIG_OF_LIBFDT_OVERLAY in U-Boot, you can use the fdt apply command from the boot script to apply the overlay.

smaeul avatar May 26 '22 05:05 smaeul

From the o-boot documentation...

here are two ways to apply overlays in U-Boot.

  • Include and define overlays within a FIT image and have overlays automatically applied.
  • Manually do all the work.

doc/uImage.FIT/overlay-fdt-boot.txt

tmolteno avatar Jun 01 '22 02:06 tmolteno

Any update on this?

gavan1 avatar Sep 24 '23 20:09 gavan1