Skip to content

Commit 61f028c

Browse files
dos1superna9999
authored andcommitted
drm/panel: mantix: Improve power off sequence
According to the sequence from section 7.3.4 of FT8006P datasheet, TP_RSTN and RESX should be asserted after disabling AVDD and AVEE and together with VDDI. Also, AVEE power down needs to happen at least 150ms after entering sleep mode. Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260105-mantix-halo-fixes-v1-3-1ebc9b195a34@puri.sm
1 parent dca84cc commit 61f028c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,26 @@ static int mantix_disable(struct drm_panel *panel)
9696
mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
9797
mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);
9898

99+
/* T10 */
100+
mipi_dsi_msleep(&dsi_ctx, 150);
101+
99102
return dsi_ctx.accum_err;
100103
}
101104

102105
static int mantix_unprepare(struct drm_panel *panel)
103106
{
104107
struct mantix *ctx = panel_to_mantix(panel);
105108

106-
gpiod_set_value_cansleep(ctx->tp_rstn_gpio, 1);
107-
usleep_range(5000, 6000);
108-
gpiod_set_value_cansleep(ctx->reset_gpio, 1);
109-
110109
regulator_disable(ctx->avee);
111110
regulator_disable(ctx->avdd);
112111
/* T11 */
113112
usleep_range(5000, 6000);
114113
regulator_disable(ctx->vddi);
114+
115+
gpiod_set_value_cansleep(ctx->tp_rstn_gpio, 1);
116+
usleep_range(5000, 6000);
117+
gpiod_set_value_cansleep(ctx->reset_gpio, 1);
118+
115119
/* T14 */
116120
msleep(50);
117121

0 commit comments

Comments
 (0)