drm/panel: nt36523: Set 120Hz fps for xiaomi,elish panels
authorJianhua Lu <lujianhua000@gmail.com>
Fri, 12 Jan 2024 14:00:47 +0000 (22:00 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 15 Jan 2024 08:47:43 +0000 (09:47 +0100)
After commit e6c0de5f4450 ("drm/msm/dpu: try multirect based on mdp clock limits")
merged, 120Hz is working on xiaomi,elish panels, so feature it.

Signed-off-by: Jianhua Lu <lujianhua000@gmail.com>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Link: https://lore.kernel.org/r/20240112140047.18123-1-lujianhua000@gmail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240112140047.18123-1-lujianhua000@gmail.com
drivers/gpu/drm/panel/panel-novatek-nt36523.c

index 9b9a7eb1bc606aae0449e3dda3af9879066cf314..63242c45cd7e319b23d118763ed1b9b7480407e8 100644 (file)
@@ -933,8 +933,7 @@ static int j606f_boe_init_sequence(struct panel_info *pinfo)
 
 static const struct drm_display_mode elish_boe_modes[] = {
        {
-               /* There is only one 120 Hz timing, but it doesn't work perfectly, 104 Hz preferred */
-               .clock = (1600 + 60 + 8 + 60) * (2560 + 26 + 4 + 168) * 104 / 1000,
+               .clock = (1600 + 60 + 8 + 60) * (2560 + 26 + 4 + 168) * 120 / 1000,
                .hdisplay = 1600,
                .hsync_start = 1600 + 60,
                .hsync_end = 1600 + 60 + 8,
@@ -948,8 +947,7 @@ static const struct drm_display_mode elish_boe_modes[] = {
 
 static const struct drm_display_mode elish_csot_modes[] = {
        {
-               /* There is only one 120 Hz timing, but it doesn't work perfectly, 104 Hz preferred */
-               .clock = (1600 + 200 + 40 + 52) * (2560 + 26 + 4 + 168) * 104 / 1000,
+               .clock = (1600 + 200 + 40 + 52) * (2560 + 26 + 4 + 168) * 120 / 1000,
                .hdisplay = 1600,
                .hsync_start = 1600 + 200,
                .hsync_end = 1600 + 200 + 40,