@@ -1374,6 +1374,25 @@ static const struct panel_init_cmd ws_panel_7_a_init[] = {
13741374 {},
13751375};
13761376
1377+ static const struct panel_init_cmd ws_panel_7_c_init [] = {
1378+ _INIT_DCS_CMD (0x80 , 0x8B ),
1379+ _INIT_DCS_CMD (0x81 , 0x78 ),
1380+ _INIT_DCS_CMD (0x82 , 0x84 ),
1381+ _INIT_DCS_CMD (0x83 , 0x88 ),
1382+ _INIT_DCS_CMD (0x84 , 0xA8 ),
1383+ _INIT_DCS_CMD (0x85 , 0xE3 ),
1384+ _INIT_DCS_CMD (0x86 , 0x88 ),
1385+ _INIT_DCS_CMD (0x87 , 0x5A ),
1386+ _INIT_DCS_CMD (0xB0 , 0x80 ),
1387+ _INIT_DCS_CMD (0xB1 , 0x30 ),
1388+ _INIT_DCS_CMD (0xB2 , 0x50 ),
1389+ _INIT_DCS_CMD (0x11 ),
1390+ _INIT_DELAY_CMD (120 ),
1391+ _INIT_DCS_CMD (0x29 ),
1392+ _INIT_DELAY_CMD (20 ),
1393+ {},
1394+ };
1395+
13771396static const struct panel_init_cmd ws_panel_5_5_a_init [] = {
13781397 _INIT_DCS_CMD (0xB9 , 0xFF , 0x83 , 0x94 ),
13791398 _INIT_DCS_CMD (0xBA , 0x61 , 0x03 , 0x68 , 0x6B , 0xB2 , 0xC0 ),
@@ -1902,6 +1921,20 @@ static const struct drm_display_mode ws_panel_7_a_mode = {
19021921 .height_mm = 154 ,
19031922};
19041923
1924+ static const struct drm_display_mode ws_panel_7_c_mode = {
1925+ .clock = 51700 ,
1926+ .hdisplay = 1024 ,
1927+ .hsync_start = 1024 + 160 ,
1928+ .hsync_end = 1024 + 160 + 10 ,
1929+ .htotal = 1024 + 160 + 10 + 160 ,
1930+ .vdisplay = 600 ,
1931+ .vsync_start = 600 + 12 ,
1932+ .vsync_end = 600 + 12 + 1 ,
1933+ .vtotal = 600 + 12 + 1 + 23 ,
1934+ .width_mm = 154 ,
1935+ .height_mm = 85 ,
1936+ };
1937+
19051938static const struct drm_display_mode ws_panel_5_5_a_mode = {
19061939 .clock = 65000 ,
19071940 .hdisplay = 720 ,
@@ -2201,6 +2234,15 @@ static const struct ws_panel_desc ws_panel_7_inch_a_desc = {
22012234 .format = MIPI_DSI_FMT_RGB888 ,
22022235};
22032236
2237+ static const struct ws_panel_desc ws_panel_7_inch_c_desc = {
2238+ .init = ws_panel_7_c_init ,
2239+ .mode = & ws_panel_7_c_mode ,
2240+ .mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO |
2241+ MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS ,
2242+ .lanes = 2 ,
2243+ .format = MIPI_DSI_FMT_RGB888 ,
2244+ };
2245+
22042246static const struct ws_panel_desc ws_panel_5_5_inch_a_desc = {
22052247 .init = ws_panel_5_5_a_init ,
22062248 .mode = & ws_panel_5_5_a_mode ,
@@ -2258,6 +2300,7 @@ static const struct of_device_id ws_panel_of_match[] = {
22582300 { .compatible = "waveshare,8.0-dsi-touch-a" , & ws_panel_8_inch_a_desc },
22592301 { .compatible = "waveshare,7.0-dsi-touch-a" , & ws_panel_7_inch_a_desc },
22602302 { .compatible = "waveshare,7.0-dsi-touch-b" , & ws_panel_7_inch_a_desc },
2303+ { .compatible = "waveshare,7.0-dsi-touch-c" , & ws_panel_7_inch_c_desc },
22612304 { .compatible = "waveshare,5.5-dsi-touch-a" ,
22622305 & ws_panel_5_5_inch_a_desc },
22632306 { .compatible = "waveshare,5.0-dsi-touch-a" , & ws_panel_5_inch_a_desc },
0 commit comments