平台:Android12
SOC:RK3568
一般拿到MIPI屏 厂家会给一个跑的配置文件
例如我的:
VDD= 1.8~2.0V
RESET=VDD;
STBYB=VDD;
VGH= 18V
VGL= -6V
AVDD= 9.6V
VCOM= 3.2V(tpy.)
MIPI CLK Speed:340Mbps(170MHZ)
H back porch:160
H front porch:160
H pulse width:10
V back porch:23
V front porch:12
V pulse width:1
MIPI command如下:
//SSD2805_Gen_write(0xB2,0x10);
SSD2805_Gen_write(0x80,0xAC);
SSD2805_Gen_write(0x81,0xB8);
SSD2805_Gen_write(0x82,0x09);
SSD2805_Gen_write(0x83,0x78);
SSD2805_Gen_write(0x84,0x7F);
SSD2805_Gen_write(0x85,0xBB);
SSD2805_Gen_write(0x86,0x70);
SSD2805_Gen_write(0x11,0);
Delayms(200);
SSD2805_Gen_write(0x29,0);
Delayms(20);
那么可以配置设备树
由于我接的是DSI0文章来源:https://www.toymoban.com/news/detail-727047.html
backlight = <&backlight>; 设置背光文章来源地址https://www.toymoban.com/news/detail-727047.html
&dsi0 {
status = "okay";
dsi_panel: panel@0 {
status = "okay&
到了这里,关于RK系列(RK3568) MIPI屏适配 PWM背光 驱动开发的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!