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

本文详细解析了MIPI DSI屏幕的数据手册,包括屏幕状态配置、时钟频率、显示尺寸、前后沿设置等关键参数。同时介绍了不同命令类型的使用方式,如0x05、0x15和0x39命令及其有效负载的应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

https://blog.youkuaiyun.com/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

RK3568开发板配置了GM8775的MIPI转LVDS芯片,但开机后只显示红绿蓝,是什么原因?开机log有打印这些: Model: Rockchip RK3568 EVB1 DDR4 V10 Board MPIDR: 0x81000000 Rockchip UBOOT DRM driver version: v1.0.1 VOP have 2 active VP vp0 have layer nr:0[], primary plane: 0 vp1 have layer nr:3[0 2 4 ], primary plane: 4 vp2 have layer nr:3[1 3 5 ], primary plane: 5 disp info 2, type:16, id:0 base2_disp_info couldn't be found, screen_info type[0] or id[0] mismatched Using display timing dts dsi@fe060000: detailed mode clock 148500 kHz, flags[a] H: 1920 2060 2070 2200 V: 1080 1100 1110 1125 bus_format: 100e VOP update mode to: 1920x1080p60, type: MIPI0 for VP1 VP1 set crtc_clock to 148400KHz VOP VP1 enable Smart0[654x270->654x270@633x405] fmt[2] addr[0x7df04000] final DSI-Link bandwidth: 992 Mbps x 4 PHY is not locked generic write fifo is full failed to write cmd0: -110 failed to send on cmds: -110 以下是我的dts配置,请帮忙分析原因 vcc_lcd_lvds: vcc-lcd-lvds { compatible = "regulator-fixed"; regulator-name = "vcc_lcd_lvds"; regulator-boot-on; // regulator-always-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; vin-supply = <&vcc5v0_sys>; pinctrl-names = "default"; pinctrl-0 = <&LVDS_PWR_EN>; }; VCC3V3_GM8775C: VCC3V3-GM8775C { compatible = "regulator-fixed"; regulator-name = "VCC3V3_GM8775C"; regulator-boot-on; regulator-always-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; vin-supply = <&vcc5v0_sys>; pinctrl-names = "default"; pinctrl-0 = <&GM8775C_PWR_EN>; };&pinctrl { GM8775C_EN { GM8775C_PWR_EN: GM8775C-PWR-EN { rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; }; }; LVDS_EN { LVDS_PWR_EN: LVDS-PWR-EN { rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; }; }; }; &dsi0 { status = "okay"; //rockchip,lane-rate = <1000>; dsi0_panel: panel@0 { status = "okay"; compatible = "simple-panel-dsi"; reg = <0>; power-supply = <&vcc_lcd_lvds>; enable-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; backlight = <&backlight1>; reset-delay-ms = <60>; enable-delay-ms = <60>; prepare-delay-ms = <60>; unprepare-delay-ms = <60>; disable-delay-ms = <60>; 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>; panel-init-sequence = [ 13 14 02 27 AA 13 14 02 48 02 13 14 02 B6 20 13 14 02 01 80 13 14 02 02 38 13 14 02 03 47 13 14 02 04 46 13 14 02 05 14 13 14 02 06 46 13 14 02 07 00 13 14 02 08 03 13 14 02 09 05 13 14 02 0A 03 13 14 02 0B 82 13 14 02 0C 10 13 14 02 0D 01 13 14 02 0E 80 13 14 02 0F 20 13 14 02 10 20 13 14 02 11 03 13 14 02 12 1B 13 14 02 13 63 13 14 02 14 01 13 14 02 15 23 13 14 02 16 40 13 14 02 17 00 13 14 02 18 01 13 14 02 19 23 13 14 02 1A 40 13 14 02 1B 00 13 14 02 1E 46 13 14 02 51 30 13 14 02 1F 10 13 14 02 2A 01 13 14 02 27 55 13 14 02 6A 08 13 14 02 6C 9E 13 14 02 6D 07 13 14 02 6E 00 13 14 02 6F 8A 13 14 02 70 19 13 14 02 71 00 ]; panel-exit-sequence = [ 05 00 01 28 05 00 01 10 ]; disp_timings0: display-timings { native-mode = <&dsi0_timing0>; dsi0_timing0: timing0 { clock-frequency = <148500000>; hactive = <1920>; vactive = <1080>; hfront-porch = <140>; hsync-len = <10>; hback-porch = <130>; vfront-porch = <20>; vsync-len = <10>; vback-porch = <15>; hsync-active = <0>; vsync-active = <0>; de-active = <0>; pixelclk-active = <0>; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; panel_in_dsi: endpoint { remote-endpoint = <&dsi_out_panel>; }; }; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <1>; dsi_out_panel: endpoint { remote-endpoint = <&panel_in_dsi>; }; }; }; }; &backlight1 { status = "okay"; // enable-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; pwms = <&pwm8 0 25000 0>; }; &pwm8 { status = "okay"; }; &dsi0_in_vp0 { status = "disabled"; }; &dsi0_in_vp1 { status = "okay"; }; &video_phy0 { status = "disabled"; }; &video_phy1 { status = "okay"; }; &route_dsi0 { status = "okay"; connect = <&vp1_out_dsi0>; };
最新发布
08-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值