drm/panel: Fine tune Starry-ili9882t panel HFP and HBP
authorCong Yang <yangcong5@huaqin.corp-partner.google.com>
Tue, 27 Jun 2023 05:01:48 +0000 (13:01 +0800)
committerDouglas Anderson <dianders@chromium.org>
Fri, 30 Jun 2023 00:35:34 +0000 (17:35 -0700)
Because the setting of hporch is too small, there will be warning in
kernel log[1]. After fine tune the HFP and HBP, this warning can be
solved. The actual measurement frame rate is 60.1Hz.

[1]: WARNING kernel:[drm] HFP + HBP less than d-phy, FPS will under 60Hz

Fixes: 8716a6473e6c ("drm/panel: Support for Starry-ili9882t TDDI MIPI-DSI panel")
Signed-off-by: Cong Yang <yangcong5@huaqin.corp-partner.google.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230627050148.2045691-1-yangcong5@huaqin.corp-partner.google.com
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c

index 3cc9fb0..dc276c3 100644 (file)
@@ -2139,9 +2139,9 @@ static const struct panel_desc starry_himax83102_j02_desc = {
 static const struct drm_display_mode starry_ili9882t_default_mode = {
        .clock = 165280,
        .hdisplay = 1200,
-       .hsync_start = 1200 + 32,
-       .hsync_end = 1200 + 32 + 30,
-       .htotal = 1200 + 32 + 30 + 32,
+       .hsync_start = 1200 + 72,
+       .hsync_end = 1200 + 72 + 30,
+       .htotal = 1200 + 72 + 30 + 72,
        .vdisplay = 1920,
        .vsync_start = 1920 + 68,
        .vsync_end = 1920 + 68 + 2,