• 周五. 10月 7th, 2022

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

— rk3399/3288 系列平台接mipi 的dts 数据 panel-init-sequence = [] 命令的整法

admin

11月 28, 2021

https://blog.csdn.net/Shushan1/article/details/87858434

mipi 屏的数据手册

dts sample:

&dsi {
        status = "okay";

        rockchip,lane-rate = <600>; 

        [email protected]0 {        
            compatible ="simple-panel-dsi";
            reg = <0>;
            backlight = <&backlight>;
            enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;    
            enable-delay-ms = <100>;
            prepare-delay-ms = <100>;
            reset-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;      
            reset-delay-ms = <50>;
            init-delay-ms = <100>;
    
            dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
                        MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
            dsi,format = <MIPI_DSI_FMT_RGB888>;
            dsi,lanes = <4>;
            status = "okay";
     
            panel-init-sequence = [
                15 00 02 36 0A
                39 00 03 B3 0A 7F
                15 00 02 B4 00
                39 00 06 B5 4C 14 14 00 20
                39 00 08 B6 00 14 0F 16 13 9F 9F
                39 00 04 C0 00 0A 10
                15 0A 02 C2 6E
                39 00 0D C3 01 66 13 23 00 66 85 33 20 38 38 00
                39 00 06 C4 22 24 11 11 6D
                39 00 0A D0 00 37 52 17 01 04 70 45 05
                39 00 0A D1 00 37 52 17 01 04 70 45 05
                39 00 0A D2 00 37 52 17 01 04 70 45 05
                39 00 0A D3 00 37 52 17 01 04 70 45 05
                39 00 0A D4 00 37 52 17 01 04 70 45 05
                39 32 0A D5 00 37 52 17 01 04 70 45 05
                05 96 01 11
                05 00 01 29
                    ];
           
            display-timings {
                native-mode = <&timing0>;
    
                timing0: timing0 {
                    clock-frequency = <74250000>;
                    hactive = <768>;
                    vactive = <1024>;
                    hback-porch = <10>;
                    hfront-porch = <160>;
                    vback-porch = <40>;
                    vfront-porch = <16>;
                    hsync-len = <160>;
                    vsync-len = <10>;
                    hsync-active = <1>;
                    vsync-active = <1>;
                    de-active = <0>;
                    pixelclk-active = <1>;
                };
            };
        }; 
}

前面三个字节分别表示命令 类型( 0x05/0x15/0x39.)、 延时,  命令净荷长度

从第四个字节开始表示命令的有效 payload

其中:
0x05命令类型是带1个参数,如:
0x15命令类型是带2个参数,如
0x39命令类型是带多个参数,即大于两个参数,如

发表回复

您的电子邮箱地址不会被公开。