1 From c7cf33911d477fe55a91a9e4d84dad857b244ae3 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 28 Jul 2023 18:10:53 +0100
4 Subject: [PATCH] drm/panel: waveshare: Fix up timings for 10.1" panel
6 The 10.1" panel doesn't work with the timings defined. vc4
7 will always have been fixing up the timing due to the limited
8 integer divider, so compute the fixed up mode and use it
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 drivers/gpu/drm/panel/panel-waveshare-dsi.c | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
16 --- a/drivers/gpu/drm/panel/panel-waveshare-dsi.c
17 +++ b/drivers/gpu/drm/panel/panel-waveshare-dsi.c
18 @@ -112,11 +112,11 @@ static const struct drm_display_mode ws_
19 * https://www.waveshare.com/product/raspberry-pi/displays/10.1inch-dsi-lcd-c.htm
21 static const struct drm_display_mode ws_panel_10_1_mode = {
25 - .hsync_start = 1280 + 40,
26 - .hsync_end = 1280 + 40 + 20,
27 - .htotal = 1280 + 40 + 20 + 40,
28 + .hsync_start = 1280 + 156,
29 + .hsync_end = 1280 + 156 + 20,
30 + .htotal = 1280 + 156 + 20 + 40,
32 .vsync_start = 800 + 40,
33 .vsync_end = 800 + 40 + 48,