Files
openwrt-armor-g5/target/linux/bcm27xx/patches-6.6/950-0637-drm-panel-waveshare-Fix-up-timings-for-10.1-panel.patch
domenico 27c9d80f51
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 12:51:15 +02:00

35 lines
1.2 KiB
Diff

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