From: Dave Stevenson Date: Fri, 28 Jul 2023 16:40:27 +0000 (+0100) Subject: drm/panel: simple: Alter the timing for the Pi 7" DSI display X-Git-Tag: accepted/tizen/unified/20240422.153132~344 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=337b71de2eb99b44997f7050ed1cfbc29e33acee;p=platform%2Fkernel%2Flinux-rpi.git drm/panel: simple: Alter the timing for the Pi 7" DSI display vc4 has always fixed up the timing, so the values defined have never actually appeared on the wire. The display appears to want a slightly longer HFP, so extend the timings and recompute the clock to give the same frame rate. Signed-off-by: Dave Stevenson --- diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index f2f2307..a1cf057 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3420,11 +3420,11 @@ static const struct panel_desc rocktech_rk043fn48h = { }; static const struct drm_display_mode raspberrypi_7inch_mode = { - .clock = 25979400 / 1000, + .clock = 27777, .hdisplay = 800, - .hsync_start = 800 + 2, - .hsync_end = 800 + 2 + 2, - .htotal = 800 + 2 + 2 + 46, + .hsync_start = 800 + 59, + .hsync_end = 800 + 59 + 2, + .htotal = 800 + 59 + 2 + 46, .vdisplay = 480, .vsync_start = 480 + 7, .vsync_end = 480 + 7 + 2,