Skip to content

Commit 812562b

Browse files
shuijinglisuperna9999
authored andcommitted
drm/panel: boe-tv101wum-nl6: Fine tune the panel power sequence
For "boe,tv105wum-nw0" this special panel, it is stipulated in the panel spec that MIPI needs to keep the LP11 state before the lcm_reset pin is pulled high. Signed-off-by: Shuijing Li <shuijing.li@mediatek.com> Signed-off-by: Xinlei Lee <xinlei.lee@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230515094955.15982-3-shuijing.li@mediatek.com
1 parent fe7f4e8 commit 812562b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ struct panel_desc {
3636
const struct panel_init_cmd *init_cmds;
3737
unsigned int lanes;
3838
bool discharge_on_disable;
39+
bool lp11_before_reset;
3940
};
4041

4142
struct boe_panel {
@@ -1365,6 +1366,10 @@ static int boe_panel_prepare(struct drm_panel *panel)
13651366

13661367
usleep_range(10000, 11000);
13671368

1369+
if (boe->desc->lp11_before_reset) {
1370+
mipi_dsi_dcs_nop(boe->dsi);
1371+
usleep_range(1000, 2000);
1372+
}
13681373
gpiod_set_value(boe->enable_gpio, 1);
13691374
usleep_range(1000, 2000);
13701375
gpiod_set_value(boe->enable_gpio, 0);
@@ -1591,6 +1596,7 @@ static const struct panel_desc boe_tv105wum_nw0_desc = {
15911596
.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
15921597
MIPI_DSI_MODE_LPM,
15931598
.init_cmds = boe_init_cmd,
1599+
.lp11_before_reset = true,
15941600
};
15951601

15961602
static const struct drm_display_mode starry_qfh032011_53g_default_mode = {

0 commit comments

Comments
 (0)