Milk-V Duo SPI驱动点亮屏幕(st7789)

大佬好,跟着教程做下来屏幕只亮了灯 还是黑屏的
发现新版引脚编号变了 请问怎么修改呀

我现在用tinyDRM通过modeset点亮了ili9341,但是更具体的如开机启动,LVGL这些都还没对接成功。应该需要走simple-drm吧还是?

查看了一下新的sdk,设备树定义的引脚是没有变化,依然可以用哈

在目前的教程里,设备树的引脚配置不需要改动,新版sdk不需要在u-boot-2021.10/board/cvitek/cv180x/board.c里编辑了,在cvi_board_init.c里已经配置好了,请忽略这个步骤

我最近用tinydrm驱动了st7789,配置跟fbtft没有区别,可以正常显示控制台信息的

2 Likes

Just tried with my 3.95inch ILI9488 also, thank you

Were you able to get proper colors with ILI9488? Mine works fine (either with FBTFT or DRM driver) in terminal mode (black and white output), but the colors are totally messed.up:

Have not used much yet, just console output. As i use usb keybaord input but have not connected it up - with the larger display - https://www.youtube.com/watch?v=zAN8VrhhglE

Try adding bgr=<1>; to dts ?

Here are some related issue to this display only supporting 18-bit pxel format ?

and on Raspberry Pi
bgr=0
issue

1 Like

Thank you!

The problem with colors on the ILI9488 muse be caused by byte swapping, i.e. instead of

RGBRGB…

the display receives

GRRBBG…

It looks like the driver decides to swap each two bytes of the screen data before sending over SPI. I hope I will be able to kill the bug soon, and will publish the result.