UBOOT设置树配置如下:
&lcd0 { /for MIPI 7’ 1024600*/
lcd_used = <1>;
lcd_driver_name = "tft08006";
lcd_backlight = <50>;
lcd_if = <4>;
lcd_x = <1024>;
lcd_y = <600>;
lcd_width = <154>;
lcd_height = <85>;
lcd_dclk_freq = <51>; /*<51>;*/
lcd_pwm_used = <1>;
lcd_pwm_ch = <7>;
lcd_pwm_freq = <50000>;
lcd_pwm_pol = <1>;
lcd_pwm_max_limit = <255>;
lcd_hbp = <160>;
lcd_ht = <1344>;
lcd_hspw = <10>;
lcd_vbp = <23>;
lcd_vt = <635>;
lcd_vspw = <5>;
lcd_dsi_lane = <4>;
lcd_dsi_if = <2>;
lcd_dsi_format = <0>;
lcd_dsi_te = <0>;
lcd_frm = <0>;
lcd_io_phase = <0>;
lcd_gamma_en = <0>;
lcd_bright_curve_en = <0>;
lcd_cmap_en = <0>;
deu_mode = <0>;
lcdgamma4iep = <22>;
smart_color = <90>;
lcd_gpio_0 = <&pio PG 13 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&dsi4lane_pins_a>;
pinctrl-1 = <&dsi4lane_pins_b>;
};
屏的驱动文件修改如下:是按屏厂家给的数据初始化的
static struct LCM_setting_table lcm_tft08006_setting[] = {
{0xB2,1,{0x70}},
{0x80,1,{0x8B}},
{0x81,1,{0x78}},
{0x82,1,{0x84}},
{0x83,1,{0x88}},
{0x84,1,{0xa8}},
{0x85,1,{0xe3}},
{0x86,1,{0x88}},
{0x11,0,{0x00}},
{REGFLAG_DELAY,REGFLAG_DELAY,{200}},
{0x29,0,{0x00}},
{REGFLAG_DELAY, REGFLAG_DELAY, {50} },
{REGFLAG_END_OF_TABLE, REGFLAG_END_OF_TABLE, {} }
}
启动后黑屏,进入系统后查看/sys/class/disp/disp/attr/sys,显示如下:
其中的err:与irq:一直相同,哪位大佬知道为什么?