色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

RK3588-MIPI屏幕調試筆記:RK3588-MIPI-DSI之LCD上電初始化時序

jf_30051736 ? 來源:jf_30051736 ? 作者:jf_30051736 ? 2023-06-10 10:32 ? 次閱讀

一. 簡介

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

二. 數據類型:Data Type

2.1 常見數據類型 1 :DCS Write

注意:這里的parameter并不是指數據字節個數

0x05 命令類型: 單字節數據    (DCS Short Write, no parameters)
0x15 命令類型: 雙字節數據    (DCS Short Write, 1 parameter)


0x39 命令類型: 多字節數據    (DCS Long Write, n parameters n > 2)

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

05 95 01 11
05 95 01 29

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

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

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

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

2.2 常見數據類型 2 :Generic Write

注意:這里的parameter并不是指數據字節個數

0x03 命令類型:  單字節數據 (Generic Short Write, no parameters)
0x13 命令類型:  雙字節數據 (Generic Short Write, 1 parameter)


0x23 命令類型:  三字節數據 (Generic Short Write, 2 parameters)


0x29 命令類型:  多字節數據 (Generic Long Write, n parameters n > 2)

三. RK平臺上電初始化時序配置

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

params- >dsi.vertical_sync_active=2
params- >dsi.vertical_backporch=10
params- >dsi.vertical_frontporch=14
params- >dsi.horizontal_sync_active=24
params- >dsi.horizontal_backporch=80
params- >dsi.horizontal_frontporch=60
params- >dsi.PLL_CLOCK=478
 
LCD_nReset=1;
Delayms(5);
LCD_nReset=0;
Delayms(20);//10
LCD_nReset=1;
Delayms(200);//120

Generic_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	  37
	
Generic_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表示:發送Generic命令,帶1個參數,數據字節個數為2(Generic Short Write, 1 parameter)
0xBA:寄存器地址
0x8F:數據1為0x8F
  • 在DTS上轉成RK上的mipi屏初始化格式
13 00 02 BA 8F

解析:
13 表示0x13數據類型的指令
00 表示沒有延時
02 表示兩個數據長度 :0xBA,0x8F
BA 表示寄存器地址0xBA
8F 表示0x8F這個數據
  • 分析客戶給的mipi屏初始化代碼:
DCS_Short_Write_NP(0x11);	
 Delay(200);
 DCS_Short_Write_NP(0x29);
 Delay(50);
 
 解析:
 DCS_Short_Write_NP表示:只發送DCS命令,不帶參數,數據字節個數為1。(DCS Short Write, no parameters)
 0x11:數據1為0x11
 Delay(200):延遲為200
  • 在DTS上轉成RK上的mipi屏初始化格式
05 C8 01 11
05 32 01 29

解析:
05 表示0x05數據類型的指令
C8 表示延時為200 轉換成16進制為0xC8
01 表示1個數據長度 :0x11
11 表示數據:0x11

3.2 將屏廠的初始化代碼轉換成RK平臺的屏幕上電初始化時序DTS配置:

panel-init-sequence = [
			13 00 02 B0 01
			13 00 02 C0 26
			13 00 02 C1 10
			13 00 02 C2 0E
			13 00 02 C3 00
			13 00 02 C4 00
			13 00 02 C5 23
			13 00 02 C6 11
			13 00 02 C7 22
			13 00 02 C8 20
			13 00 02 C9 1E
			13 00 02 CA 1C
			13 00 02 CB 0C
			13 00 02 CC 0A
			13 00 02 CD 08
			13 00 02 CE 06
			13 00 02 CF 18
			13 00 02 D0 02
			13 00 02 D1 00
			13 00 02 D2 00
			13 00 02 D3 00
			13 00 02 D4 26
			13 00 02 D5 0F
			13 00 02 D6 0D
			13 00 02 D7 00
			13 00 02 D8 00
			13 00 02 D9 23
			13 00 02 DA 11
			13 00 02 DB 21
			13 00 02 DC 1F
			13 00 02 DD 1D
			13 00 02 DE 1B
			13 00 02 DF 0B
			13 00 02 E0 09
			13 00 02 E1 07
			13 00 02 E2 05
			13 00 02 E3 17
			13 00 02 E4 01
			13 00 02 E5 00
			13 00 02 E6 00
			13 00 02 E7 00
			13 00 02 B0 03
			13 00 02 BE 04
			13 00 02 B9 40
			13 00 02 CC 88
			13 00 02 C8 0C
			13 00 02 C9 07
			13 00 02 CD 01
			13 00 02 CA 40
			13 00 02 CE 1A
			13 00 02 CF 60
			13 00 02 D2 08
			13 00 02 D3 08
			13 00 02 DB 01
			13 00 02 D9 06
			13 00 02 D4 00
			13 00 02 D5 01
			13 00 02 D6 04
			13 00 02 D7 03
			13 00 02 C2 00
			13 00 02 C3 0E
			13 00 02 C4 00
			13 00 02 C5 0E
			13 00 02 DD 00
			13 00 02 DE 0E
			13 00 02 E6 00
			13 00 02 E7 0E
			13 00 02 C2 00
			13 00 02 C3 0E
			13 00 02 C4 00
			13 00 02 C5 0E
			13 00 02 DD 00
			13 00 02 DE 0E
			13 00 02 E6 00
			13 00 02 E7 0E
			13 00 02 B0 06
			13 00 02 C0 A5
			13 00 02 D5 1C
			13 00 02 C0 00
			13 00 02 B0 00
			13 00 02 BD 30

			13 00 02 F9 5C
			13 00 02 C2 14
			13 00 02 C4 14
			13 00 02 BF 15
			13 00 02 C0 0C


			13 00 02 B0 00
			13 00 02 B1 79
			13 00 02 BA 8F

			05 C8 01 11
			05 32 01 29
		];

		panel-exit-sequence = [
			05 00 01 28
			05 00 01 10
		];

審核編輯:湯梓紅

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • lcd
    lcd
    +關注

    關注

    34

    文章

    4424

    瀏覽量

    167400
  • 調試
    +關注

    關注

    7

    文章

    578

    瀏覽量

    33923
  • 開發板
    +關注

    關注

    25

    文章

    5032

    瀏覽量

    97371
  • MIPI
    +關注

    關注

    11

    文章

    310

    瀏覽量

    48613
  • RK3588
    +關注

    關注

    6

    文章

    325

    瀏覽量

    4312
收藏 人收藏

    評論

    相關推薦

    瑞芯微RK3588開發板RK3588 EVB和RK3588S EVB解讀

    瑞芯微RK3588開發板RK3588 EVB和RK3588S EVB解讀 瑞芯微旗艦芯RK3588系列開發板受到廣大開發者伙伴的關注和問詢。針對相關的開發板功能、操作指南等問題,我們一
    的頭像 發表于 09-22 15:54 ?1.8w次閱讀
    瑞芯微<b class='flag-5'>RK3588</b>開發板<b class='flag-5'>RK3588</b> EVB和<b class='flag-5'>RK3588</b>S EVB解讀

    RK3588-Camera:MIPI-CSI調試通路解析

    RK3588-Camera:MIPI-CSI調試通路解析
    的頭像 發表于 06-10 10:29 ?5185次閱讀
    <b class='flag-5'>RK3588</b>-Camera:<b class='flag-5'>MIPI</b>-CSI<b class='flag-5'>調試</b><b class='flag-5'>之</b>通路解析

    RK3588-MIPI屏幕調試筆記:RK3588-MIPI-DSI屏參配置

    RK3588-MIPI屏幕調試筆記:RK3588-MIPI-DSI屏參配置
    的頭像 發表于 06-10 10:36 ?2264次閱讀
    <b class='flag-5'>RK3588-MIPI</b><b class='flag-5'>屏幕</b><b class='flag-5'>調試筆記</b>:<b class='flag-5'>RK3588-MIPI-DSI</b><b class='flag-5'>之</b>屏參配置

    RK3588-HDMIRX

    HDMI IN功能可以通過橋接芯?的?式實現,將HDMI信號轉換成MIPI信號接收,RK3588芯?平臺?帶
    的頭像 發表于 06-13 10:45 ?1577次閱讀
    <b class='flag-5'>RK3588</b>-HDMIRX

    Banana Pi BPI-W3 ArmSoM-W3RK3588-MIPI-DSI屏幕調試筆記

    本文是基于RK3588平臺,MIPI調試總結。硬件環境: ArmSoM-W3 RK3588開發板、MIPI-DSI顯示屏( ArmSoM官
    的頭像 發表于 11-02 09:27 ?1456次閱讀
    Banana Pi BPI-W3 ArmSoM-W3<b class='flag-5'>之</b><b class='flag-5'>RK3588-MIPI-DSI</b><b class='flag-5'>屏幕</b><b class='flag-5'>調試筆記</b>

    RK3588 EVB 開發板介紹

    MIPI TX、VGA、SATA、PCIe30x4、TYPEC、2xRJ45 等外設接口,尺寸為18cmX18cm。RK3588 EVB 系統框圖RK3588 EVB配備的豐富外設接口(如圖),適用于各類
    發表于 03-16 16:39

    基于RK3588芯片方案開發ARM PC項目

    的UI交互,可提供非常清晰流暢的顯示效果,可滿足日常辦公、高端影音和游戲需求。RK3588的點評能力十分強大,支持eDP、MIPI等主流的中小尺寸接口,也可以拓展V-by-One、LVDS等屏幕接口
    發表于 07-27 16:05

    RK3588J和RK3588是什么關系?

    RK3588J是不是一個開發板的名字,里面的SOC是RK3588?還是RK3588J屬于RK3588的子系列?
    發表于 03-13 14:22

    Banana Pi BPI-W3 ArmSoM-W3RK3588-MIPI-DSI屏幕調試筆記

    屏幕初始化時序的配置教程見 RK3588-MIPI屏幕
    發表于 11-02 09:29

    RK3588RK3588S之間的區別是什么

    RK3588RK3588S的區別: RK3588S是RK3588的低配版,其區別類似RK3568跟RK
    發表于 03-10 19:22 ?2.7w次閱讀

    RK3588-MIPI屏幕調試筆記:RK3588-MIPI-DSI

    RK3588-MIPI屏幕調試筆記:RK3588-MIPI-DSI
    的頭像 發表于 06-10 10:31 ?3941次閱讀
    <b class='flag-5'>RK3588-MIPI</b><b class='flag-5'>屏幕</b><b class='flag-5'>調試筆記</b>:<b class='flag-5'>RK3588-MIPI-DSI</b>

    rk3588rk3588s的區別

    rk3588rk3588s的區別 Rockchip是一家專業的半導體公司,成立于2001年,總部位于中國深圳,主要從事集成電路的設計、開發和銷售。他們的熱門產品RK3588RK3588
    的頭像 發表于 08-15 16:44 ?1.4w次閱讀

    RK35883588s的區別

    RK35883588s的區別 Rockchip RK3588RK3588s是兩種功能強大且廣受歡迎的片系統(SoC)解決方案,用于一系
    的頭像 發表于 08-15 17:03 ?2.3w次閱讀

    迅為電子RK3588S與RK3588硬件性能區別及板卡選型

    迅為電子RK3588S與RK3588硬件性能區別及板卡選型
    的頭像 發表于 06-25 15:30 ?3298次閱讀
    迅為電子<b class='flag-5'>RK3588</b>S與<b class='flag-5'>RK3588</b>硬件性能區別及板卡選型

    RK3588!黑神話悟空,啟動?-迅為電子RK3588開發板

    RK3588!黑神話悟空,啟動?-迅為電子RK3588開發板
    的頭像 發表于 08-30 14:13 ?592次閱讀
    <b class='flag-5'>RK3588</b>!黑神話悟空,啟動?-迅為電子<b class='flag-5'>RK3588</b>開發板
    主站蜘蛛池模板: 特级黑人三人共一女| 秋霞在线看片无码免费| 乱奷XXXXXHD| 男人插女人逼逼| 欧美最猛12teevideos| 日韩毛片在线视频| 午夜爱情动作片P| 亚洲一区二区三不卡高清| 中文字幕亚洲无线码在线| 99精品久久精品一区二区| 厨房玩朋友娇妻中文字幕| 国产人A片777777久久| 久久精品国产清白在天天线 | 纯肉巨黄H爆粗口男男分卷阅读| 丰满艳妇亲伦| 精品国产品国语在线不卡| 看80后操| 肉肉描写很细致的黄文| 亚洲国产精品久久人人爱| 曰产无码久久久久久精品| 99久久伊人一区二区yy5099 | 九九热免费在线观看| 蜜臀AV999无码精品国产| 日韩亚洲欧美中文高清| 亚洲精品无AMM毛片| 99福利影院| 国产精品无码亚洲网| 久久这里只精品热在线18| 日韩亚洲人成在线| 野花影院手机在线观看| np高h肉辣一女多男| 黑丝美女娇喘| 让男人玩尿道的女人| 亚洲精品久久久无码一区二区 | 国产乱码精品一区二区三区四川| 娇妻让壮男弄的流白浆| 欧美巨大巨粗黑人性AAAAAA| 午夜精品国产自在现线拍| 99爱免费视频| 韩国伦理片2018在线播放免费观看| 暖暖免费观看日本在线视频 |