zhansb
发表于 2015-1-24 11:45:50
打开lcdc显示就会打印:rk3288-lcdc lcdc0: blank mode:0
可以把指令贴出来看看
tangyu1121
发表于 2015-1-24 11:55:58
zhansb 发表于 2015-1-24 11:45
打开lcdc显示就会打印:rk3288-lcdc lcdc0: blank mode:0
可以把指令贴出来看看
比较长我把整个屏参贴上来把,请看!
disp_mipi_init: mipi_dsi_init{
compatible = "rockchip,mipi_dsi_init";
rockchip,screen_init = <1>;
rockchip,dsi_lane = <4>;
rockchip,dsi_hs_clk = <964>;
rockchip,mipi_dsi_num = <2>;
};
disp_mipi_power_ctr: mipi_power_ctr {
compatible = "rockchip,mipi_power_ctr";
mipi_lcd_rst:mipi_lcd_rst{
compatible = "rockchip,lcd_rst";
rockchip,gpios = <&gpio2 GPIO_B7 GPIO_ACTIVE_HIGH>;
rockchip,delay = <100>;
};
/*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 0xB0 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds2 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xD6 0x01>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds3 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xB4 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds4 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xB3 0x14 0x00 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds5 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xB6 0x3A 0xC3 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds6 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xBE 0x04>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds7 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC3 0x00 0x00 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds8 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC5 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds9 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC0 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds10 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC1 0x04 0x61 0x00 0x30 0x29 0x10 0x19 0x63 0x61 0xB4 0xE6 0xDC 0x7B 0xEF 0x39 0xD7 0xDA 0x08 0x8C 0xB1 0x08 0x54 0x82 0x00 0x00 0x00 0x00 0x00 0x02 0x63 0x27 0x03 0x00 0xFF 0x11>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds11 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC2 0x08 0x0A 0x00 0x08 0x08 0xF0 0x00 0x04 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds12 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC4 0x70 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x05 0x01 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds13 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC6 0x5A 0x00 0x2D 0x03 0x01 0x02 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x06 0x15 0x08 0x5A>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds14 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC7 0x02 0x0D 0x14 0x1E 0x2C 0x3B 0x46 0x57 0x3C 0x44 0x50 0x5D 0x68 0x6F 0x7B 0x02 0x0D 0x14 0x1E 0x2C 0x3B 0x46 0x57 0x3C 0x44 0x50 0x5D 0x68 0x6F 0x7B 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds15 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xC8 0x01 0x00 0xFE 0x02 0xFB 0xB0 0x00 0x00 0x00 0x02 0xFD 0xFC 0x00 0x00 0xF9 0x02 0x02 0xFC 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds16 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xCB 0xFF 0xFF 0xFF 0xFF 0x00 0x00 0x00 0x00 0x54 0xE0 0x07 0x2A 0xE0 0x00 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds17 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xCC 0x32>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds18 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xD7 0x82 0xFF 0x21 0x8E 0x8C 0xF1 0x87 0x3F 0x7E 0x10 0x00 0x00 0x8F>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds19 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xD9 0x00 0x00 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds20 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xD0 0x11 0x17 0x14 0xFD>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds21 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xD2 0xCD 0x2B 0x2B 0x33 0x12 0x33 0x33 0x33 0x77 0x77 0x33 0x33 0x33 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds22 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xD5 0x06 0x00 0x00 0x01 0x49 0x01 0x49>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds23 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x29 0xE5 0x00 0x00 0x08 0x10 0x00>;
rockchip,cmd_delay = <0>;
};
rockchip,on-cmds24 { //video
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0x11>;
rockchip,cmd_delay = <250>;
};
rockchip,on-cmds25 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0x29>;
rockchip,cmd_delay = <30>;
};
};
disp_timings: display-timings {
native-mode = <&timing0>;
compatible = "rockchip,display-timings";
timing0: timing0 {
screen-type = <SCREEN_DUAL_MIPI>;
lvds-format = <LVDS_8BIT_2>;
out-face = <OUT_P888>;
clock-frequency = <256000000>;
hactive = <1440>;
vactive = <2560>;
hback-porch = <80>;
hfront-porch = <154>;
vback-porch = <6>;
vfront-porch = <8>;
hsync-len = <20>;
vsync-len = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
tangyu1121
发表于 2015-1-26 10:37:25
zhansb 发表于 2015-1-24 11:45
打开lcdc显示就会打印:rk3288-lcdc lcdc0: blank mode:0
可以把指令贴出来看看
[ 1.427207] yds rk_fb_trsm_ops_get =0
[ 1.427218] rk_fb_trsm_ops_get:un supported transmitter:0!
为什么点双MIPI屏的时候会出现这个LOG信息?
zhansb
发表于 2015-1-27 14:26:07
本帖最后由 zhansb 于 2015-1-27 14:30 编辑
[ 1.427218] rk_fb_trsm_ops_get:un supported transmitter:0!
这个没什么关系,这个对应的是SCREEN_NULL
<0x39 0x11>;<0x39 0x29>中:0x39改成0x05试试
双MIPI的话把rockchip,dsi_id = <0>;这个改成rockchip,dsi_id = <2>;
参考:Documentation/devicetree/bindings/video/rockchip_mipidsi_lcd.txt
tangyu1121
发表于 2015-1-27 15:20:25
zhansb 发表于 2015-1-27 14:26
[ 1.427218] rk_fb_trsm_ops_get:un supported transmitter:0!
这个没什么关系,这个对应的是SCREEN_NU ...
按照您这个更改了效果还是一样的!
没有显示。MIPI的这些初始化命令都没写进去,写进去的话屏上的几个电压会改变的
zhansb
发表于 2015-1-27 17:36:42
rockchip,cmd_debug = <0>;
改为1,看看有没有指令打印的信息
tangyu1121
发表于 2015-1-27 17:51:53
zhansb 发表于 2015-1-27 17:36
rockchip,cmd_debug = ;
改为1,看看有没有指令打印的信息
你的意思是看有没有写入的指令把,有的,我在驱动里面直接打开的!
[ 1.309010] dcs_cmd.name:rockchip,on-cmds25
[ 1.309021] dcs_cmd.dsi_id == 2 line=127
[ 1.309033] 1163 command sent in LP mode size:1
[ 1.309043] write GEN_HDR:00002905
[ 1.309064] 1163 command sent in LP mode size:1
[ 1.309074] write GEN_HDR:00002905
[ 1.348372] ++++++++++++++++rk_mipi_screen:241
[ 1.348392] rk3288-lcdc lcdc0: wakeup from standby!
zhansb
发表于 2015-1-27 18:18:52
刚刚好我调了一个双MIPI这个分辨率的驱动,参考一下,看看有没有什么配置差异或者先把clk降一些,改成clock-frequency = <128000000>;
tangyu1121
发表于 2015-1-27 18:31:42
zhansb 发表于 2015-1-27 18:18
刚刚好我调了一个双MIPI这个分辨率的驱动,参考一下,看看有没有什么配置差异或者先把clk降一些,改成clock ...
HI 屏参这块就寄存器的值和IO的区别,您是否可以将你那边点这个双MIPI屏的整个更改的PATCH上传我看下,我看下是否是我哪里没有更改到,我目前的更改都是按照RockChip_DSS Development Guide v1.2.pdf这个文档里面说的配置来更改的!
zhansb
发表于 2015-1-28 08:37:18
参考附件