|
急!单mipi屏点不亮!
发表于 2016-1-14 09:31:03
浏览:22498
|
回复:12
打印
只看该作者
[复制链接]
楼主
请高手帮忙!mipi屏幕一直点不亮。屏的配置如下,初始化code跟屏那边确认过是正确的。以下是屏的配置:
/ {
/* about mipi */
disp_mipi_init: mipi_dsi_init{
compatible = "rockchip,mipi_dsi_init";
rockchip,screen_init = <1>;
rockchip,dsi_lane = <4>;
rockchip,dsi_hs_clk = <1000>;
rockchip,mipi_dsi_num = <1>;
};
disp_mipi_power_ctr: mipi_power_ctr {
compatible = "rockchip,mipi_power_ctr";
mipi_lcd_rst:mipi_lcd_rst{
compatible = "rockchip,lcd_rst";
rockchip,gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_LOW>;
rockchip,delay = <10>;
};
/*
mipi_lcd_en:mipi_lcd_en {
compatible = "rockchip,lcd_en";
rockchip,gpios = <&gpio0 GPIO_C1 GPIO_ACTIVE_HIGH>;
rockchip,delay = <100>;
};*/
};
disp_mipi_init_cmds: screen-on-cmds {
compatible = "rockchip,screen-on-cmds";
rockchip,cmd_debug = <1>;
rockchip,on-cmds1 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xb9 0xff 0x83 0x94>;//SETEXTC
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds2 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x13 0xba 0x33>; //SETMIPI
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds3 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xb1 0x64 0x10 0x30 0x43 0x34 0x11 0xf1 0x00 0xe4 0x7e 0x34 0x80 0xc0 0xd2 0x42>;//SETPOWER
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds4 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xb2 0x45 0x64 0x0f 0x09 0x40 0x1c 0x08 0x08 0x1c 0x4d 0x00 0x00>;//SETDISP
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds5 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xb4 0x07 0x6e 0x07 0x71 0x6f 0x70 0x00 0x00 0x01 0x6e 0x0f 0x6e>;//SETCYC
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds6 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x23 0xb6 0x7f 0x7f>;//SETVCOM
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds7 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x13 0xcc 0x01>;//SETPANEL
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds8 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xd3 0x00 0x08 0x00 0x00 0x00 0x00 0x00 0x32 0x10 0x0a 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x33 0x00 0x0d 0x00 0x47 0x00 0x00 0x00 0x0f 0x08>; //SETGIP0
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds9 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xd5 0x03 0x02 0x03 0x02 0x01 0x00 0x01 0x00 0x07 0x06 0x07 0x06 0x05 0x04 0x05 0x04 0x21 0x20 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x23 0x22 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x18>;//SETGIP1
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds10 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xe0 0x01 0x10 0x15 0x26 0x2a 0x3e 0x21 0x3d 0x07 0x0b 0x0c 0x17 0x0e 0x12 0x14 0x12 0x13 0x0a 0x18 0x1f 0x1f 0x01 0x10 0x15 0x26 0x2a 0x3e 0x21 0x3d 0x07 0x0b 0x0c 0x17 0x0e 0x12 0x14 0x12 0x13 0x0a 0x18 0x1f 0x1f>; //SETGAMMA
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds11 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x13 0xbc 0x07>;//
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds12 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xc9 0x1f 0x2e 0x1e 0x1e 0x10>;//SETCABC
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds13 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x05 dcs_exit_sleep_mode>;
rockchip,cmd_delay = <180>;
};
rockchip,on-cmds14 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x05 dcs_set_display_on>;
rockchip,cmd_delay = <20>;
};
};
disp_timings: display-timings {
native-mode = <&timing0>;
compatible = "rockchip,display-timings";
timing0: timing0 {
screen-type = <SCREEN_MIPI>;
lvds-format = <LVDS_8BIT_1>;
out-face = <OUT_P888>;
clock-frequency = <68000000>;
hactive = <800>;
vactive = <1280>;
hback-porch = <48>;/*type 48*/
hfront-porch = <16>;/*16*/
vback-porch = <4>;
vfront-porch = <8>;
hsync-len = <16>;/*16*/
vsync-len = <4>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
};
|
|