@@ -246,6 +246,27 @@ static const struct ws_panel_data ws_panel_6_25_data = {
246246 .mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS ,
247247};
248248
249+ /* 6.25inch B 720x1560
250+ * https://www.waveshare.com/6.25inch-dsi-lcd-b.htm
251+ */
252+ static const struct drm_display_mode ws_panel_6_25_b_mode = {
253+ .clock = 83333 ,
254+ .hdisplay = 720 ,
255+ .hsync_start = 720 + 50 ,
256+ .hsync_end = 720 + 50 + 50 ,
257+ .htotal = 720 + 50 + 50 + 50 ,
258+ .vdisplay = 1560 ,
259+ .vsync_start = 1560 + 9 ,
260+ .vsync_end = 1560 + 9 + 9 ,
261+ .vtotal = 1560 + 9 + 9 + 9 ,
262+ };
263+
264+ static const struct ws_panel_data ws_panel_6_25_b_data = {
265+ .mode = & ws_panel_6_25_b_mode ,
266+ .lanes = 2 ,
267+ .mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS ,
268+ };
269+
249270/* 8.8inch 480x1920
250271 * https://www.waveshare.com/8.8inch-dsi-lcd.htm
251272 */
@@ -599,6 +620,9 @@ static const struct of_device_id ws_panel_of_ids[] = {
599620 }, {
600621 .compatible = "waveshare,6.25inch-panel" ,
601622 .data = & ws_panel_6_25_data ,
623+ }, {
624+ .compatible = "waveshare,6.25inch-b-panel" ,
625+ .data = & ws_panel_6_25_b_data ,
602626 }, {
603627 .compatible = "waveshare,8.8inch-panel" ,
604628 .data = & ws_panel_8_8_data ,
0 commit comments