drm/panel: st7703: Pick different reset sequence
authorOndrej Jirman <megi@xff.cz>
Sat, 11 Feb 2023 17:17:48 +0000 (18:17 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sun, 15 Oct 2023 12:22:51 +0000 (14:22 +0200)
commitd12d635bb03c7cb4830acb641eb176ee9ff2aa89
tree58d2ef2a8ed2b58b2b12129ca2a5d43971f0f8d8
parenta48e2cc92835fa1d9b373b804b2173c779387b8e
drm/panel: st7703: Pick different reset sequence

Switching to a different reset sequence, enabling IOVCC before enabling
VCC.

There also needs to be a delay after enabling the supplies and before
deasserting the reset. The datasheet specifies 1ms after the supplies
reach the required voltage. Use 10-20ms to also give the power supplies
some time to reach the required voltage, too.

This fixes intermittent panel initialization failures and screen
corruption during resume from sleep on panel xingbangda,xbd599 (e.g.
used in PinePhone).

Signed-off-by: Ondrej Jirman <megi@xff.cz>
Signed-off-by: Frank Oltmanns <frank@oltmanns.dev>
Reported-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
Tested-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230211171748.36692-2-frank@oltmanns.dev
drivers/gpu/drm/panel/panel-sitronix-st7703.c