mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From c7cf33911d477fe55a91a9e4d84dad857b244ae3 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] 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,
|