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

 

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

mipi 屏的数据手册

dts sample:

&dsi {
        status = "okay";

        rockchip,lane-rate = <600>; 

        panel@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命令类型是带多个参数,即大于两个参数,如

 

转载于:https://www.cnblogs.com/bzhao/p/10769214.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值