RK3588-MIPI屏幕調(diào)試筆記:RK3588-MIPI-DSI之LCD上電初始化時(shí)序-世界快播

2023-06-11 14:14:46 來(lái)源:jf_30051736

打印 放大 縮小


(資料圖片僅供參考)

一. 簡(jiǎn)介

mipi屏調(diào)試一般都要在RK平臺(tái)的dts中配置屏幕上電初始化時(shí)序 :panel-init-sequence和下電初始化時(shí)序:panel-exit-sequence。本文講解如何配置屏幕的這些初始化時(shí)序。專欄總目錄

二. 數(shù)據(jù)類型:Data Type

2.1 常見(jiàn)數(shù)據(jù)類型 1 :DCS Write

注意:這里的parameter并不是指數(shù)據(jù)字節(jié)個(gè)數(shù)

0x05 命令類型: 單字節(jié)數(shù)據(jù)    (DCS Short Write, no parameters)0x15 命令類型: 雙字節(jié)數(shù)據(jù)    (DCS Short Write, 1 parameter)0x39 命令類型: 多字節(jié)數(shù)據(jù)    (DCS Long Write, n parameters n > 2)

0x05 命令類型:(DCS Short Write, no parameters)

05 95 01 1105 95 01 29

0x15 命令類型:(DCS Short Write, 1 parameter)

15 00 02 80 77|  |  | |  ||  |  | |  數(shù)據(jù)|  |  | | 寄存器地址|  |  數(shù)據(jù)長(zhǎng)度|  延時(shí)命令類型(0x05: 單字節(jié)數(shù)據(jù) 0x15: 雙字節(jié)數(shù)據(jù) 0x39: 多字節(jié)數(shù)據(jù))解析:Data Type:0x15       ( 0x15格式的數(shù)據(jù)類型 DCS Short Write, 1 parameter)Delay:0x00           ( 延時(shí),表示當(dāng)前 Packet 發(fā)送完成之后,需要延時(shí)多少 ms,再開(kāi)始發(fā)送下一條命令 )PayloadLength:0x02  ( Packet 的有效負(fù)載長(zhǎng)度為2 Bytes,數(shù)據(jù)字節(jié)個(gè)數(shù)為2 )Payload: 0x80 0x77    ( Payload 數(shù)據(jù) )

0x39 命令類型是帶多個(gè)參數(shù),大于兩個(gè)參數(shù) (DCS Long Write / write_LUT Command Packet)

39 00 06 FF 77 01 00 00 1039 00 03 C0 63 0039 00 03 C1 11 02

2.2 常見(jiàn)數(shù)據(jù)類型 2 :Generic Write

注意:這里的parameter并不是指數(shù)據(jù)字節(jié)個(gè)數(shù)

0x03 命令類型:  單字節(jié)數(shù)據(jù) (Generic Short Write, no parameters)0x13 命令類型:  雙字節(jié)數(shù)據(jù) (Generic Short Write, 1 parameter)0x23 命令類型:  三字節(jié)數(shù)據(jù) (Generic Short Write, 2 parameters)0x29 命令類型:  多字節(jié)數(shù)據(jù) (Generic Long Write, n parameters n > 2)

三. RK平臺(tái)上電初始化時(shí)序配置

屏廠給的MIPI屏初始化代碼:

params- >dsi.vertical_sync_active=2params- >dsi.vertical_backporch=10params- >dsi.vertical_frontporch=14params- >dsi.horizontal_sync_active=24params- >dsi.horizontal_backporch=80params- >dsi.horizontal_frontporch=60params- >dsi.PLL_CLOCK=478 LCD_nReset=1;Delayms(5);LCD_nReset=0;Delayms(20);//10LCD_nReset=1;Delayms(200);//120Generic_Short_Write_1P(0xB0,0x01);Generic_Short_Write_1P(0xC0,0x26);Generic_Short_Write_1P(0xC1,0x10);Generic_Short_Write_1P(0xC2,0x0E);Generic_Short_Write_1P(0xC3,0x00);Generic_Short_Write_1P(0xC4,0x00);Generic_Short_Write_1P(0xC5,0x23);Generic_Short_Write_1P(0xC6,0x11);Generic_Short_Write_1P(0xC7,0x22);Generic_Short_Write_1P(0xC8,0x20);Generic_Short_Write_1P(0xC9,0x1E);Generic_Short_Write_1P(0xCA,0x1C);Generic_Short_Write_1P(0xCB,0x0C);Generic_Short_Write_1P(0xCC,0x0A);Generic_Short_Write_1P(0xCD,0x08);Generic_Short_Write_1P(0xCE,0x06);Generic_Short_Write_1P(0xCF,0x18);Generic_Short_Write_1P(0xD0,0x02);Generic_Short_Write_1P(0xD1,0x00);Generic_Short_Write_1P(0xD2,0x00);Generic_Short_Write_1P(0xD3,0x00);Generic_Short_Write_1P(0xD4,0x26);Generic_Short_Write_1P(0xD5,0x0F);Generic_Short_Write_1P(0xD6,0x0D);Generic_Short_Write_1P(0xD7,0x00);Generic_Short_Write_1P(0xD8,0x00);Generic_Short_Write_1P(0xD9,0x23);Generic_Short_Write_1P(0xDA,0x11);Generic_Short_Write_1P(0xDB,0x21);Generic_Short_Write_1P(0xDC,0x1F);Generic_Short_Write_1P(0xDD,0x1D);Generic_Short_Write_1P(0xDE,0x1B);Generic_Short_Write_1P(0xDF,0x0B);Generic_Short_Write_1P(0xE0,0x09);Generic_Short_Write_1P(0xE1,0x07);Generic_Short_Write_1P(0xE2,0x05);Generic_Short_Write_1P(0xE3,0x17);Generic_Short_Write_1P(0xE4,0x01);Generic_Short_Write_1P(0xE5,0x00);Generic_Short_Write_1P(0xE6,0x00);Generic_Short_Write_1P(0xE7,0x00);Generic_Short_Write_1P(0xB0,0x03);Generic_Short_Write_1P(0xBE,0x04);Generic_Short_Write_1P(0xB9,0x40);Generic_Short_Write_1P(0xCC,0x88);Generic_Short_Write_1P(0xC8,0x0C);Generic_Short_Write_1P(0xC9,0x07);Generic_Short_Write_1P(0xCD,0x01);Generic_Short_Write_1P(0xCA,0x40);Generic_Short_Write_1P(0xCE,0x1A);Generic_Short_Write_1P(0xCF,0x60);Generic_Short_Write_1P(0xD2,0x08);Generic_Short_Write_1P(0xD3,0x08);Generic_Short_Write_1P(0xDB,0x01);Generic_Short_Write_1P(0xD9,0x06);Generic_Short_Write_1P(0xD4,0x00);Generic_Short_Write_1P(0xD5,0x01);Generic_Short_Write_1P(0xD6,0x04);Generic_Short_Write_1P(0xD7,0x03);Generic_Short_Write_1P(0xC2,0x00);Generic_Short_Write_1P(0xC3,0x0E);Generic_Short_Write_1P(0xC4,0x00);Generic_Short_Write_1P(0xC5,0x0E);Generic_Short_Write_1P(0xDD,0x00);Generic_Short_Write_1P(0xDE,0x0E);Generic_Short_Write_1P(0xE6,0x00);Generic_Short_Write_1P(0xE7,0x0E);Generic_Short_Write_1P(0xC2,0x00);Generic_Short_Write_1P(0xC3,0x0E);Generic_Short_Write_1P(0xC4,0x00);Generic_Short_Write_1P(0xC5,0x0E);Generic_Short_Write_1P(0xDD,0x00);Generic_Short_Write_1P(0xDE,0x0E);Generic_Short_Write_1P(0xE6,0x00);Generic_Short_Write_1P(0xE7,0x0E);Generic_Short_Write_1P(0xB0,0x06);Generic_Short_Write_1P(0xC0,0xA5);Generic_Short_Write_1P(0xD5,0x1C);Generic_Short_Write_1P(0xC0,0x00);Generic_Short_Write_1P(0xB0,0x00);Generic_Short_Write_1P(0xBD,0x30);//VCOM  37Generic_Short_Write_1P(0xF9,0x5C);Generic_Short_Write_1P(0xC2,0x14);Generic_Short_Write_1P(0xC4,0x14);Generic_Short_Write_1P(0xBF,0x15);Generic_Short_Write_1P(0xC0,0x0C);Generic_Short_Write_1P(0xB0,0x00);Generic_Short_Write_1P(0xB1,0x79);Generic_Short_Write_1P(0xBA,0x8F);//     DCS_Short_Write_NP(0x11);     Delay(200);     DCS_Short_Write_NP(0x29);     Delay(50);

3.1 分析客戶給的mipi屏初始化代碼:

Generic_Short_Write_1P(0xBA,0x8F);Generic_Short_Write_1P表示:發(fā)送Generic命令,帶1個(gè)參數(shù),數(shù)據(jù)字節(jié)個(gè)數(shù)為2(Generic Short Write, 1 parameter)0xBA:寄存器地址0x8F:數(shù)據(jù)1為0x8F
在DTS上轉(zhuǎn)成RK上的mipi屏初始化格式
13 00 02 BA 8F解析:13 表示0x13數(shù)據(jù)類型的指令00 表示沒(méi)有延時(shí)02 表示兩個(gè)數(shù)據(jù)長(zhǎng)度 :0xBA,0x8FBA 表示寄存器地址0xBA8F 表示0x8F這個(gè)數(shù)據(jù)
分析客戶給的mipi屏初始化代碼:
DCS_Short_Write_NP(0x11); Delay(200); DCS_Short_Write_NP(0x29); Delay(50);  解析: DCS_Short_Write_NP表示:只發(fā)送DCS命令,不帶參數(shù),數(shù)據(jù)字節(jié)個(gè)數(shù)為1。(DCS Short Write, no parameters) 0x11:數(shù)據(jù)1為0x11 Delay(200):延遲為200
在DTS上轉(zhuǎn)成RK上的mipi屏初始化格式
05 C8 01 1105 32 01 29解析:05 表示0x05數(shù)據(jù)類型的指令C8 表示延時(shí)為200 轉(zhuǎn)換成16進(jìn)制為0xC801 表示1個(gè)數(shù)據(jù)長(zhǎng)度 :0x1111 表示數(shù)據(jù):0x11

3.2 將屏廠的初始化代碼轉(zhuǎn)換成RK平臺(tái)的屏幕上電初始化時(shí)序DTS配置:

panel-init-sequence = [13 00 02 B0 0113 00 02 C0 2613 00 02 C1 1013 00 02 C2 0E13 00 02 C3 0013 00 02 C4 0013 00 02 C5 2313 00 02 C6 1113 00 02 C7 2213 00 02 C8 2013 00 02 C9 1E13 00 02 CA 1C13 00 02 CB 0C13 00 02 CC 0A13 00 02 CD 0813 00 02 CE 0613 00 02 CF 1813 00 02 D0 0213 00 02 D1 0013 00 02 D2 0013 00 02 D3 0013 00 02 D4 2613 00 02 D5 0F13 00 02 D6 0D13 00 02 D7 0013 00 02 D8 0013 00 02 D9 2313 00 02 DA 1113 00 02 DB 2113 00 02 DC 1F13 00 02 DD 1D13 00 02 DE 1B13 00 02 DF 0B13 00 02 E0 0913 00 02 E1 0713 00 02 E2 0513 00 02 E3 1713 00 02 E4 0113 00 02 E5 0013 00 02 E6 0013 00 02 E7 0013 00 02 B0 0313 00 02 BE 0413 00 02 B9 4013 00 02 CC 8813 00 02 C8 0C13 00 02 C9 0713 00 02 CD 0113 00 02 CA 4013 00 02 CE 1A13 00 02 CF 6013 00 02 D2 0813 00 02 D3 0813 00 02 DB 0113 00 02 D9 0613 00 02 D4 0013 00 02 D5 0113 00 02 D6 0413 00 02 D7 0313 00 02 C2 0013 00 02 C3 0E13 00 02 C4 0013 00 02 C5 0E13 00 02 DD 0013 00 02 DE 0E13 00 02 E6 0013 00 02 E7 0E13 00 02 C2 0013 00 02 C3 0E13 00 02 C4 0013 00 02 C5 0E13 00 02 DD 0013 00 02 DE 0E13 00 02 E6 0013 00 02 E7 0E13 00 02 B0 0613 00 02 C0 A513 00 02 D5 1C13 00 02 C0 0013 00 02 B0 0013 00 02 BD 3013 00 02 F9 5C13 00 02 C2 1413 00 02 C4 1413 00 02 BF 1513 00 02 C0 0C13 00 02 B0 0013 00 02 B1 7913 00 02 BA 8F05 C8 01 1105 32 01 29];panel-exit-sequence = [05 00 01 2805 00 01 10];

審核編輯:湯梓紅

關(guān)鍵詞:

責(zé)任編輯:ERM523

相關(guān)閱讀

主站蜘蛛池模板: 国产aⅴ无码专区亚洲av| www.久久99| 你懂的中文字幕| 日本人视频jizz页码69| 伊人久久大香线蕉亚洲| 人与禽交免费网站视频| 尤物网站在线播放| 亚洲乱码卡一卡二卡三| 综合久久久久久久综合网| 无码人妻丰满熟妇区bbbbxxxx| 人人妻人人澡人人爽欧美一区| 麻豆国产在线观看免费| 女班长的放荡日记高h| 久草视频在线网| 男生和女生污污的视频| 国产女同志videos| 99国产欧美久久久精品| 日韩精品一区二区三区视频| 免费网站看av片| 好吊色永久免费视频大全| 婷婷免费高清视频在线观看| 五月天色婷婷丁香| 男高中生大粗吊gvlive| 国产AV无码专区亚洲AV麻豆| 香港aa三级久久三级老师| 国语对白avxxxooo| 久久久久久久97| 欧美性巨大欧美| 午夜老司机在线观看免费| 免费观看无遮挡www的视频| 婷婷久久五月天| 中文免费观看视频网站| 最近免费韩国电影hd视频 | 中文japanese在线播放| 日本一卡2卡3卡4卡三卡视频| 亚洲欧美日韩国产vr在线观| 老师xxxx69动漫| 国产精品k频道在线看| t66y最新地址一地址二地址三| 日本护士撒尿xxxx18| 亚洲日韩中文字幕无码一区|