修复百问网4寸MIPI屏侧边显示异常问题

问题现象:
显示屏启动后会在屏幕侧边出现如下图所示的花边。
image

解决办法:
此问题是由于hbp和vbp的参数设置有误导致的,在全志Tina SDK中,Kernel的Timming值是读取uboot设备而来的,所以需要修改uboot设备树.
注意:全志SDK的设备树中:

lcd_hbp = hsync back porch(pixel) + hsync plus width(pixel);

lcd_vbp = vsync back porch(line) + vysnc plus width(line);

下面贴出修改后的device/config/chips/xxx/configs/xxx/uboot-board.dts设备树:

&lcd0 {
        base_config_start   = <1>;
        lcd_used            = <1>;

        lcd_driver_name     = "tft08006";

        lcd_backlight       = <0>;
        lcd_if              = <4>;

        lcd_x               = <480>;
        lcd_y               = <800>;
        lcd_width           = <52>;
        lcd_height          = <52>;
        lcd_dclk_freq       = <25>;

        lcd_pwm_used        = <1>;
        lcd_pwm_ch          = <9>;
        lcd_pwm_freq        = <5000>;
        lcd_pwm_pol         = <1>;
        lcd_pwm_max_limit   = <255>;

        lcd_hbp             = <60>;
        lcd_ht              = <515>;
        lcd_hspw            = <40>;

        lcd_vbp             = <20>;
        lcd_vt              = <830>;
        lcd_vspw            = <5>;

        lcd_dsi_if          = <0>;
        lcd_dsi_lane        = <2>;
        lcd_dsi_format      = <0>;
        lcd_dsi_te          = <0>;
        lcd_dsi_eotp        = <0>;
        lcd_frm             = <0>;
        lcd_io_phase        = <0x0000>;
        lcd_hv_clk_phase    = <0>;
        lcd_hv_sync_polarity= <0>;
        lcd_gamma_en        = <0>;
        lcd_bright_curve_en = <0>;
        lcd_cmap_en         = <0>;
        lcdgamma4iep        = <22>;

        lcd_gpio_0          = <&pio PH 0 1 0 3 1>;
        pinctrl-0           = <&dsi4lane_pins_a>;
        pinctrl-1           = <&dsi4lane_pins_b>;
        base_config_end     = <1>;

};
1 个赞