Platform: RK3288
OS: Android 7.1.2
Kernel: v4.4.143
需求:
RK平台点亮MIPI屏,导入MIPI屏的初始化命令;
方法:
在对应的dtsi文件中修改panel-init-sequence数组
附上RK对于命令的介绍
举例说明:
1、命令类型:0x39
样式一:
SSD2828_WritePackageSize(4);
SPI_WriteData(0xFF);
SPI_WriteData(0x98);
SPI_WriteData(0x81);
SPI_WriteData(0x03);样式二:
{0xFF,3,{0x98,0x81,0x03}},//PAGE3样式三:
data_array[0]=0x00043902;
data_array[1]=0x038198FF;
dsi_set_cmdq(data_array,2,1);
如上3种样式都统一导入如下命令
39 00 04 ff 98 81 03
2、命令类型:0x15
样式一:
SSD2828_WritePackageSize(2);
SPI_WriteData(0x01);
SPI_WriteData(0x00);样式二:
{0x01,1,{0x00}},样式三:
data_array[0]=0x00011500;
dsi_set_cmdq(data_array,1,1);
如上3种样式都统一导入如下命令
15 00 02 01 00
3、命令类型:0x05
样式一:
SSD2828_WritePackageSize(2);
SPI_WriteData(0x11); // Sleep Out
Delay(120);样式二:
data_array[0]=0x00110500;
dsi_set_cmdq(data_array,1,1);
MDELAY(120);样式三:
{0x11,0,{0x00}}, //sleep out
{REGFLAG_DELAY, 120, {}},
如上3种样式都统一导入如下命令
05 78 01 11
参考资料:
RK支持文档:Rockchip_Developer_Guide_DRM_Panel_Porting_CN