drm/panel: ltk050h3146w: add MIPI_DSI_MODE_VIDEO to LTK050H3148W flags
Subsystems (3)
PATCH 1/2 drm/panel: ltk050h3146w: add MIPI_DSI_MODE_VIDEO to LTK050H3148W flags
From: Heiko Stuebner <[email protected]>
Similar to other variants, the LTK050H3148W wants to run in video mode when displaying data. So far only the Synopsis DSI driver was using this panel and it is always switching to video mode, independent of this flag being set.
Other DSI drivers might handle this differently, so add the flag.
--- drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c +2 -1
@@ -326,7 +326,8 @@ static const struct drm_display_mode ltk050h3148w_mode = {static const struct ltk050h3146w_desc ltk050h3148w_data = { .mode = <k050h3148w_mode, .init = ltk050h3148w_init_sequence, - .mode_flags =MIPI_DSI_MODE_VIDEO_SYNC_PULSE |MIPI_DSI_MODE_VIDEO_BURST , + .mode_flags =MIPI_DSI_MODE_VIDEO |MIPI_DSI_MODE_VIDEO_SYNC_PULSE | +MIPI_DSI_MODE_VIDEO_BURST , };static int ltk050h3146w_init_sequence (struct ltk050h3146w *ctx)
Signature · 1 line
2.39.2
PATCH 2/2 drm/panel: ltk050h3146w: drop duplicate commands from LTK050H3148W init
From: Heiko Stuebner <[email protected]>
The init sequence specifies the 0x11 and 0x29 dsi commands, which are the exit-sleep and display-on commands.
In the actual prepare step the driver already uses the appropriate function calls for those, so drop the duplicates.
--- drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c +0 -2
@@ -295,8 +295,6 @@ static int ltk050h3148w_init_sequence(struct ltk050h3146w *ctx)mipi_dsi_dcs_write_seq (dsi,0xbd ,0x00 );mipi_dsi_dcs_write_seq (dsi,0xc6 ,0xef );mipi_dsi_dcs_write_seq (dsi,0xd4 ,0x02 ); -mipi_dsi_dcs_write_seq (dsi,0x11 ); -mipi_dsi_dcs_write_seq (dsi,0x29 ); ret =mipi_dsi_dcs_set_tear_on (dsi,1 );if (ret <0 ) {
Signature · 1 line
2.39.2
Re: [PATCH 2/2] drm/panel: ltk050h3146w: drop duplicate commands from LTK050H3148W init
Hi Heiko,
Quoted 10 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
The init sequence specifies the
0x11and0x29dsi commands, which are the exit-sleep and display-on commands.In the actual prepare step the driver already uses the appropriate function calls for those, so drop the duplicates.
Fixes e5f9d543419c ("drm/panel: ltk050h3146w: add support for Leadtek LTK050H3148W-CTA6 variant")Signed-off-by Heiko Stuebner <[email protected]>
Thanks!
Quentin
Quoted 11 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Similar to other variants, the LTK050H3148W wants to run in video mode when displaying data. So far only the Synopsis DSI driver was using this panel and it is always switching to video mode, independent of this flag being set.
Other DSI drivers might handle this differently, so add the flag.
Fixes e5f9d543419c ("drm/panel: ltk050h3146w: add support for Leadtek LTK050H3148W-CTA6 variant")Signed-off-by Heiko Stuebner <[email protected]>
Hi Heiko,
Thanks,
Jessica Zhang
Quoted 21 lines
--- drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c +2
-1@@ -326,7 +326,8 @@ static const struct drm_display_mode ltk050h3148w_mode = {static const struct ltk050h3146w_desc ltk050h3148w_data = { .mode = <k050h3148w_mode, .init = ltk050h3148w_init_sequence, - .mode_flags =MIPI_DSI_MODE_VIDEO_SYNC_PULSE |MIPI_DSI_MODE_VIDEO_BURST , + .mode_flags =MIPI_DSI_MODE_VIDEO |MIPI_DSI_MODE_VIDEO_SYNC_PULSE | +MIPI_DSI_MODE_VIDEO_BURST , };static int ltk050h3146w_init_sequence (struct ltk050h3146w *ctx)Signature · 1 line
2.39.2
Hi Heiko,
Quoted 11 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Similar to other variants, the LTK050H3148W wants to run in video mode when displaying data. So far only the Synopsis DSI driver was using this panel and it is always switching to video mode, independent of this flag being set.
Other DSI drivers might handle this differently, so add the flag.
Fixes e5f9d543419c ("drm/panel: ltk050h3146w: add support for Leadtek LTK050H3148W-CTA6 variant")Signed-off-by Heiko Stuebner <[email protected]>
Thanks!
Quentin
Heiko Stuebner
AppliedQuoted 8 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Similar to other variants, the LTK050H3148W wants to run in video mode when displaying data. So far only the Synopsis DSI driver was using this panel and it is always switching to video mode, independent of this flag being set.
[...]
Applied, thanks!
[1/2] drm/panel: ltk050h3146w: add MIPI_DSI_MODE_VIDEO to LTK050H3148W flags
commit: 80cc8c0d09e6bab3bd016ddaccd0570cadbe1891
[2/2] drm/panel: ltk050h3146w: drop duplicate commands from LTK050H3148W init
commit: 55679cc22e60e8ec23b2340248389022798416cdBest regards,
Signature · 1 line
Heiko Stuebner <[email protected]>