@@ -303,6 +303,27 @@ static const struct ws_panel_data ws_panel_13_3_2lane_data = {
303
303
.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_LPM ,
304
304
};
305
305
306
+ /* 7.0inch 1280x720
307
+ * https://www.waveshare.com/7inch-dsi-lcd-h.htm
308
+ */
309
+ static const struct drm_display_mode ws_panel_7_0_h_mode = {
310
+ .clock = 83333 ,
311
+ .hdisplay = 1280 ,
312
+ .hsync_start = 1280 + 64 ,
313
+ .hsync_end = 1280 + 64 + 64 ,
314
+ .htotal = 1280 + 64 + 64 + 64 ,
315
+ .vdisplay = 720 ,
316
+ .vsync_start = 720 + 64 ,
317
+ .vsync_end = 720 + 64 + 64 ,
318
+ .vtotal = 720 + 64 + 64 + 64 ,
319
+ };
320
+
321
+ static const struct ws_panel_data ws_panel_7_0_h_data = {
322
+ .mode = & ws_panel_7_0_h_mode ,
323
+ .lanes = 2 ,
324
+ .mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS ,
325
+ };
326
+
306
327
static struct ws_panel * panel_to_ts (struct drm_panel * panel )
307
328
{
308
329
return container_of (panel , struct ws_panel , base );
@@ -587,6 +608,9 @@ static const struct of_device_id ws_panel_of_ids[] = {
587
608
}, {
588
609
.compatible = "waveshare,13.3inch-2lane-panel" ,
589
610
.data = & ws_panel_13_3_2lane_data ,
611
+ }, {
612
+ .compatible = "waveshare,7.0inch-h-panel" ,
613
+ .data = & ws_panel_7_0_h_data ,
590
614
}, {
591
615
/* sentinel */
592
616
}
0 commit comments