(Solved) LVDS 10.1吋 螢幕 開機過程中, 閃了三次, 無法正常啟動
本帖最后由 zadeh 于 2015-10-30 13:31 编辑Update:
1. reference the link to get correct touch screen parameter
http://bbs.csdn.net/topics/390536762?page=1#post-395248133
2. turning the vga parameter
/sys/class/display/display0.VGA# echo 1280x800p-60 >mode
3. then my lvds tocuh screen is lighting, Ha! Ha! Ha!
感謝 madman 的support.
history:
1. 自行編譯 LVDS 10.1吋螢幕的driver,i2c 通訊正常,firmware也有啟動,但是開機過程中,陸陸續續閃了三次,還是無法正常啟動
2. 比較懷疑是firefly-rk3288.dts lcd0設定的問題,因為參考網路上有好幾組設法,只有目前這組,可以compile,沒有 error,但是卻無法正常啟動螢幕,我疑惑這些pin腳,在設計圖上都找不到,怪怪的.
3. 附上dts與log, 請好心的人幫忙看一下
firefly-rk3288.dts lcd0 設定
&lcdc0 {
status = "okay";
rockchip,prop = <;PRMRY>;
disp_power_ctr: power_ctr {
rockchip,debug = <0>;
lcd_en:lcd_en {
rockchip,power_type = <GPIO>;
gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
rockchip,delay = <10>;
};
bl_en:bl_en {
rockchip,power_type = <GPIO>;
gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
rockchip,delay = <10>;
};
bl_ctr:bl_ctr {
rockchip,power_type = <GPIO>;
gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
rockchip,delay = <10>;
};
lcd_rst:lcd_rst {
rockchip,power_type = <REGULATOR>;
rockchip,delay = <5>;
};
};
};
没有东西是能亮屏(白屏)?是的话就是数据参数的问题多,例如数据格式位数之类
本帖最后由 madman 于 2015-10-26 14:48 编辑
dts里没有背光的配置。lcdc的使能脚和rst脚配置可以看下原理图。屏参数可以对着datasheet确认下 Dear madman,
謝謝幫忙,我已經將背光的function 補上,
同時 LVDS I2C 的通訊也正常,
現在會正常 turn-on, 可是螢幕畫面還是沒有東西?
可能還有哪些方向可以找出問題在哪? Dear madman,
謝謝提示,我再試試看, Thank you! :) 本帖最后由 zadeh 于 2015-10-28 08:48 编辑
現在開機 Rockchip logo 可以顯示, 可是進入後"呈現雜訊",
隱約可看出是 firefly 的桌面 logo,
追到 log 如下, 用 cat disp_info 去看,
系統好像抓到 win0, 可是 win1 才是正確的畫面,
我還可從哪的方向去追這個問題? 謝謝!
[ 1.032177] rk3288-lcdc lcdc0: lcdc0: dclk:84857142>>fps:74
[ 1.032254] rk3288-lcdc lcdc0: wakeup from standby!
[ 1.085201] alloc_buffer:ion_phy_addr=0x10000000
[ 1.106991] fb0:phy:10000000>>vir:f0191000>>len:0xc00000
//error at here
[ 1.107090] graphics fb0: copy fb data 654 x 160fromdst_addr:07024000
//cat /sys/class/graphics/fb0/disp_info
z-order:
layer3_sel_win
layer2_sel_win
layer1_sel_win
layer0_sel_win
win0:
state:1, fmt:RGB565, y_vir:327, uv_vir:0
xact: 654, yact: 160, dsp_x:1280, dsp_y: 800, x_st: -91, y_st: -32
y_h_fac: 33434, y_v_fac: 13000, uv_h_fac: 4096, uv_v_fac: 4096
y_addr: 0x10000000, uv_addr:0x00000000
win1:
state:1, fmt:RGB565, y_vir:640, uv_vir:5360
xact:1280, yact: 800, dsp_x:1920, dsp_y:1080, x_st: 0, y_st: 0
y_h_fac: 43662, y_v_fac: 48499, uv_h_fac: 4096, uv_v_fac: 4096
y_addr: 0x10000000, uv_addr:0x00000000
win2:
state:0
fmt:ARGB888
area0:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0,addr:0x00000000
area1:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0,addr:0x00000000
area2:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0,addr:0x00000000
area3:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0,addr:0x00000000
win3:
state:0
fmt:ARGB888
area0:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0,addr:0x00000000
area1:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0 addr:0x00000000
area2:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0,addr:0x00000000
area3:state:0,y_vir: 320,dsp_x: 320,dsp_y: 240,x_st: 0,y_st: 0,addr:0x00000000
[ 1.107987] rk3288-lcdc lcdc0: lcdc0 probe ok, iommu enabled
[ 1.109143] rockchip_set_mux:warning ignore bank num 15
[ 1.109612] rockchip_set_mux:warning ignore bank num 15
[ 1.110031] rockchip_set_mux:warning ignore bank num 15
[ 1.110454] rockchip_set_mux:warning ignore bank num 15 台湾友人啊~~~这个繁体字看着还是很舒服,就是难得写
页:
[1]