| From 2d57d5b00295c99ae57c712c0f7719cdb3f44c0a Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Wed, 18 Nov 2020 09:29:49 +0100 |
| Subject: drm/panel: mantix: Tweak init sequence |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: Guido Günther <agx@sigxcpu.org> |
| |
| [ Upstream commit dd396dbc4d7811c1567cc43faa4b9ad68094c44d ] |
| |
| We've seen some (non permanent) burn in and bad white balance |
| on some of the panels. Adding this bit from a vendor supplied |
| sequence fixes it. |
| |
| Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel") |
| Signed-off-by: Guido Günther <agx@sigxcpu.org> |
| Reviewed-by: Linus Walleij <linus.walleij@linaro.org> |
| Reviewed-by: Sam Ravnborg <sam@ravnborg.org> |
| Link: https://patchwork.freedesktop.org/patch/msgid/8451831b60d5ecb73a156613d98218a31bd55680.1605688147.git.agx@sigxcpu.org |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 5 +++++ |
| 1 file changed, 5 insertions(+) |
| |
| diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c |
| index 0c5f22e95c2db..624d17b96a693 100644 |
| --- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c |
| +++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c |
| @@ -22,6 +22,7 @@ |
| /* Manufacturer specific Commands send via DSI */ |
| #define MANTIX_CMD_OTP_STOP_RELOAD_MIPI 0x41 |
| #define MANTIX_CMD_INT_CANCEL 0x4C |
| +#define MANTIX_CMD_SPI_FINISH 0x90 |
| |
| struct mantix { |
| struct device *dev; |
| @@ -66,6 +67,10 @@ static int mantix_init_sequence(struct mantix *ctx) |
| dsi_generic_write_seq(dsi, 0x80, 0x64, 0x00, 0x64, 0x00, 0x00); |
| msleep(20); |
| |
| + dsi_generic_write_seq(dsi, MANTIX_CMD_SPI_FINISH, 0xA5); |
| + dsi_generic_write_seq(dsi, MANTIX_CMD_OTP_STOP_RELOAD_MIPI, 0x00, 0x2F); |
| + msleep(20); |
| + |
| dev_dbg(dev, "Panel init sequence done\n"); |
| return 0; |
| } |
| -- |
| 2.27.0 |
| |