Skip to content

Commit 29c6df0

Browse files
committed
drm/panel: khadas-ts050: update timings to achieve 60Hz refresh rate
This updates the panel timings to achieve a clean 60Hz refresh rate. Reviewed-by: Nicolas Belin <nbelin@baylibre.com> Tested-by: Nicolas Belin <nbelin@baylibre.com> # on Khadas VIM3 + TS050 Panel Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230512-amlogic-v6-4-upstream-dsi-ccf-vim3-v5-13-56eb7a4d5b8e@linaro.org
1 parent 77d9e1e commit 29c6df0

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

drivers/gpu/drm/panel/panel-khadas-ts050.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ static const struct khadas_ts050_panel_cmd init_code[] = {
568568
{0xfb, 0x01},
569569
/* Select CMD1 */
570570
{0xff, 0x00},
571-
{0xd3, 0x05}, /* RGBMIPICTRL: VSYNC back porch = 5 */
571+
{0xd3, 0x22}, /* RGBMIPICTRL: VSYNC back porch = 34 */
572572
{0xd4, 0x04}, /* RGBMIPICTRL: VSYNC front porch = 4 */
573573
};
574574

@@ -717,15 +717,15 @@ static int khadas_ts050_panel_disable(struct drm_panel *panel)
717717
}
718718

719719
static const struct drm_display_mode default_mode = {
720-
.clock = 120000,
721-
.hdisplay = 1088,
722-
.hsync_start = 1088 + 104,
723-
.hsync_end = 1088 + 104 + 4,
724-
.htotal = 1088 + 104 + 4 + 127,
720+
.clock = 160000,
721+
.hdisplay = 1080,
722+
.hsync_start = 1080 + 117,
723+
.hsync_end = 1080 + 117 + 5,
724+
.htotal = 1080 + 117 + 5 + 160,
725725
.vdisplay = 1920,
726726
.vsync_start = 1920 + 4,
727-
.vsync_end = 1920 + 4 + 2,
728-
.vtotal = 1920 + 4 + 2 + 3,
727+
.vsync_end = 1920 + 4 + 3,
728+
.vtotal = 1920 + 4 + 3 + 31,
729729
.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
730730
};
731731

0 commit comments

Comments
 (0)