Which Khadas SBC do you use?
KVIM3
Which system do you use? Android, Ubuntu, OOWOW or others?
Ubuntu Focal / Gnome
Which version of system do you use? Khadas official images, self built images, or others?
Fenix Linux 4.9
Please describe your issue below:
Good Afternoon,
I have been developing support for the 480x480 touch display (Model E40RC-FS1000) on Linux 4.9 built with Fenix. I have already designed FPC and backlight PCB for this panel and confirmed they are working. My approach is to use the TS080 driver but modify it to my needs. I have modified the DTS and made the kernel always use lcd-0 and always enable backlight. Both are working, but the image comes across garbled. Could this be something in the DTS or something else like screen resolution?The DTS entry is below:
Post a console log of your issue below:
khadas-ts050-panel.dtsi
lcd_0{
model_name = "TS050";
interface = "mipi";
basic_setting = <480 480 /*h_active, v_active was 488 484*/
548 514
/*h_period [548], v_period [514]*/
8 /*lcd_bits*/
80 77>; /*screen_width, screen_height 80 77*/
lcd_timing = <8 50 0 /*hs_width,hs_bp,hs_pol*/
4 20 0>; /*vs_width,vs_bp,vs_pol*/
clk_attr = <0 /*fr_adj_type(0=clock,1=htotal,2=vtotal)*/
0 /*clk_ss_level*/
1 /*clk_auto_generate*/
17000000>; /*pixel_clk(unit in Hz) was 120000000 [16900320=Vp*Hp*60]*/
mipi_attr = <2 /*lane_num*/
1000 /*bit_rate_max(MHz) was 1000 [56.666=17/0.3]*/
0 /*factor(*100, default 0 for auto)*/
1 /*operation_mode_init(0=video, 1=command)*/
0 /*operation_mode_display(0=video, 1=command)*/
2 /*
*video_mode_type
*(0=sync_pulse,1=sync_event,2=burst)
*/
1 /*clk_always_hs(0=disable,1=enable)*/
0>; /*phy_switch(0=auto,1=standard,2=slow)*/
/* dsi_init: data_type, num, data... */
dsi_init_on = <
0x05 0x01 0x11
0xfd 0x01 120 /* delay 120ms */
0x05 0x01 0x23 /* White Flash */
0xfd 0x01 120 /* delay 120ms */
0x05 0x01 0x13 /*Nor On*/
0x39 0x06 0xFF 0x77 0x01 0x00 0x00 0x10
0x39 0x03 0xC0 0x3B 0x00
0x39 0x03 0xC1 0x0D 0x02 /* Porch Ctrl */
0x39 0x03 0xC2 0x37 0x05
0x39 0x11 0xB0 0x00 0x11 0x18 0x0E 0x11 0x06 0x07 0x08 0x07 0x22 0x04 0x12 0x0F 0xAA 0x31 0x18
0x39 0x11 0xB1 0x00 0x11 0x19 0x0E 0x12 0x07 0x08 0x08 0x08 0x22 0x04 0x11 0x11 0xA9 0x32 0x18
0x39 0x06 0xFF 0x77 0x01 0x00 0x00 0x11
0x15 0x02 0xB0 0x60
0x15 0x02 0xB1 0x26
0x15 0x02 0xB2 0x07
/*0x15 0x02 0xB3 0x80*/
0x15 0x02 0xB5 0x49
0x15 0x02 0xB7 0x85
0x15 0x02 0xB8 0x21
0x15 0x02 0xC1 0x78
0x15 0x02 0xC2 0x78
0x39 0x04 0xE0 0x00 0x1B 0x02
0x39 0x0C 0xE1 0x08 0xA0 0x00 0x00 0x07 0xA0 0x00 0x00 0x00 0x44 0x44
0x39 0x0D 0xE2 0x11 0x11 0x44 0x44 0xED 0xA0 0x00 0x00 0xEC 0xA0 0x00 0x00
0x39 0x05 0xE3 0x00 0x00 0x11 0x11
0x39 0x03 0xE4 0x44 0x44
0x39 0x11 0xE5 0x0A 0xE9 0xD8 0xA0 0x0C 0xEB 0xD8 0xA0 0x0E 0xED 0xD8 0xA0 0x10 0xEF 0xD8 0xA0
0x39 0x05 0xE6 0x00 0x00 0x11 0x11
0x39 0x03 0xE7 0x44 0x44
0x39 0x11 0xE8 0x09 0xE8 0xD8 0xA0 0x0B 0xEA 0xD8 0xA0 0x0D 0xEC 0xD8 0xA0 0x0F 0xEE 0xD8 0xA0
0x39 0x08 0xEB 0x02 0x00 0xE4 0xE4 0x88 0x00 0x40
0x39 0x03 0xEC 0x3C 0x00
0x39 0x11 0xED 0xAB 0x89 0x76 0x54 0x02 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x20 0x45 0x67 0x98 0xBA
0x39 0x06 0xFF 0x77 0x01 0x00 0x00 0x13
0x15 0x02 0xE5 0xE4
0x39 0x06 0xFF 0x77 0x01 0x00 0x00 0x00
0x15 0x02 0x36 0x00
0x15 0x02 0x3A 0x70
0x05 0x01 0x29
0xfd 0x01 25 /* delay 25ms */
0xFF 0>; /*ending*/
The result is a shifted / chopped ubuntu login screen:
Any ideas on what could be causing this?
Thanks in advance.