drm/panel: s6e63m0: Fix init sequence again
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 5 Dec 2020 12:22:29 +0000 (13:22 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 5 Dec 2020 23:58:45 +0000 (00:58 +0100)
commit47b1adc1d2a3b39233a56e183296b335222c9a6d
treef2c3cbb561eae1c03ded2e1c2dbf28f9fff708b0
parent2abb0b994db569422c79e77208d1c0d560faa57f
drm/panel: s6e63m0: Fix init sequence again

The DSI version of the panel behaved instable and close
scrutiny of the vendor driver from the Samsung
GT-S8190 shows a different initialization sequence for
the DSI mode panel than the DPI mode panel.

Make the initialization depend on whether we are in
DSI or DPI mode and handle the differences.

After this the panel on the GT-I8190 becomes much more
stable.

Also spell out some more custom DCS commands found in
the vendor source code to cut down a bit on magic
where we can.

Fixes: f0aee45ffc8b ("drm/panel: s6e63m0: Fix init sequence")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Stephan Gerhold <stephan@gerhold.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20201205122229.1952980-1-linus.walleij@linaro.org
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c