请教D1S MPIP屏显示异常
-
之前买了两款屏,一款是480480 2Lane MIPI,点屏显示正常(此贴:D1S新增一款MIPI屏[480480] ST7701S)
这一款是720*720, 4Lane MIPI的,测试了较多参数,还是显示有点异常,看看各位友友有没有遇到类似的情况过, 请各位帮忙支招,谢谢。
规格书:
YX40005A.pdf驱动IC:ST7703
卖家给的时序参数:
测试现象:
1、按照参数,时钟lcd_dclk_freq配置为36M,黑屏无显示。
2、降频为16M测试,可以显示画面,但拖影比较严重,显示也不清晰。
3、调节各个HBP/HFP等参数,好像无好转的迹象。硬件上面应该没有烧坏或者其它问题。
dts:
&lcd0 { lcd_used = <1>; lcd_driver_name = "st7701s"; lcd_backlight = <100>; lcd_if = <4>; lcd_pwm_used = <0>; lcd_pwm_ch = <7>; lcd_pwm_freq = <1000>; lcd_pwm_pol = <0>; lcd_pwm_max_limit = <255>; lcd_x = <720>; lcd_y = <720>; lcd_width = <72>; lcd_height = <72>; lcd_dclk_freq = <20>; // lcd_ht * lcd_vt * 60 lcd_dsi_lane = <4>; pinctrl-0 = <&dsi4lane_pins_a>; pinctrl-1 = <&dsi4lane_pins_b>; lcd_hbp = <30>; // hsync back porch(pixel) + hsync plus width(pixel); lcd_ht = <790>; // hsync total cycle(pixel) lcd_hspw = <4>; // hsync plus width(pixel) lcd_vbp = <26>; // vsync back porch(line) + vysnc plus width(line) lcd_vt = <776>; // vysnc total cycle(line) lcd_vspw = <6>; // vysnc plus width(pixel) lcd_dsi_if = <0>; 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_io_phase = <0x0000>; lcd_gamma_en = <0>; 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_gpio_0 = <&pio PB 2 GPIO_ACTIVE_HIGH>; };
初始化参数:
static struct LCM_setting_table lcm_initialization_setting[] = { // {0x11, 1, {0x00} }, {REGFLAG_DELAY, 500, {} }, {0xB9, 3, {0xF1, 0x12, 0x83}}, {0xBA, 27, {0x33, 0x81, 0x05, 0xF9, 0x0E, 0x0E, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x25, 0x00, 0x91, 0x0A, 0x00, 0x00, 0x02, 0x4F, 0xD1, 0x00, 0x00, 0x37}}, {0xB8, 4, {0x25, 0x22, 0x20, 0x03}}, {0xBF, 3, {0x02, 0x11, 0x00}}, // set rgb() // {0xB3, 10, {0x10, 0x10, 0x0A, 0x50, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00}}, {0xC0, 9, {0x73, 0x73, 0x50, 0x50, 0x00, 0x00, 0x08, 0x70, 0x00}}, {0xBC, 1, {0x46}}, {0xCC, 1, {0x0B}}, {0xB4, 1, {0x80}}, {0xB2, 3, {0x3C, 0x12, 0x30}}, {0xE3, 14, {0x07, 0x07, 0x0B, 0x0B, 0x03, 0x0B, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x40, 0x10}}, {0xC1, 12, {0x65, 0x00, 0x32, 0x32, 0x77, 0xF1, 0xCC, 0xCC, 0x77, 0x77, 0x33, 0x33}}, {0xB5, 2, {0x0A, 0x0A}}, {0xB6, 2, {0xB7, 0xB7}}, {0xE9, 63, {0x88, 0x10, 0x0A, 0x10, 0x0F, 0xA1, 0x80, 0x12, 0x31, 0x23, 0x47, 0x86, 0xA1, 0x80, 0x47, 0x08, 0x04, 0x44, 0x00, 0x00, 0x00, 0x00, 0x04, 0x44, 0x00, 0x00, 0x00, 0x00, 0x75, 0x31, 0x88, 0x88, 0x88, 0x1F, 0x88, 0x38, 0xFF, 0x58, 0x88, 0x64, 0x20, 0x88, 0x88, 0x88, 0x0F, 0x88, 0x28, 0xFF, 0x48, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}, {0xEA, 61, {0x00, 0x1A, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x46, 0x88, 0x88, 0x88, 0x28, 0x8F, 0x08, 0xFF, 0x48, 0x88, 0x13, 0x57, 0x88, 0x88, 0x88, 0x38, 0x8F, 0x18, 0xFF, 0x58, 0x88, 0x23, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0xA1, 0x80, 0x00, 0x00, 0x00, 0x00}}, {0xE0, 34, {0x00, 0x03, 0x06, 0x2D, 0x3E, 0x3F, 0x34, 0x32, 0x08, 0x0C, 0x0D, 0x10, 0x12, 0x11, 0x12, 0x10, 0x15, 0x00, 0x03, 0x06, 0x2D, 0x3E, 0x3F, 0x34, 0x32, 0x08, 0x0C, 0x0D, 0x10, 0x12, 0x11, 0x12, 0x10, 0x15}}, {0x11, 1, {0x00} }, {REGFLAG_DELAY, 300, {} }, {0x29, 1, {0x00} }, {REGFLAG_DELAY, 100, {} }, {REGFLAG_END_OF_TABLE, 0x00, {}} };
附几张异常现象的照片:
-
@jerrychen 在 请教D1S MPIP屏显示异常 中说:
1、按照参数,时钟lcd_dclk_freq配置为36M,黑屏无显示。
看来这个mipi还是比较麻烦。我的是圆屏,7701s,症状就是黑屏无显示。看来可以试试 你的这个时钟lcd_dclk_freq~~~ 板子和驱动都改好,就是没反应。看过你上一个贴。还没试试你那些参数~~
-
你有调试好st7703的mipi显示屏了吗
-
@maihuanyi 还没有,最近忙,没太多时间玩
-
@whycan 晕哥请问可以帮忙指教下吗?感谢
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号