Skip to content
Snippets Groups Projects
Commit 50d32f2b authored by Liu Ying's avatar Liu Ying Committed by Jason Liu
Browse files

LF-4316 drm/panel: panel-raydium-rm67191: Set DSI mode to 0x0B for RM67199


Without this patch, the driver sets the DSI mode to 0x08 for RM67199,
which means 'command RAM mode' as the panel data sheet indicates.
In that mode, something like screen tearing effect can be seen when
doing page flip test by using modetest.  This patch changes the DSI
mode to 0x0B for RM67199, which means 'video RAM capture mode' and
aligns to the setting of RM67191.

Fixes: ac708b5b ("MLK-24805-1: drm/panel: rm67191: Add support for rm67199")
Cc: Sandor Yu <Sandor.yu@nxp.com>
Cc: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: default avatarSandor Yu <Sandor.yu@nxp.com>
Signed-off-by: default avatarLiu Ying <victor.liu@nxp.com>
Acked-by: default avatarJason Liu <jason.hui.liu@nxp.com>
parent 6f752c18
No related branches found
No related tags found
No related merge requests found
...@@ -366,7 +366,7 @@ static int rm67199_enable(struct rad_panel *panel) ...@@ -366,7 +366,7 @@ static int rm67199_enable(struct rad_panel *panel)
goto fail; goto fail;
/* Set DSI mode */ /* Set DSI mode */
ret = mipi_dsi_generic_write(dsi, (u8[]){ 0xC2, 0x08 }, 2); ret = mipi_dsi_generic_write(dsi, (u8[]){ 0xC2, 0x0B }, 2);
if (ret < 0) { if (ret < 0) {
dev_err(dev, "Failed to set DSI mode (%d)\n", ret); dev_err(dev, "Failed to set DSI mode (%d)\n", ret);
goto fail; goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment