menuconfig 配置
使能显示模块驱动
Board options ---> [*] Using Display Engine (DE) Display Parameter --->
选择显示接口
Board options ---> [*] Using Display Engine (DE) Display Parameter ---> select Display interface (Display LVDS interface) --->
Panel 配置
Luban-Lite SDK 不仅为 RGB/LVDS 等显示接口提供了通用的 panel 驱动,也为部分屏驱 IC 提供专用 panel 驱动。
Board options ---> [*] Using Display Engine (DE) Display Parameter ---> Display Panels --->
ArtInChip simple panel
支持 menuconfig
修改屏时序参数。Display Panels ---> ArtInChip Panel Drivers (ArtInChip simple panel) ---> display timing of simple panel --->
背光配置
Board options --->
[*] Using Display Engine (DE)
Display Parameter --->
panel backlight control (gpio) --->
(PE.19) panel backlight enable pin
[ ] panel backlight enable pin low active
PWM 配置。
打开 menuconfig 配置界面,使能 PWM,选择 PWM 方式控制背光,配置 PWM 的通道和默认占空比 [0, 100]
-
使能 PWM
Board options ---> [*] Using PWM3
-
使能 pwm-backlight
Board options ---> [*] Using Display Engine (DE) Display Parameter ---> panel backlight control (pwm) ---> (3) pwm backlight channel (80) default brightness level
显示引擎配置
Board options ---> [*] Using Display Engine (DE) Display Parameter ---> select framebuffer format (argb8888) ---> [*] Support double framebuffer [*] Enable Display Dither
-
framebuffer format
: framebuffer 的数据格式,默认 ARGB8888 32 位。 -
double framebuffer
: 双 buffer 可避免屏幕撕裂,获得更好的显示效果。 -
Display Dither
: 抖色,误差扩散,能让图像色彩渐变更平滑。Display Dither 生效条件:
-
屏幕宽度小于显示引擎最大支持宽度,具体规格参考芯片手册
-
framebuffer bpp(bits per pixel) 大于显示接口输出的 bpp,例如 framebuffer 为 24/32 位 RGB 数据,显示接口输出 16/18 位 RGB 数据
-
显示接口配置
-
选择 RGB 显示接口
Board options ---> [*] Using Display Engine (DE) Display Parameter ---> select Display interface (Display RGB interface) ---> RGB interface options --->
-
RGB 显示接口参数配置
RGB interface options ---> rgb mode (PRGB) ---> interface format (PRGB 16 BIT LD) ---> data order (RGB) ---> clock phase select(0 degree) --->
-
rgb mode:支持并行 RRGB 和串行 SRGB 两种模式
-
interface format:接口的输出格式
interface format - RRGB 24 BIT RGB 24 位输出 RRGB 18 BIT LD RGB 18 位输出,丢弃低 6 个 pin RRGB 18 BIT HD RGB 18 位输出,丢弃高 6 个 pin RRGB 16 BIT LD RGB 16 位输出,丢弃低 8 个 pin RRGB 16 BIT HD RGB 16 位输出,丢弃高 8 个 pin -
data order:R/G/B 分量输出顺序
data order - RGB 数据输出顺序为 RGB RBG 数据输出顺序为 RBG BGR 数据输出顺序为 BGR BRG 数据输出顺序为 BRG GRB 数据输出顺序为 GRB GBR 数据输出顺序为 GBR -
clock phase select:pixelclk 时钟相位选择,提供四种相位,允许时钟上升沿延后数据 0/90/180/270 度相位
时钟相位有误会导致图像存在斑点,在颜色渐变区域尤为明显。逐一尝试时钟相位,找出最佳效果。
-
data mirror:RGB 数据组内大小端输出。默认输出低位到高位 0 - 7。如果设置则输出变为 7 - 0
-
-
选择 LVDS 显示接口
Board options ---> [*] Using Display Engine (DE) Display Parameter ---> select Display interface (Display LVDS interface) ---> LVDS interface options --->
-
LVDS 显示接口参数配置
LVDS interface options ---> lvds mode (vesa-24) ---> lvds link mode (single link 1) --->
-
lvds mode:LVDS 模式设置,默认输出为 vesa-24 模式
lvds mode strings NS “vesa-24” JEIDA 8 bit “jeida-24” JEIDA 6 bit “jeida-18” - lvds link mode:LVDS Link 设置,默认配置 single link1
,单 link 输出,link1 通道。
lvds link mode strings 备注 单 link 模式 0 “single-link0” 单 link 输出,输出选择 link0 通道 单 link 模式 1 “single-link1” 单 link 输出,输出选择 link1 通道 单 link 模式 2 “double-screen” 单 link 输出,link0 和 link1 同时输出,可驱动双屏同显 双 link 模式 “dual-link” dual link 输出,奇偶像素同时输出
-
MIPI-DSI 接口
每一款 mipi 屏幕的参数都不尽相同,推荐在 panel 驱动中使用 hardcode 的形式进行配置。
ArtInChip 平台不支持 menuconfig 配置 MIPI-DSI 参数。
ArtInChip 平台不支持 menuconfig 配置 MIPI-DBI 参数,推荐在 panel 驱动中使用 hardcode。