T5 lvds 双屏同显问题
-
使用的是T507芯片,利用PD0-PD9作为第一路LVDS输出,PD10-PD19作为lvds的第二路输出。
上电之后显示绿屏
设备树配置如下
disp: disp@01000000 { disp_init_enable = <1>; disp_mode = <0>; screen0_output_type = <1>; screen0_output_mode = <4>; screen1_output_type = <1>; screen1_output_mode = <4>; dev0_output_type = <1>; dev0_output_mode = <4>; dev0_screen_id = <0>; dev0_do_hpd = <0>; dev1_output_type = <1>; dev1_output_mode = <4>; dev1_screen_id = <1>; dev1_do_hpd = <1>; def_output_dev = <0>; hdmi_mode_check = <1>; fb0_format = <0>; fb0_width = <1024>; fb0_height = <600>; fb0_buffer_num = <3>; fb1_format = <0>; fb1_width = <1024>; fb1_height = <600>; chn_cfg_mode = <1>; disp_para_zone = <1>; /* VCC-LCD */ dc1sw-supply = <®_sw>; /* VCC-LVDS and VCC-HDMI */ bldo1-supply = <®_bldo1>; /* VCC-TV */ cldo4-supply = <®_cldo4>; };
lcd0: lcd0@01c0c000 { lcd_used = <1>; lcd_driver_name = "default_lcd"; lcd_backlight = <50>; lcd_if = <3>; lcd_x = <1024>; lcd_y = <600>; lcd_width = <154>; lcd_height = <86>; lcd_dclk_freq = <51>; lcd_pwm_used = <0>; lcd_pwm_ch = <0>; lcd_pwm_freq = <50000>; lcd_pwm_pol = <1>; lcd_pwm_max_limit = <255>; lcd_hbp = <20>; lcd_ht = <1344>; lcd_hspw = <10>; lcd_vbp = <10>; lcd_vt = <635>; lcd_vspw = <5>; lcd_lvds_if = <0>; lcd_lvds_colordepth = <0>; lcd_lvds_mode = <0>; lcd_frm = <0>; lcd_hv_clk_phase = <0>; lcd_hv_sync_polarity= <0>; lcd_gamma_en = <1>; lcd_bright_curve_en = <0>; lcd_cmap_en = <0>; lcd_fsync_en = <0>; lcd_fsync_act_time = <1000>; lcd_fsync_dis_time = <1000>; lcd_fsync_pol = <0>; deu_mode = <0>; lcdgamma4iep = <22>; smart_color = <90>; lcd_pin_power = "bldo1"; lcd_power = "dc1sw"; lcd_bl_en = <&pio PE 3 1 2 3 1>; pinctrl-0 = <&lvds0_pins_a>; pinctrl-1 = <&lvds0_pins_b>; };
lcd0 与 lcd1配置除了后面的pin都一样
是需要更改disp驱动的内容吗
-
demsg中DISP部分信息如下
[ 0.420596] Bluetooth: SCO socket layer initialized [ 0.421454] [DISP]disp_module_init [ 0.495499] enable lcd_gamma_table success! [ 0.495880] enable lcd_gamma_table success! [ 0.497696] [DISP] config_fb_by_screen,line:2636: [ 0.497709] config_fb_by_screen fb[0] res[1024x600],size in mm[1024x600] [ 0.501168] [DISP] bind_fb_to_screen,line:2664: [ 0.501180] fb-->scr 0->0,fb_mode=0,addr=0xff800000 [ 0.501190] [DISP] config_fb_create_info_by_screen,line:2594: [ 0.501198] config_fb_create_info_by_screen buf:3,fb_mode:0,[1024x600],output[1024x600] [ 0.501217] [DISP] Fb_copy_boot_fb,line:2049: [ 0.501222] no boot_fb0 [ 0.501231] [DISP] bind_fb_to_screen,line:2792: [ 0.501241] bind_fb_to_screen fb[0],size[1024x600],crop(0:0)[4398046511104x2576980377600],screen[1024x600] [ 0.501955] [DISP] config_fb_by_screen,line:2636: [ 0.501963] config_fb_by_screen fb[1] res[1024x600],size in mm[1024x600] [ 0.505393] [DISP] bind_fb_to_screen,line:2664: [ 0.505402] fb-->scr 1->0,fb_mode=0,addr=0xff000000 [ 0.505410] [DISP] config_fb_create_info_by_screen,line:2594: [ 0.505419] config_fb_create_info_by_screen buf:3,fb_mode:0,[1024x600],output[1024x600] [ 0.505428] [DISP] bind_fb_to_screen,line:2792: [ 0.505438] bind_fb_to_screen fb[1],size[1024x600],crop(0:0)[4398046511104x2576980377600],screen[1024x600] [ 0.506125] [DISP] config_fb_by_screen,line:2636: [ 0.506134] config_fb_by_screen fb[2] res[1024x600],size in mm[1024x600] [ 0.509542] [DISP] bind_fb_to_screen,line:2664: [ 0.509552] fb-->scr 2->0,fb_mode=0,addr=0xfe800000 [ 0.509560] [DISP] config_fb_create_info_by_screen,line:2594: [ 0.509567] config_fb_create_info_by_screen buf:3,fb_mode:0,[1024x600],output[1024x600] [ 0.509576] [DISP] bind_fb_to_screen,line:2792: [ 0.509585] bind_fb_to_screen fb[2],size[1024x600],crop(0:0)[4398046511104x2576980377600],screen[1024x600] [ 0.511361] [DISP] disp_lcd_is_interlace,line:874: [ 0.511370] disp_lcd_is_interlace lcd_interlace=0 [ 0.511711] [DISP] lcd_clk_config,line:722: [ 0.511724] disp 0, clk: pll(357000000),clk(357000000),dclk(51000000) dsi_rate(357000000) [ 0.511724] clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0) [ 0.511745] [DISP] disp_sys_pwm_set_polarity,line:637: [ 0.511751] disp_sys_pwm_Set_Polarity, handle is NULL! [ 0.512551] [DISP]disp_module_init finish
目前是第一路都直接显示绿屏,第二路还没有测试,想先把lvds0调通
-
[root@/]$ cat /sys/class/disp/disp/attr/sys screen 0: de_rate 696000000 hz, ref_fps:60 mgr0: 1024x600 fmt[rgb] cs[0x204] range[full] eotf[0x4] bits[8bits] err[0] force_sync[0] unblank direct_show[false] dmabuf: cache[0] cache max[0] umap skip[0] overflow[0] lcd output backlight( 50) fps:60.8 1024x 600 err:0 skip:3 irq:17286 vsync:17286 vsync_skip:0 BUF enable ch[0] lyr[0] z[5] prem[N] a[pixel 0] fmt[ 0] fb[1024, 600;1024, 600;1024, 600] crop[ 0, 0,1024, 600] frame[ 0, 0,1024, 600] addr[ff800000, 0, 0] flags[0x 0] trd[0,0] depth[ 0] transf[0] BUF enable ch[1] lyr[0] z[3] prem[N] a[pixel 0] fmt[ 0] fb[1024, 600;1024, 600;1024, 600] crop[ 0, 0,1024, 600] frame[ 0, 0,1024, 600] addr[ff000000, 0, 0] flags[0x 0] trd[0,0] depth[ 0] transf[0] BUF enable ch[2] lyr[0] z[1] prem[N] a[pixel 0] fmt[ 0] fb[1024, 600;1024, 600;1024, 600] crop[ 0, 0,1024, 600] frame[ 0, 0,1024, 600] addr[fe800000, 0, 0] flags[0x 0] trd[0,0] depth[ 0] transf[0]
-
@flork
同显只要给 lcd0 参数即可。 -
@whycan
谢谢晕哥!lvds能显示了我还想问下如果我想要lvds输出标准74.25MHz的720P30该怎么配置呢
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号