Skip to content

Commit dee23b2

Browse files
lumagsuperna9999
authored andcommitted
drm/panel: sharp-ls043t1le01: adjust mode settings
Using current settings causes panel flickering on APQ8074 dragonboard. Adjust panel settings to follow the vendor-provided mode. This also enables MIPI_DSI_MODE_VIDEO_SYNC_PULSE, which is also specified by the vendor dtsi for the mentioned dragonboard. Fixes: ee01723 ("drm/panel: Add Sharp LS043T1LE01 MIPI DSI panel") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230507172639.2320934-1-dmitry.baryshkov@linaro.org
1 parent 123ee07 commit dee23b2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ static int sharp_nt_panel_enable(struct drm_panel *panel)
192192
}
193193

194194
static const struct drm_display_mode default_mode = {
195-
.clock = 41118,
195+
.clock = (540 + 48 + 32 + 80) * (960 + 3 + 10 + 15) * 60 / 1000,
196196
.hdisplay = 540,
197197
.hsync_start = 540 + 48,
198-
.hsync_end = 540 + 48 + 80,
199-
.htotal = 540 + 48 + 80 + 32,
198+
.hsync_end = 540 + 48 + 32,
199+
.htotal = 540 + 48 + 32 + 80,
200200
.vdisplay = 960,
201201
.vsync_start = 960 + 3,
202-
.vsync_end = 960 + 3 + 15,
203-
.vtotal = 960 + 3 + 15 + 1,
202+
.vsync_end = 960 + 3 + 10,
203+
.vtotal = 960 + 3 + 10 + 15,
204204
};
205205

206206
static int sharp_nt_panel_get_modes(struct drm_panel *panel,
@@ -280,6 +280,7 @@ static int sharp_nt_panel_probe(struct mipi_dsi_device *dsi)
280280
dsi->lanes = 2;
281281
dsi->format = MIPI_DSI_FMT_RGB888;
282282
dsi->mode_flags = MIPI_DSI_MODE_VIDEO |
283+
MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
283284
MIPI_DSI_MODE_VIDEO_HSE |
284285
MIPI_DSI_CLOCK_NON_CONTINUOUS |
285286
MIPI_DSI_MODE_NO_EOT_PACKET;

0 commit comments

Comments
 (0)