drm/panel: simple: fix flags on RK043FN48H
authorRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Mon, 5 Feb 2024 09:06:54 +0000 (10:06 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 7 Feb 2024 09:15:50 +0000 (10:15 +0100)
DISPLAY_FLAGS_SYNC_POSEDGE is missing in the flags on the default
timings. When overriding the default mode with one described in the
device tree, the mode does not get acked because of this missing flag.
Moreover since the panel is driven by the positive edge it makes sense
to add it here.

Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Link: https://lore.kernel.org/r/20240205-ltdc_mp13-v1-4-072d24bf1b36@foss.st.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240205-ltdc_mp13-v1-4-072d24bf1b36@foss.st.com
drivers/gpu/drm/panel/panel-simple.c

index c62281c..200f422 100644 (file)
@@ -3550,7 +3550,8 @@ static const struct display_timing rocktech_rk043fn48h_timing = {
        .vfront_porch = { 1, 4, 4 },
        .vsync_len = { 1, 10, 10 },
        .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
-                DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
+                DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
+                DISPLAY_FLAGS_SYNC_POSEDGE,
 };
 
 static const struct panel_desc rocktech_rk043fn48h = {