diff options
author | Julius Werner <jwerner@chromium.org> | 2021-08-12 16:48:12 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-08-18 14:21:28 +0000 |
commit | b2a14801916ad9dfa2a6b4fa9ceb6de7d2d03e24 (patch) | |
tree | 75788742da59525637ea977bcb419891f98d0c2e /src/device | |
parent | 4080e08c09a4f063ed1df280e74fa2b87d304b87 (diff) |
device: Move MIPI panel library from mainboard/google/kukui into common
All boards that are trying to use MIPI panels eventually run into the
problem that they need to store physical parameters and a list of DCS
initialization commands for each panel, and these commands can be very
different (e.g. a large amount of very short commands, a few very large
commands, etc.). Finding a data format to fit all these different cases
efficiently into the same structures keeps being a challenge, and the
Kukui mainboard already once put a lot of effort into designing a
clean, flexible and efficient solution for this. This patch moves that
framework into a common src/device/mipi/ library where it can be used by
other boards as well. (Also, this will hopefully allow us to save some
duplicated work when using the same panel on different boards at some
point.)
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I877f2b0c7ab984412b288e2ed27f37cd93c70863
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56965
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/Kconfig | 2 | ||||
-rw-r--r-- | src/device/Makefile.inc | 2 | ||||
-rw-r--r-- | src/device/mipi/Kconfig | 37 | ||||
-rw-r--r-- | src/device/mipi/Makefile.inc | 28 | ||||
-rw-r--r-- | src/device/mipi/panel-AUO_B101UAN08_3.c | 68 | ||||
-rw-r--r-- | src/device/mipi/panel-AUO_KD101N80_45NA.c | 30 | ||||
-rw-r--r-- | src/device/mipi/panel-AUO_NT51021D8P.c | 28 | ||||
-rw-r--r-- | src/device/mipi/panel-BOE_TV080WUM_NG0.c | 337 | ||||
-rw-r--r-- | src/device/mipi/panel-BOE_TV101WUM_N53.c | 317 | ||||
-rw-r--r-- | src/device/mipi/panel-BOE_TV101WUM_NG0.c | 337 | ||||
-rw-r--r-- | src/device/mipi/panel-BOE_TV101WUM_NL6.c | 317 | ||||
-rw-r--r-- | src/device/mipi/panel-BOE_TV105WUM_NW0.c | 321 | ||||
-rw-r--r-- | src/device/mipi/panel-CMN_P097PFG_SSD2858.c | 72 | ||||
-rw-r--r-- | src/device/mipi/panel-INX_OTA7290D10P.c | 281 | ||||
-rw-r--r-- | src/device/mipi/panel-STA_2081101QFH032011_53G.c | 118 | ||||
-rw-r--r-- | src/device/mipi/panel.c | 48 |
16 files changed, 2342 insertions, 1 deletions
diff --git a/src/device/Kconfig b/src/device/Kconfig index 5ae3466d32..16daeaa25d 100644 --- a/src/device/Kconfig +++ b/src/device/Kconfig @@ -1,5 +1,7 @@ ## SPDX-License-Identifier: GPL-2.0-only +source "src/device/mipi/Kconfig" + menu "Devices" config HAVE_VGA_TEXT_FRAMEBUFFER diff --git a/src/device/Makefile.inc b/src/device/Makefile.inc index 808648d4b4..70013c9f06 100644 --- a/src/device/Makefile.inc +++ b/src/device/Makefile.inc @@ -40,7 +40,7 @@ ramstage-$(CONFIG_PCIEXP_PLUGIN_SUPPORT) += pciexp_device.c ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c endif -subdirs-y += oprom dram +subdirs-y += oprom dram mipi bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c diff --git a/src/device/mipi/Kconfig b/src/device/mipi/Kconfig new file mode 100644 index 0000000000..0b05e463ba --- /dev/null +++ b/src/device/mipi/Kconfig @@ -0,0 +1,37 @@ +## SPDX-License-Identifier: GPL-2.0-only + +# Mainboards should select the options in here to specify which panel parameter +# settings they want stored in their CBFS. + +config MIPI_PANEL_AUO_B101UAN08_3 + bool + +config MIPI_PANEL_AUO_KD101N80_45NA + bool + +config MIPI_PANEL_AUO_NT51021D8P + bool + +config MIPI_PANEL_BOE_TV080WUM_NG0 + bool + +config MIPI_PANEL_BOE_TV101WUM_N53 + bool + +config MIPI_PANEL_BOE_TV101WUM_NG0 + bool + +config MIPI_PANEL_BOE_TV101WUM_NL6 + bool + +config MIPI_PANEL_BOE_TV105WUM_NW0 + bool + +config MIPI_PANEL_CMN_P097PFG_SSD2858 + bool + +config MIPI_PANEL_INX_OTA7290D10P + bool + +config MIPI_PANEL_STA_2081101QFH032011_53G + bool diff --git a/src/device/mipi/Makefile.inc b/src/device/mipi/Makefile.inc new file mode 100644 index 0000000000..cea7c3afc0 --- /dev/null +++ b/src/device/mipi/Makefile.inc @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0-only + +ramstage-y += panel.c + +panel-params-y := + +panel-params-$(CONFIG_MIPI_PANEL_AUO_B101UAN08_3) += panel-AUO_B101UAN08_3 +panel-params-$(CONFIG_MIPI_PANEL_AUO_KD101N80_45NA) += panel-AUO_KD101N80_45NA +panel-params-$(CONFIG_MIPI_PANEL_AUO_NT51021D8P) += panel-AUO_NT51021D8P + +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV080WUM_NG0) += panel-BOE_TV080WUM_NG0 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_N53) += panel-BOE_TV101WUM_N53 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NG0) += panel-BOE_TV101WUM_NG0 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NL6) += panel-BOE_TV101WUM_NL6 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV105WUM_NW0) += panel-BOE_TV105WUM_NW0 + +panel-params-$(CONFIG_MIPI_PANEL_CMN_P097PFG_SSD2858) += panel-CMN_P097PFG_SSD2858 + +panel-params-$(CONFIG_MIPI_PANEL_INX_OTA7290D10P) += panel-INX_OTA7290D10P + +panel-params-$(CONFIG_MIPI_PANEL_STA_2081101QFH032011_53G) += panel-STA_2081101QFH032011_53G + +$(foreach params,$(panel-params-y), \ + $(eval cbfs-files-y += $(params)) \ + $(eval $(params)-file := $(params).c:struct) \ + $(eval $(params)-type := struct) \ + $(eval $(params)-compression := $(CBFS_COMPRESS_FLAG)) \ +) diff --git a/src/device/mipi/panel-AUO_B101UAN08_3.c b/src/device/mipi/panel-AUO_B101UAN08_3.c new file mode 100644 index 0000000000..5bdb7ba3cb --- /dev/null +++ b/src/device/mipi/panel-AUO_B101UAN08_3.c @@ -0,0 +1,68 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data AUO_B101UAN08_3 = { + .edid = { + .ascii_string = "B101UAN08.3", + .manufacturer_name = "AUO", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159192, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 144, .hso = 60, .hspw = 4, + .va = 1920, .vbl = 60, .vso = 34, .vspw = 2, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 216, + }, + }, + .orientation = LB_FB_ORIENTATION_LEFT_UP, + .init = { + PANEL_DELAY(24), + PANEL_DCS(0xB0, 0x01), + PANEL_DCS(0xC0, 0x48), + PANEL_DCS(0xC1, 0x48), + PANEL_DCS(0xC2, 0x47), + PANEL_DCS(0xC3, 0x47), + PANEL_DCS(0xC4, 0x46), + PANEL_DCS(0xC5, 0x46), + PANEL_DCS(0xC6, 0x45), + PANEL_DCS(0xC7, 0x45), + PANEL_DCS(0xC8, 0x64), + PANEL_DCS(0xC9, 0x64), + PANEL_DCS(0xCA, 0x4F), + PANEL_DCS(0xCB, 0x4F), + PANEL_DCS(0xCC, 0x40), + PANEL_DCS(0xCD, 0x40), + PANEL_DCS(0xCE, 0x66), + PANEL_DCS(0xCF, 0x66), + PANEL_DCS(0xD0, 0x4F), + PANEL_DCS(0xD1, 0x4F), + PANEL_DCS(0xD2, 0x41), + PANEL_DCS(0xD3, 0x41), + PANEL_DCS(0xD4, 0x48), + PANEL_DCS(0xD5, 0x48), + PANEL_DCS(0xD6, 0x47), + PANEL_DCS(0xD7, 0x47), + PANEL_DCS(0xD8, 0x46), + PANEL_DCS(0xD9, 0x46), + PANEL_DCS(0xDA, 0x45), + PANEL_DCS(0xDB, 0x45), + PANEL_DCS(0xDC, 0x64), + PANEL_DCS(0xDD, 0x64), + PANEL_DCS(0xDE, 0x4F), + PANEL_DCS(0xDF, 0x4F), + PANEL_DCS(0xE0, 0x40), + PANEL_DCS(0xE1, 0x40), + PANEL_DCS(0xE2, 0x66), + PANEL_DCS(0xE3, 0x66), + PANEL_DCS(0xE4, 0x4F), + PANEL_DCS(0xE5, 0x4F), + PANEL_DCS(0xE6, 0x41), + PANEL_DCS(0xE7, 0x41), + PANEL_DELAY(150), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-AUO_KD101N80_45NA.c b/src/device/mipi/panel-AUO_KD101N80_45NA.c new file mode 100644 index 0000000000..5856b0d8a0 --- /dev/null +++ b/src/device/mipi/panel-AUO_KD101N80_45NA.c @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data AUO_KD101N80_45NA = { + .edid = { + .ascii_string = "KD101N80-45NA", + .manufacturer_name = "AUO", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 157000, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 140, .hso = 80, .hspw = 24, + .va = 1920, .vbl = 36, .vso = 16, .vspw = 4, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 216, + }, + }, + .orientation = LB_FB_ORIENTATION_LEFT_UP, + .init = { + PANEL_DELAY(10), + PANEL_DCS(0x11), + PANEL_DELAY(120), + PANEL_DCS(0x29), + PANEL_DELAY(20), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-AUO_NT51021D8P.c b/src/device/mipi/panel-AUO_NT51021D8P.c new file mode 100644 index 0000000000..37c41fdb3d --- /dev/null +++ b/src/device/mipi/panel-AUO_NT51021D8P.c @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data AUO_NT51021D8P = { + .edid = { + .ascii_string = "NT51021D8P", + .manufacturer_name = "AUO", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159420, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 141, .hso = 80, .hspw = 1, + .va = 1920, .vbl = 61, .vso = 35, .vspw = 1, + .phsync = '-', .pvsync = '-', + .x_mm = 107, .y_mm = 132, + }, + }, + .init = { + PANEL_DCS(0x11), + PANEL_DELAY(0x78), + PANEL_DCS(0x29), + PANEL_DELAY(0x14), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-BOE_TV080WUM_NG0.c b/src/device/mipi/panel-BOE_TV080WUM_NG0.c new file mode 100644 index 0000000000..baeb655644 --- /dev/null +++ b/src/device/mipi/panel-BOE_TV080WUM_NG0.c @@ -0,0 +1,337 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data BOE_TV080WUM_NG0 = { + .edid = { + .ascii_string = "TV080WUM-NG0", + .manufacturer_name = "BOE", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159420, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24, + .va = 1920, .vbl = 28, .vso = 10, .vspw = 4, + .phsync = '-', .pvsync = '-', + .x_mm = 107, .y_mm = 132, + }, + }, + .init = { + PANEL_DCS(0x10), + PANEL_DELAY(0x22), + PANEL_DCS(0xB0, 0x05), + PANEL_DCS(0xB1, 0xE5), + PANEL_DCS(0xB3, 0x52), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x88), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB2, 0x50), + PANEL_DCS(0xB6, 0x03), + PANEL_DCS(0xBA, 0x8B), + PANEL_DCS(0xBF, 0x15), + PANEL_DCS(0xC0, 0x0F), + PANEL_DCS(0xC2, 0x0C), + PANEL_DCS(0xC3, 0x02), + PANEL_DCS(0xC4, 0x0C), + PANEL_DCS(0xC5, 0x02), + PANEL_DCS(0xB0, 0x01), + PANEL_DCS(0xE0, 0x26), + PANEL_DCS(0xE1, 0x26), + PANEL_DCS(0xDC, 0x00), + PANEL_DCS(0xDD, 0x00), + PANEL_DCS(0xCC, 0x26), + PANEL_DCS(0xCD, 0x26), + PANEL_DCS(0xC8, 0x00), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xD2, 0x04), + PANEL_DCS(0xD3, 0x04), + PANEL_DCS(0xE6, 0x03), + PANEL_DCS(0xE7, 0x03), + PANEL_DCS(0xC4, 0x08), + PANEL_DCS(0xC5, 0x08), + PANEL_DCS(0xD8, 0x07), + PANEL_DCS(0xD9, 0x07), + PANEL_DCS(0xC2, 0x06), + PANEL_DCS(0xC3, 0x06), + PANEL_DCS(0xD6, 0x05), + PANEL_DCS(0xD7, 0x05), + PANEL_DCS(0xC0, 0x0C), + PANEL_DCS(0xC1, 0x0C), + PANEL_DCS(0xD4, 0x0B), + PANEL_DCS(0xD5, 0x0B), + PANEL_DCS(0xCA, 0x0A), + PANEL_DCS(0xCB, 0x0A), + PANEL_DCS(0xDE, 0x09), + PANEL_DCS(0xDF, 0x09), + PANEL_DCS(0xC6, 0x26), + PANEL_DCS(0xC7, 0x26), + PANEL_DCS(0xCE, 0x00), + PANEL_DCS(0xCF, 0x00), + PANEL_DCS(0xDA, 0x26), + PANEL_DCS(0xDB, 0x26), + PANEL_DCS(0xE2, 0x00), + PANEL_DCS(0xE3, 0x00), + PANEL_DCS(0xB0, 0x02), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xC1, 0x07), + PANEL_DCS(0xC2, 0x0D), + PANEL_DCS(0xC3, 0x18), + PANEL_DCS(0xC4, 0x27), + PANEL_DCS(0xC5, 0x28), + PANEL_DCS(0xC6, 0x30), + PANEL_DCS(0xC7, 0x2E), + PANEL_DCS(0xC8, 0x2F), + PANEL_DCS(0xC9, 0x1A), + PANEL_DCS(0xCA, 0x20), + PANEL_DCS(0xCB, 0x29), + PANEL_DCS(0xCC, 0x26), + PANEL_DCS(0xCD, 0x32), + PANEL_DCS(0xCE, 0x33), + PANEL_DCS(0xCF, 0x31), + PANEL_DCS(0xD0, 0x06), + PANEL_DCS(0xD2, 0x00), + PANEL_DCS(0xD3, 0x07), + PANEL_DCS(0xD4, 0x12), + PANEL_DCS(0xD5, 0x26), + PANEL_DCS(0xD6, 0x3D), + PANEL_DCS(0xD7, 0x3F), + PANEL_DCS(0xD8, 0x3F), + PANEL_DCS(0xD9, 0x3F), + PANEL_DCS(0xDA, 0x3F), + PANEL_DCS(0xDB, 0x3F), + PANEL_DCS(0xDC, 0x3F), + PANEL_DCS(0xDD, 0x3F), + PANEL_DCS(0xDE, 0x3F), + PANEL_DCS(0xDF, 0x3A), + PANEL_DCS(0xE0, 0x37), + PANEL_DCS(0xE1, 0x35), + PANEL_DCS(0xE2, 0x07), + PANEL_DCS(0xB0, 0x03), + PANEL_DCS(0xC8, 0x0B), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xC3, 0x00), + PANEL_DCS(0xE7, 0x00), + PANEL_DCS(0xC5, 0x2A), + PANEL_DCS(0xDE, 0x2A), + PANEL_DCS(0xCA, 0x43), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xE4, 0xC0), + PANEL_DCS(0xE5, 0x0D), + PANEL_DCS(0xCB, 0x00), + PANEL_DCS(0xB0, 0x06), + PANEL_DCS(0xB8, 0xA5), + PANEL_DCS(0xC0, 0xA5), + PANEL_DCS(0xC7, 0x0F), + PANEL_DCS(0xD5, 0x32), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xBC, 0x00), + PANEL_DCS(0xB0, 0x07), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x09), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x2F), + PANEL_DCS(0xB5, 0x44), + PANEL_DCS(0xB6, 0x52), + PANEL_DCS(0xB7, 0x6A), + PANEL_DCS(0xB8, 0x8A), + PANEL_DCS(0xB9, 0xCA), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x87), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x06), + PANEL_DCS(0xBD, 0x0A), + PANEL_DCS(0xBE, 0x9B), + PANEL_DCS(0xBF, 0x0C), + PANEL_DCS(0xC0, 0x3D), + PANEL_DCS(0xC1, 0x71), + PANEL_DCS(0xC2, 0x90), + PANEL_DCS(0xC3, 0xA0), + PANEL_DCS(0xC4, 0xA8), + PANEL_DCS(0xC5, 0xB1), + PANEL_DCS(0xC6, 0xBB), + PANEL_DCS(0xC7, 0xC0), + PANEL_DCS(0xC8, 0xC4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x08), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x08), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x31), + PANEL_DCS(0xB5, 0x46), + PANEL_DCS(0xB6, 0x55), + PANEL_DCS(0xB7, 0x6E), + PANEL_DCS(0xB8, 0x92), + PANEL_DCS(0xB9, 0xD4), + PANEL_DCS(0xBA, 0x1B), + PANEL_DCS(0xBB, 0x9B), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x28), + PANEL_DCS(0xBD, 0x2D), + PANEL_DCS(0xBE, 0xC3), + PANEL_DCS(0xBF, 0x2F), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x99), + PANEL_DCS(0xC2, 0xAB), + PANEL_DCS(0xC3, 0xBF), + PANEL_DCS(0xC4, 0xCF), + PANEL_DCS(0xC5, 0xDF), + PANEL_DCS(0xC6, 0xF0), + PANEL_DCS(0xC7, 0xF9), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x09), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x17), + PANEL_DCS(0xB4, 0x2E), + PANEL_DCS(0xB5, 0x42), + PANEL_DCS(0xB6, 0x51), + PANEL_DCS(0xB7, 0x69), + PANEL_DCS(0xB8, 0x88), + PANEL_DCS(0xB9, 0xC9), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x86), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x03), + PANEL_DCS(0xBD, 0x08), + PANEL_DCS(0xBE, 0x95), + PANEL_DCS(0xBF, 0x05), + PANEL_DCS(0xC0, 0x35), + PANEL_DCS(0xC1, 0x62), + PANEL_DCS(0xC2, 0x81), + PANEL_DCS(0xC3, 0x96), + PANEL_DCS(0xC4, 0x9E), + PANEL_DCS(0xC5, 0xA5), + PANEL_DCS(0xC6, 0xAD), + PANEL_DCS(0xC7, 0xB1), + PANEL_DCS(0xC8, 0xB4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0A), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x09), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x2F), + PANEL_DCS(0xB5, 0x44), + PANEL_DCS(0xB6, 0x52), + PANEL_DCS(0xB7, 0x6A), + PANEL_DCS(0xB8, 0x8A), + PANEL_DCS(0xB9, 0xCA), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x87), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x06), + PANEL_DCS(0xBD, 0x0A), + PANEL_DCS(0xBE, 0x9B), + PANEL_DCS(0xBF, 0x0C), + PANEL_DCS(0xC0, 0x3D), + PANEL_DCS(0xC1, 0x71), + PANEL_DCS(0xC2, 0x90), + PANEL_DCS(0xC3, 0xA0), + PANEL_DCS(0xC4, 0xA8), + PANEL_DCS(0xC5, 0xB1), + PANEL_DCS(0xC6, 0xBB), + PANEL_DCS(0xC7, 0xC0), + PANEL_DCS(0xC8, 0xC4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0B), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x08), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x31), + PANEL_DCS(0xB5, 0x46), + PANEL_DCS(0xB6, 0x55), + PANEL_DCS(0xB7, 0x6E), + PANEL_DCS(0xB8, 0x92), + PANEL_DCS(0xB9, 0xD4), + PANEL_DCS(0xBA, 0x1B), + PANEL_DCS(0xBB, 0x9B), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x28), + PANEL_DCS(0xBD, 0x2D), + PANEL_DCS(0xBE, 0xC3), + PANEL_DCS(0xBF, 0x2F), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x99), + PANEL_DCS(0xC2, 0xAB), + PANEL_DCS(0xC3, 0xBF), + PANEL_DCS(0xC4, 0xCF), + PANEL_DCS(0xC5, 0xDF), + PANEL_DCS(0xC6, 0xF0), + PANEL_DCS(0xC7, 0xF9), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0C), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x17), + PANEL_DCS(0xB4, 0x2E), + PANEL_DCS(0xB5, 0x42), + PANEL_DCS(0xB6, 0x51), + PANEL_DCS(0xB7, 0x69), + PANEL_DCS(0xB8, 0x88), + PANEL_DCS(0xB9, 0xC9), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x86), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x03), + PANEL_DCS(0xBD, 0x08), + PANEL_DCS(0xBE, 0x95), + PANEL_DCS(0xBF, 0x05), + PANEL_DCS(0xC0, 0x35), + PANEL_DCS(0xC1, 0x62), + PANEL_DCS(0xC2, 0x81), + PANEL_DCS(0xC3, 0x96), + PANEL_DCS(0xC4, 0x9E), + PANEL_DCS(0xC5, 0xA5), + PANEL_DCS(0xC6, 0xAD), + PANEL_DCS(0xC7, 0xB1), + PANEL_DCS(0xC8, 0xB4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DELAY(0x64), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x08), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x68), + PANEL_DELAY(0x0A), + PANEL_DCS(0x11), + PANEL_DELAY(0x78), + PANEL_DCS(0x29), + PANEL_DELAY(0x14), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-BOE_TV101WUM_N53.c b/src/device/mipi/panel-BOE_TV101WUM_N53.c new file mode 100644 index 0000000000..b40999f685 --- /dev/null +++ b/src/device/mipi/panel-BOE_TV101WUM_N53.c @@ -0,0 +1,317 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data BOE_TV101WUM_N53 = { + .edid = { + .ascii_string = "TV101WUM-N53", + .manufacturer_name = "BOE", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159916, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24, + .va = 1920, .vbl = 34, .vso = 20, .vspw = 4, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 216, + }, + }, + .orientation = LB_FB_ORIENTATION_LEFT_UP, + .init = { + PANEL_DELAY(24), + PANEL_DCS(0xB0, 0x05), + PANEL_DCS(0xB1, 0xE5), + PANEL_DCS(0xB3, 0x52), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x88), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB6, 0x03), + PANEL_DCS(0xBA, 0x8B), + PANEL_DCS(0xBF, 0x1A), + PANEL_DCS(0xC0, 0x0F), + PANEL_DCS(0xC2, 0x0C), + PANEL_DCS(0xC3, 0x02), + PANEL_DCS(0xC4, 0x0C), + PANEL_DCS(0xC5, 0x02), + PANEL_DCS(0xB0, 0x01), + PANEL_DCS(0xE0, 0x26), + PANEL_DCS(0xE1, 0x26), + PANEL_DCS(0xDC, 0x00), + PANEL_DCS(0xDD, 0x00), + PANEL_DCS(0xCC, 0x26), + PANEL_DCS(0xCD, 0x26), + PANEL_DCS(0xC8, 0x00), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xD2, 0x03), + PANEL_DCS(0xD3, 0x03), + PANEL_DCS(0xE6, 0x04), + PANEL_DCS(0xE7, 0x04), + PANEL_DCS(0xC4, 0x09), + PANEL_DCS(0xC5, 0x09), + PANEL_DCS(0xD8, 0x0A), + PANEL_DCS(0xD9, 0x0A), + PANEL_DCS(0xC2, 0x0B), + PANEL_DCS(0xC3, 0x0B), + PANEL_DCS(0xD6, 0x0C), + PANEL_DCS(0xD7, 0x0C), + PANEL_DCS(0xC0, 0x05), + PANEL_DCS(0xC1, 0x05), + PANEL_DCS(0xD4, 0x06), + PANEL_DCS(0xD5, 0x06), + PANEL_DCS(0xCA, 0x07), + PANEL_DCS(0xCB, 0x07), + PANEL_DCS(0xDE, 0x08), + PANEL_DCS(0xDF, 0x08), + PANEL_DCS(0xB0, 0x02), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xC1, 0x0D), + PANEL_DCS(0xC2, 0x17), + PANEL_DCS(0xC3, 0x26), + PANEL_DCS(0xC4, 0x31), + PANEL_DCS(0xC5, 0x1C), + PANEL_DCS(0xC6, 0x2C), + PANEL_DCS(0xC7, 0x33), + PANEL_DCS(0xC8, 0x31), + PANEL_DCS(0xC9, 0x37), + PANEL_DCS(0xCA, 0x37), + PANEL_DCS(0xCB, 0x37), + PANEL_DCS(0xCC, 0x39), + PANEL_DCS(0xCD, 0x2E), + PANEL_DCS(0xCE, 0x2F), + PANEL_DCS(0xCF, 0x2F), + PANEL_DCS(0xD0, 0x07), + PANEL_DCS(0xD2, 0x00), + PANEL_DCS(0xD3, 0x0D), + PANEL_DCS(0xD4, 0x17), + PANEL_DCS(0xD5, 0x26), + PANEL_DCS(0xD6, 0x31), + PANEL_DCS(0xD7, 0x3F), + PANEL_DCS(0xD8, 0x3F), + PANEL_DCS(0xD9, 0x3F), + PANEL_DCS(0xDA, 0x3F), + PANEL_DCS(0xDB, 0x37), + PANEL_DCS(0xDC, 0x37), + PANEL_DCS(0xDD, 0x37), + PANEL_DCS(0xDE, 0x39), + PANEL_DCS(0xDF, 0x2E), + PANEL_DCS(0xE0, 0x2F), + PANEL_DCS(0xE1, 0x2F), + PANEL_DCS(0xE2, 0x07), + PANEL_DCS(0xB0, 0x03), + PANEL_DCS(0xC8, 0x0B), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xC3, 0x00), + PANEL_DCS(0xE7, 0x00), + PANEL_DCS(0xC5, 0x2A), + PANEL_DCS(0xDE, 0x2A), + PANEL_DCS(0xCA, 0x43), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xE4, 0xC0), + PANEL_DCS(0xE5, 0x0D), + PANEL_DCS(0xCB, 0x00), + PANEL_DCS(0xB0, 0x06), + PANEL_DCS(0xB8, 0xA5), + PANEL_DCS(0xC0, 0xA5), + PANEL_DCS(0xC7, 0x0F), + PANEL_DCS(0xD5, 0x32), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xBC, 0x00), + PANEL_DCS(0xB0, 0x07), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x0F), + PANEL_DCS(0xB4, 0x25), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4E), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x97), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x22), + PANEL_DCS(0xBB, 0xA4), + PANEL_DCS(0xBC, 0x2B), + PANEL_DCS(0xBD, 0x2F), + PANEL_DCS(0xBE, 0xA9), + PANEL_DCS(0xBF, 0x25), + PANEL_DCS(0xC0, 0x61), + PANEL_DCS(0xC1, 0x97), + PANEL_DCS(0xC2, 0xB2), + PANEL_DCS(0xC3, 0xCD), + PANEL_DCS(0xC4, 0xD9), + PANEL_DCS(0xC5, 0xE7), + PANEL_DCS(0xC6, 0xF4), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x08), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x11), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x98), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x23), + PANEL_DCS(0xBB, 0xA6), + PANEL_DCS(0xBC, 0x2C), + PANEL_DCS(0xBD, 0x30), + PANEL_DCS(0xBE, 0xAA), + PANEL_DCS(0xBF, 0x26), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x9B), + PANEL_DCS(0xC2, 0xB5), + PANEL_DCS(0xC3, 0xCF), + PANEL_DCS(0xC4, 0xDB), + PANEL_DCS(0xC5, 0xE8), + PANEL_DCS(0xC6, 0xF5), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x09), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x16), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x3B), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x73), + PANEL_DCS(0xB8, 0x99), + PANEL_DCS(0xB9, 0xE0), + PANEL_DCS(0xBA, 0x26), + PANEL_DCS(0xBB, 0xAD), + PANEL_DCS(0xBC, 0x36), + PANEL_DCS(0xBD, 0x3A), + PANEL_DCS(0xBE, 0xAE), + PANEL_DCS(0xBF, 0x2A), + PANEL_DCS(0xC0, 0x66), + PANEL_DCS(0xC1, 0x9E), + PANEL_DCS(0xC2, 0xB8), + PANEL_DCS(0xC3, 0xD1), + PANEL_DCS(0xC4, 0xDD), + PANEL_DCS(0xC5, 0xE9), + PANEL_DCS(0xC6, 0xF6), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0A), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x0F), + PANEL_DCS(0xB4, 0x25), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4E), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x97), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x22), + PANEL_DCS(0xBB, 0xA4), + PANEL_DCS(0xBC, 0x2B), + PANEL_DCS(0xBD, 0x2F), + PANEL_DCS(0xBE, 0xA9), + PANEL_DCS(0xBF, 0x25), + PANEL_DCS(0xC0, 0x61), + PANEL_DCS(0xC1, 0x97), + PANEL_DCS(0xC2, 0xB2), + PANEL_DCS(0xC3, 0xCD), + PANEL_DCS(0xC4, 0xD9), + PANEL_DCS(0xC5, 0xE7), + PANEL_DCS(0xC6, 0xF4), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0B), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x11), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x98), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x23), + PANEL_DCS(0xBB, 0xA6), + PANEL_DCS(0xBC, 0x2C), + PANEL_DCS(0xBD, 0x30), + PANEL_DCS(0xBE, 0xAA), + PANEL_DCS(0xBF, 0x26), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x9B), + PANEL_DCS(0xC2, 0xB5), + PANEL_DCS(0xC3, 0xCF), + PANEL_DCS(0xC4, 0xDB), + PANEL_DCS(0xC5, 0xE8), + PANEL_DCS(0xC6, 0xF5), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0C), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x16), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x3B), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x73), + PANEL_DCS(0xB8, 0x99), + PANEL_DCS(0xB9, 0xE0), + PANEL_DCS(0xBA, 0x26), + PANEL_DCS(0xBB, 0xAD), + PANEL_DCS(0xBC, 0x36), + PANEL_DCS(0xBD, 0x3A), + PANEL_DCS(0xBE, 0xAE), + PANEL_DCS(0xBF, 0x2A), + PANEL_DCS(0xC0, 0x66), + PANEL_DCS(0xC1, 0x9E), + PANEL_DCS(0xC2, 0xB8), + PANEL_DCS(0xC3, 0xD1), + PANEL_DCS(0xC4, 0xDD), + PANEL_DCS(0xC5, 0xE9), + PANEL_DCS(0xC6, 0xF6), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x08), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x68), + PANEL_DELAY(150), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-BOE_TV101WUM_NG0.c b/src/device/mipi/panel-BOE_TV101WUM_NG0.c new file mode 100644 index 0000000000..fc3f998192 --- /dev/null +++ b/src/device/mipi/panel-BOE_TV101WUM_NG0.c @@ -0,0 +1,337 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data BOE_TV101WUM_NG0 = { + .edid = { + .ascii_string = "TV101WUM-NG0", + .manufacturer_name = "BOE", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159420, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24, + .va = 1920, .vbl = 28, .vso = 10, .vspw = 4, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 216, + }, + }, + .init = { + PANEL_DCS(0x10), + PANEL_DELAY(0x22), + PANEL_DCS(0xB0, 0x05), + PANEL_DCS(0xB1, 0xE5), + PANEL_DCS(0xB3, 0x52), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x88), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB2, 0x50), + PANEL_DCS(0xB6, 0x03), + PANEL_DCS(0xBA, 0x8B), + PANEL_DCS(0xBF, 0x15), + PANEL_DCS(0xC0, 0x0F), + PANEL_DCS(0xC2, 0x0C), + PANEL_DCS(0xC3, 0x02), + PANEL_DCS(0xC4, 0x0C), + PANEL_DCS(0xC5, 0x02), + PANEL_DCS(0xB0, 0x01), + PANEL_DCS(0xE0, 0x26), + PANEL_DCS(0xE1, 0x26), + PANEL_DCS(0xDC, 0x00), + PANEL_DCS(0xDD, 0x00), + PANEL_DCS(0xCC, 0x26), + PANEL_DCS(0xCD, 0x26), + PANEL_DCS(0xC8, 0x00), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xD2, 0x04), + PANEL_DCS(0xD3, 0x04), + PANEL_DCS(0xE6, 0x03), + PANEL_DCS(0xE7, 0x03), + PANEL_DCS(0xC4, 0x08), + PANEL_DCS(0xC5, 0x08), + PANEL_DCS(0xD8, 0x07), + PANEL_DCS(0xD9, 0x07), + PANEL_DCS(0xC2, 0x06), + PANEL_DCS(0xC3, 0x06), + PANEL_DCS(0xD6, 0x05), + PANEL_DCS(0xD7, 0x05), + PANEL_DCS(0xC0, 0x0C), + PANEL_DCS(0xC1, 0x0C), + PANEL_DCS(0xD4, 0x0B), + PANEL_DCS(0xD5, 0x0B), + PANEL_DCS(0xCA, 0x0A), + PANEL_DCS(0xCB, 0x0A), + PANEL_DCS(0xDE, 0x09), + PANEL_DCS(0xDF, 0x09), + PANEL_DCS(0xC6, 0x26), + PANEL_DCS(0xC7, 0x26), + PANEL_DCS(0xCE, 0x00), + PANEL_DCS(0xCF, 0x00), + PANEL_DCS(0xDA, 0x26), + PANEL_DCS(0xDB, 0x26), + PANEL_DCS(0xE2, 0x00), + PANEL_DCS(0xE3, 0x00), + PANEL_DCS(0xB0, 0x02), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xC1, 0x07), + PANEL_DCS(0xC2, 0x0D), + PANEL_DCS(0xC3, 0x18), + PANEL_DCS(0xC4, 0x27), + PANEL_DCS(0xC5, 0x28), + PANEL_DCS(0xC6, 0x30), + PANEL_DCS(0xC7, 0x2E), + PANEL_DCS(0xC8, 0x2F), + PANEL_DCS(0xC9, 0x1A), + PANEL_DCS(0xCA, 0x20), + PANEL_DCS(0xCB, 0x29), + PANEL_DCS(0xCC, 0x26), + PANEL_DCS(0xCD, 0x32), + PANEL_DCS(0xCE, 0x33), + PANEL_DCS(0xCF, 0x31), + PANEL_DCS(0xD0, 0x06), + PANEL_DCS(0xD2, 0x00), + PANEL_DCS(0xD3, 0x07), + PANEL_DCS(0xD4, 0x12), + PANEL_DCS(0xD5, 0x26), + PANEL_DCS(0xD6, 0x3D), + PANEL_DCS(0xD7, 0x3F), + PANEL_DCS(0xD8, 0x3F), + PANEL_DCS(0xD9, 0x3F), + PANEL_DCS(0xDA, 0x3F), + PANEL_DCS(0xDB, 0x3F), + PANEL_DCS(0xDC, 0x3F), + PANEL_DCS(0xDD, 0x3F), + PANEL_DCS(0xDE, 0x3F), + PANEL_DCS(0xDF, 0x3A), + PANEL_DCS(0xE0, 0x37), + PANEL_DCS(0xE1, 0x35), + PANEL_DCS(0xE2, 0x07), + PANEL_DCS(0xB0, 0x03), + PANEL_DCS(0xC8, 0x0B), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xC3, 0x00), + PANEL_DCS(0xE7, 0x00), + PANEL_DCS(0xC5, 0x2A), + PANEL_DCS(0xDE, 0x2A), + PANEL_DCS(0xCA, 0x43), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xE4, 0xC0), + PANEL_DCS(0xE5, 0x0D), + PANEL_DCS(0xCB, 0x00), + PANEL_DCS(0xB0, 0x06), + PANEL_DCS(0xB8, 0xA5), + PANEL_DCS(0xC0, 0xA5), + PANEL_DCS(0xC7, 0x0F), + PANEL_DCS(0xD5, 0x32), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xBC, 0x00), + PANEL_DCS(0xB0, 0x07), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x09), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x2F), + PANEL_DCS(0xB5, 0x44), + PANEL_DCS(0xB6, 0x52), + PANEL_DCS(0xB7, 0x6A), + PANEL_DCS(0xB8, 0x8A), + PANEL_DCS(0xB9, 0xCA), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x87), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x06), + PANEL_DCS(0xBD, 0x0A), + PANEL_DCS(0xBE, 0x9B), + PANEL_DCS(0xBF, 0x0C), + PANEL_DCS(0xC0, 0x3D), + PANEL_DCS(0xC1, 0x71), + PANEL_DCS(0xC2, 0x90), + PANEL_DCS(0xC3, 0xA0), + PANEL_DCS(0xC4, 0xA8), + PANEL_DCS(0xC5, 0xB1), + PANEL_DCS(0xC6, 0xBB), + PANEL_DCS(0xC7, 0xC0), + PANEL_DCS(0xC8, 0xC4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x08), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x08), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x31), + PANEL_DCS(0xB5, 0x46), + PANEL_DCS(0xB6, 0x55), + PANEL_DCS(0xB7, 0x6E), + PANEL_DCS(0xB8, 0x92), + PANEL_DCS(0xB9, 0xD4), + PANEL_DCS(0xBA, 0x1B), + PANEL_DCS(0xBB, 0x9B), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x28), + PANEL_DCS(0xBD, 0x2D), + PANEL_DCS(0xBE, 0xC3), + PANEL_DCS(0xBF, 0x2F), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x99), + PANEL_DCS(0xC2, 0xAB), + PANEL_DCS(0xC3, 0xBF), + PANEL_DCS(0xC4, 0xCF), + PANEL_DCS(0xC5, 0xDF), + PANEL_DCS(0xC6, 0xF0), + PANEL_DCS(0xC7, 0xF9), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x09), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x17), + PANEL_DCS(0xB4, 0x2E), + PANEL_DCS(0xB5, 0x42), + PANEL_DCS(0xB6, 0x51), + PANEL_DCS(0xB7, 0x69), + PANEL_DCS(0xB8, 0x88), + PANEL_DCS(0xB9, 0xC9), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x86), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x03), + PANEL_DCS(0xBD, 0x08), + PANEL_DCS(0xBE, 0x95), + PANEL_DCS(0xBF, 0x05), + PANEL_DCS(0xC0, 0x35), + PANEL_DCS(0xC1, 0x62), + PANEL_DCS(0xC2, 0x81), + PANEL_DCS(0xC3, 0x96), + PANEL_DCS(0xC4, 0x9E), + PANEL_DCS(0xC5, 0xA5), + PANEL_DCS(0xC6, 0xAD), + PANEL_DCS(0xC7, 0xB1), + PANEL_DCS(0xC8, 0xB4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0A), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x09), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x2F), + PANEL_DCS(0xB5, 0x44), + PANEL_DCS(0xB6, 0x52), + PANEL_DCS(0xB7, 0x6A), + PANEL_DCS(0xB8, 0x8A), + PANEL_DCS(0xB9, 0xCA), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x87), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x06), + PANEL_DCS(0xBD, 0x0A), + PANEL_DCS(0xBE, 0x9B), + PANEL_DCS(0xBF, 0x0C), + PANEL_DCS(0xC0, 0x3D), + PANEL_DCS(0xC1, 0x71), + PANEL_DCS(0xC2, 0x90), + PANEL_DCS(0xC3, 0xA0), + PANEL_DCS(0xC4, 0xA8), + PANEL_DCS(0xC5, 0xB1), + PANEL_DCS(0xC6, 0xBB), + PANEL_DCS(0xC7, 0xC0), + PANEL_DCS(0xC8, 0xC4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0B), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x08), + PANEL_DCS(0xB3, 0x19), + PANEL_DCS(0xB4, 0x31), + PANEL_DCS(0xB5, 0x46), + PANEL_DCS(0xB6, 0x55), + PANEL_DCS(0xB7, 0x6E), + PANEL_DCS(0xB8, 0x92), + PANEL_DCS(0xB9, 0xD4), + PANEL_DCS(0xBA, 0x1B), + PANEL_DCS(0xBB, 0x9B), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x28), + PANEL_DCS(0xBD, 0x2D), + PANEL_DCS(0xBE, 0xC3), + PANEL_DCS(0xBF, 0x2F), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x99), + PANEL_DCS(0xC2, 0xAB), + PANEL_DCS(0xC3, 0xBF), + PANEL_DCS(0xC4, 0xCF), + PANEL_DCS(0xC5, 0xDF), + PANEL_DCS(0xC6, 0xF0), + PANEL_DCS(0xC7, 0xF9), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0C), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x17), + PANEL_DCS(0xB4, 0x2E), + PANEL_DCS(0xB5, 0x42), + PANEL_DCS(0xB6, 0x51), + PANEL_DCS(0xB7, 0x69), + PANEL_DCS(0xB8, 0x88), + PANEL_DCS(0xB9, 0xC9), + PANEL_DCS(0xBA, 0x0C), + PANEL_DCS(0xBB, 0x86), + PANEL_DELAY(0x05), + PANEL_DCS(0xBC, 0x03), + PANEL_DCS(0xBD, 0x08), + PANEL_DCS(0xBE, 0x95), + PANEL_DCS(0xBF, 0x05), + PANEL_DCS(0xC0, 0x35), + PANEL_DCS(0xC1, 0x62), + PANEL_DCS(0xC2, 0x81), + PANEL_DCS(0xC3, 0x96), + PANEL_DCS(0xC4, 0x9E), + PANEL_DCS(0xC5, 0xA5), + PANEL_DCS(0xC6, 0xAD), + PANEL_DCS(0xC7, 0xB1), + PANEL_DCS(0xC8, 0xB4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DELAY(0x64), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x08), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x68), + PANEL_DELAY(0x0A), + PANEL_DCS(0x11), + PANEL_DELAY(0x78), + PANEL_DCS(0x29), + PANEL_DELAY(0x14), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-BOE_TV101WUM_NL6.c b/src/device/mipi/panel-BOE_TV101WUM_NL6.c new file mode 100644 index 0000000000..7369cbeb9a --- /dev/null +++ b/src/device/mipi/panel-BOE_TV101WUM_NL6.c @@ -0,0 +1,317 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data BOE_TV101WUM_NL6 = { + .edid = { + .ascii_string = "TV101WUM-NL6", + .manufacturer_name = "BOE", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159425, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 164, .hso = 100, .hspw = 24, + .va = 1920, .vbl = 28, .vso = 10, .vspw = 4, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 216, + }, + }, + .orientation = LB_FB_ORIENTATION_LEFT_UP, + .init = { + PANEL_DELAY(24), + PANEL_DCS(0xB0, 0x05), + PANEL_DCS(0xB1, 0xE5), + PANEL_DCS(0xB3, 0x52), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x88), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB6, 0x03), + PANEL_DCS(0xBA, 0x8B), + PANEL_DCS(0xBF, 0x1A), + PANEL_DCS(0xC0, 0x0F), + PANEL_DCS(0xC2, 0x0C), + PANEL_DCS(0xC3, 0x02), + PANEL_DCS(0xC4, 0x0C), + PANEL_DCS(0xC5, 0x02), + PANEL_DCS(0xB0, 0x01), + PANEL_DCS(0xE0, 0x26), + PANEL_DCS(0xE1, 0x26), + PANEL_DCS(0xDC, 0x00), + PANEL_DCS(0xDD, 0x00), + PANEL_DCS(0xCC, 0x26), + PANEL_DCS(0xCD, 0x26), + PANEL_DCS(0xC8, 0x00), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xD2, 0x03), + PANEL_DCS(0xD3, 0x03), + PANEL_DCS(0xE6, 0x04), + PANEL_DCS(0xE7, 0x04), + PANEL_DCS(0xC4, 0x09), + PANEL_DCS(0xC5, 0x09), + PANEL_DCS(0xD8, 0x0A), + PANEL_DCS(0xD9, 0x0A), + PANEL_DCS(0xC2, 0x0B), + PANEL_DCS(0xC3, 0x0B), + PANEL_DCS(0xD6, 0x0C), + PANEL_DCS(0xD7, 0x0C), + PANEL_DCS(0xC0, 0x05), + PANEL_DCS(0xC1, 0x05), + PANEL_DCS(0xD4, 0x06), + PANEL_DCS(0xD5, 0x06), + PANEL_DCS(0xCA, 0x07), + PANEL_DCS(0xCB, 0x07), + PANEL_DCS(0xDE, 0x08), + PANEL_DCS(0xDF, 0x08), + PANEL_DCS(0xB0, 0x02), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xC1, 0x0D), + PANEL_DCS(0xC2, 0x17), + PANEL_DCS(0xC3, 0x26), + PANEL_DCS(0xC4, 0x31), + PANEL_DCS(0xC5, 0x1C), + PANEL_DCS(0xC6, 0x2C), + PANEL_DCS(0xC7, 0x33), + PANEL_DCS(0xC8, 0x31), + PANEL_DCS(0xC9, 0x37), + PANEL_DCS(0xCA, 0x37), + PANEL_DCS(0xCB, 0x37), + PANEL_DCS(0xCC, 0x39), + PANEL_DCS(0xCD, 0x2E), + PANEL_DCS(0xCE, 0x2F), + PANEL_DCS(0xCF, 0x2F), + PANEL_DCS(0xD0, 0x07), + PANEL_DCS(0xD2, 0x00), + PANEL_DCS(0xD3, 0x0D), + PANEL_DCS(0xD4, 0x17), + PANEL_DCS(0xD5, 0x26), + PANEL_DCS(0xD6, 0x31), + PANEL_DCS(0xD7, 0x3F), + PANEL_DCS(0xD8, 0x3F), + PANEL_DCS(0xD9, 0x3F), + PANEL_DCS(0xDA, 0x3F), + PANEL_DCS(0xDB, 0x37), + PANEL_DCS(0xDC, 0x37), + PANEL_DCS(0xDD, 0x37), + PANEL_DCS(0xDE, 0x39), + PANEL_DCS(0xDF, 0x2E), + PANEL_DCS(0xE0, 0x2F), + PANEL_DCS(0xE1, 0x2F), + PANEL_DCS(0xE2, 0x07), + PANEL_DCS(0xB0, 0x03), + PANEL_DCS(0xC8, 0x0B), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xC3, 0x00), + PANEL_DCS(0xE7, 0x00), + PANEL_DCS(0xC5, 0x2A), + PANEL_DCS(0xDE, 0x2A), + PANEL_DCS(0xCA, 0x43), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xE4, 0xC0), + PANEL_DCS(0xE5, 0x0D), + PANEL_DCS(0xCB, 0x00), + PANEL_DCS(0xB0, 0x06), + PANEL_DCS(0xB8, 0xA5), + PANEL_DCS(0xC0, 0xA5), + PANEL_DCS(0xC7, 0x0F), + PANEL_DCS(0xD5, 0x32), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xBC, 0x00), + PANEL_DCS(0xB0, 0x07), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x0F), + PANEL_DCS(0xB4, 0x25), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4E), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x97), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x22), + PANEL_DCS(0xBB, 0xA4), + PANEL_DCS(0xBC, 0x2B), + PANEL_DCS(0xBD, 0x2F), + PANEL_DCS(0xBE, 0xA9), + PANEL_DCS(0xBF, 0x25), + PANEL_DCS(0xC0, 0x61), + PANEL_DCS(0xC1, 0x97), + PANEL_DCS(0xC2, 0xB2), + PANEL_DCS(0xC3, 0xCD), + PANEL_DCS(0xC4, 0xD9), + PANEL_DCS(0xC5, 0xE7), + PANEL_DCS(0xC6, 0xF4), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x08), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x11), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x98), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x23), + PANEL_DCS(0xBB, 0xA6), + PANEL_DCS(0xBC, 0x2C), + PANEL_DCS(0xBD, 0x30), + PANEL_DCS(0xBE, 0xAA), + PANEL_DCS(0xBF, 0x26), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x9B), + PANEL_DCS(0xC2, 0xB5), + PANEL_DCS(0xC3, 0xCF), + PANEL_DCS(0xC4, 0xDB), + PANEL_DCS(0xC5, 0xE8), + PANEL_DCS(0xC6, 0xF5), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x09), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x16), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x3B), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x73), + PANEL_DCS(0xB8, 0x99), + PANEL_DCS(0xB9, 0xE0), + PANEL_DCS(0xBA, 0x26), + PANEL_DCS(0xBB, 0xAD), + PANEL_DCS(0xBC, 0x36), + PANEL_DCS(0xBD, 0x3A), + PANEL_DCS(0xBE, 0xAE), + PANEL_DCS(0xBF, 0x2A), + PANEL_DCS(0xC0, 0x66), + PANEL_DCS(0xC1, 0x9E), + PANEL_DCS(0xC2, 0xB8), + PANEL_DCS(0xC3, 0xD1), + PANEL_DCS(0xC4, 0xDD), + PANEL_DCS(0xC5, 0xE9), + PANEL_DCS(0xC6, 0xF6), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0A), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x0F), + PANEL_DCS(0xB4, 0x25), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4E), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x97), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x22), + PANEL_DCS(0xBB, 0xA4), + PANEL_DCS(0xBC, 0x2B), + PANEL_DCS(0xBD, 0x2F), + PANEL_DCS(0xBE, 0xA9), + PANEL_DCS(0xBF, 0x25), + PANEL_DCS(0xC0, 0x61), + PANEL_DCS(0xC1, 0x97), + PANEL_DCS(0xC2, 0xB2), + PANEL_DCS(0xC3, 0xCD), + PANEL_DCS(0xC4, 0xD9), + PANEL_DCS(0xC5, 0xE7), + PANEL_DCS(0xC6, 0xF4), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0B), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x05), + PANEL_DCS(0xB3, 0x11), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x39), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x72), + PANEL_DCS(0xB8, 0x98), + PANEL_DCS(0xB9, 0xDC), + PANEL_DCS(0xBA, 0x23), + PANEL_DCS(0xBB, 0xA6), + PANEL_DCS(0xBC, 0x2C), + PANEL_DCS(0xBD, 0x30), + PANEL_DCS(0xBE, 0xAA), + PANEL_DCS(0xBF, 0x26), + PANEL_DCS(0xC0, 0x62), + PANEL_DCS(0xC1, 0x9B), + PANEL_DCS(0xC2, 0xB5), + PANEL_DCS(0xC3, 0xCF), + PANEL_DCS(0xC4, 0xDB), + PANEL_DCS(0xC5, 0xE8), + PANEL_DCS(0xC6, 0xF5), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0C), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x02), + PANEL_DCS(0xB3, 0x16), + PANEL_DCS(0xB4, 0x24), + PANEL_DCS(0xB5, 0x3B), + PANEL_DCS(0xB6, 0x4F), + PANEL_DCS(0xB7, 0x73), + PANEL_DCS(0xB8, 0x99), + PANEL_DCS(0xB9, 0xE0), + PANEL_DCS(0xBA, 0x26), + PANEL_DCS(0xBB, 0xAD), + PANEL_DCS(0xBC, 0x36), + PANEL_DCS(0xBD, 0x3A), + PANEL_DCS(0xBE, 0xAE), + PANEL_DCS(0xBF, 0x2A), + PANEL_DCS(0xC0, 0x66), + PANEL_DCS(0xC1, 0x9E), + PANEL_DCS(0xC2, 0xB8), + PANEL_DCS(0xC3, 0xD1), + PANEL_DCS(0xC4, 0xDD), + PANEL_DCS(0xC5, 0xE9), + PANEL_DCS(0xC6, 0xF6), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x08), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x68), + PANEL_DELAY(150), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-BOE_TV105WUM_NW0.c b/src/device/mipi/panel-BOE_TV105WUM_NW0.c new file mode 100644 index 0000000000..efe6b66c71 --- /dev/null +++ b/src/device/mipi/panel-BOE_TV105WUM_NW0.c @@ -0,0 +1,321 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data BOE_TV105WUM_NW0 = { + .edid = { + .ascii_string = "TV105WUM-NW0", + .manufacturer_name = "BOE", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159916, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24, + .va = 1920, .vbl = 34, .vso = 20, .vspw = 4, + .phsync = '-', .pvsync = '-', + .x_mm = 147, .y_mm = 236, + }, + }, + .orientation = LB_FB_ORIENTATION_LEFT_UP, + .init = { + PANEL_DCS(0x10), + PANEL_DELAY(34), + PANEL_DCS(0xB0, 0x05), + PANEL_DCS(0xB1, 0xE5), + PANEL_DCS(0xB3, 0x52), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x88), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x00), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB6, 0x03), + PANEL_DCS(0xBA, 0x87), + PANEL_DCS(0xBF, 0x1F), + PANEL_DCS(0xC0, 0x0F), + PANEL_DCS(0xC2, 0x0E), + PANEL_DCS(0xC3, 0x02), + PANEL_DCS(0xC4, 0x0A), + PANEL_DCS(0xC5, 0x02), + PANEL_DCS(0xB0, 0x01), + PANEL_DCS(0xE0, 0x26), + PANEL_DCS(0xE1, 0x26), + PANEL_DCS(0xDC, 0x00), + PANEL_DCS(0xDD, 0x00), + PANEL_DCS(0xCC, 0x26), + PANEL_DCS(0xCD, 0x26), + PANEL_DCS(0xC8, 0x00), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xD2, 0x03), + PANEL_DCS(0xD3, 0x03), + PANEL_DCS(0xE6, 0x04), + PANEL_DCS(0xE7, 0x04), + PANEL_DCS(0xC4, 0x09), + PANEL_DCS(0xC5, 0x09), + PANEL_DCS(0xD8, 0x0A), + PANEL_DCS(0xD9, 0x0A), + PANEL_DCS(0xC2, 0x0B), + PANEL_DCS(0xC3, 0x0B), + PANEL_DCS(0xD6, 0x0C), + PANEL_DCS(0xD7, 0x0C), + PANEL_DCS(0xC0, 0x05), + PANEL_DCS(0xC1, 0x05), + PANEL_DCS(0xD4, 0x06), + PANEL_DCS(0xD5, 0x06), + PANEL_DCS(0xCA, 0x07), + PANEL_DCS(0xCB, 0x07), + PANEL_DCS(0xDE, 0x08), + PANEL_DCS(0xDF, 0x08), + PANEL_DCS(0xB0, 0x02), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xC1, 0x0F), + PANEL_DCS(0xC2, 0x1A), + PANEL_DCS(0xC3, 0x2B), + PANEL_DCS(0xC4, 0x38), + PANEL_DCS(0xC5, 0x39), + PANEL_DCS(0xC6, 0x38), + PANEL_DCS(0xC7, 0x38), + PANEL_DCS(0xC8, 0x36), + PANEL_DCS(0xC9, 0x34), + PANEL_DCS(0xCA, 0x35), + PANEL_DCS(0xCB, 0x36), + PANEL_DCS(0xCC, 0x39), + PANEL_DCS(0xCD, 0x2D), + PANEL_DCS(0xCE, 0x2E), + PANEL_DCS(0xCF, 0x2F), + PANEL_DCS(0xD0, 0x07), + PANEL_DCS(0xD2, 0x00), + PANEL_DCS(0xD3, 0x0F), + PANEL_DCS(0xD4, 0x1A), + PANEL_DCS(0xD5, 0x2B), + PANEL_DCS(0xD6, 0x38), + PANEL_DCS(0xD7, 0x39), + PANEL_DCS(0xD8, 0x38), + PANEL_DCS(0xD9, 0x38), + PANEL_DCS(0xDA, 0x36), + PANEL_DCS(0xDB, 0x34), + PANEL_DCS(0xDC, 0x35), + PANEL_DCS(0xDD, 0x36), + PANEL_DCS(0xDE, 0x39), + PANEL_DCS(0xDF, 0x2D), + PANEL_DCS(0xE0, 0x2E), + PANEL_DCS(0xE1, 0x2F), + PANEL_DCS(0xE2, 0x07), + PANEL_DCS(0xB0, 0x03), + PANEL_DCS(0xC8, 0x0B), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xC3, 0x00), + PANEL_DCS(0xE7, 0x00), + PANEL_DCS(0xC5, 0x2A), + PANEL_DCS(0xDE, 0x2A), + PANEL_DCS(0xCA, 0x43), + PANEL_DCS(0xC9, 0x07), + PANEL_DCS(0xE4, 0xC0), + PANEL_DCS(0xE5, 0x0D), + PANEL_DCS(0xCB, 0x00), + PANEL_DCS(0xB0, 0x06), + PANEL_DCS(0xB8, 0xA5), + PANEL_DCS(0xC0, 0xA5), + PANEL_DCS(0xC7, 0x0F), + PANEL_DCS(0xD5, 0x32), + PANEL_DCS(0xBC, 0x33), + PANEL_DCS(0xB0, 0x07), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x04), + PANEL_DCS(0xB3, 0x0A), + PANEL_DCS(0xB4, 0x1A), + PANEL_DCS(0xB5, 0x29), + PANEL_DCS(0xB6, 0x38), + PANEL_DCS(0xB7, 0x5A), + PANEL_DCS(0xB8, 0x79), + PANEL_DCS(0xB9, 0xBF), + PANEL_DCS(0xBA, 0x05), + PANEL_DCS(0xBB, 0x88), + PANEL_DCS(0xBC, 0x14), + PANEL_DCS(0xBD, 0x18), + PANEL_DCS(0xBE, 0x97), + PANEL_DCS(0xBF, 0x11), + PANEL_DCS(0xC0, 0x4B), + PANEL_DCS(0xC1, 0x82), + PANEL_DCS(0xC2, 0x9B), + PANEL_DCS(0xC3, 0xB6), + PANEL_DCS(0xC4, 0xC3), + PANEL_DCS(0xC5, 0xD0), + PANEL_DCS(0xC6, 0xDB), + PANEL_DCS(0xC7, 0xE1), + PANEL_DCS(0xC8, 0xE4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x08), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x03), + PANEL_DCS(0xB3, 0x0A), + PANEL_DCS(0xB4, 0x1A), + PANEL_DCS(0xB5, 0x29), + PANEL_DCS(0xB6, 0x38), + PANEL_DCS(0xB7, 0x5A), + PANEL_DCS(0xB8, 0x7A), + PANEL_DCS(0xB9, 0xC1), + PANEL_DCS(0xBA, 0x07), + PANEL_DCS(0xBB, 0x8B), + PANEL_DCS(0xBC, 0x17), + PANEL_DCS(0xBD, 0x1B), + PANEL_DCS(0xBE, 0x99), + PANEL_DCS(0xBF, 0x13), + PANEL_DCS(0xC0, 0x4C), + PANEL_DCS(0xC1, 0x84), + PANEL_DCS(0xC2, 0x9D), + PANEL_DCS(0xC3, 0xB7), + PANEL_DCS(0xC4, 0xC4), + PANEL_DCS(0xC5, 0xD0), + PANEL_DCS(0xC6, 0xDB), + PANEL_DCS(0xC7, 0xE1), + PANEL_DCS(0xC8, 0xE4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x09), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x04), + PANEL_DCS(0xB3, 0x09), + PANEL_DCS(0xB4, 0x1A), + PANEL_DCS(0xB5, 0x2B), + PANEL_DCS(0xB6, 0x3A), + PANEL_DCS(0xB7, 0x5D), + PANEL_DCS(0xB8, 0x80), + PANEL_DCS(0xB9, 0xCA), + PANEL_DCS(0xBA, 0x13), + PANEL_DCS(0xBB, 0x9D), + PANEL_DCS(0xBC, 0x30), + PANEL_DCS(0xBD, 0x34), + PANEL_DCS(0xBE, 0xBB), + PANEL_DCS(0xBF, 0x30), + PANEL_DCS(0xC0, 0x6A), + PANEL_DCS(0xC1, 0xA1), + PANEL_DCS(0xC2, 0xBC), + PANEL_DCS(0xC3, 0xD4), + PANEL_DCS(0xC4, 0xE0), + PANEL_DCS(0xC5, 0xEB), + PANEL_DCS(0xC6, 0xF6), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0A), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x04), + PANEL_DCS(0xB3, 0x0A), + PANEL_DCS(0xB4, 0x1A), + PANEL_DCS(0xB5, 0x29), + PANEL_DCS(0xB6, 0x38), + PANEL_DCS(0xB7, 0x5A), + PANEL_DCS(0xB8, 0x79), + PANEL_DCS(0xB9, 0xBF), + PANEL_DCS(0xBA, 0x05), + PANEL_DCS(0xBB, 0x88), + PANEL_DCS(0xBC, 0x14), + PANEL_DCS(0xBD, 0x18), + PANEL_DCS(0xBE, 0x97), + PANEL_DCS(0xBF, 0x11), + PANEL_DCS(0xC0, 0x4B), + PANEL_DCS(0xC1, 0x82), + PANEL_DCS(0xC2, 0x9B), + PANEL_DCS(0xC3, 0xB6), + PANEL_DCS(0xC4, 0xC3), + PANEL_DCS(0xC5, 0xD0), + PANEL_DCS(0xC6, 0xDB), + PANEL_DCS(0xC7, 0xE1), + PANEL_DCS(0xC8, 0xE4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0B), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0xB2, 0x03), + PANEL_DCS(0xB3, 0x0A), + PANEL_DCS(0xB4, 0x1A), + PANEL_DCS(0xB5, 0x29), + PANEL_DCS(0xB6, 0x38), + PANEL_DCS(0xB7, 0x5A), + PANEL_DCS(0xB8, 0x7A), + PANEL_DCS(0xB9, 0xC1), + PANEL_DCS(0xBA, 0x07), + PANEL_DCS(0xBB, 0x8B), + PANEL_DCS(0xBC, 0x17), + PANEL_DCS(0xBD, 0x1B), + PANEL_DCS(0xBE, 0x99), + PANEL_DCS(0xBF, 0x13), + PANEL_DCS(0xC0, 0x4C), + PANEL_DCS(0xC1, 0x84), + PANEL_DCS(0xC2, 0x9D), + PANEL_DCS(0xC3, 0xB7), + PANEL_DCS(0xC4, 0xC4), + PANEL_DCS(0xC5, 0xD0), + PANEL_DCS(0xC6, 0xDB), + PANEL_DCS(0xC7, 0xE1), + PANEL_DCS(0xC8, 0xE4), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DCS(0xB0, 0x0C), + PANEL_DCS(0xB1, 0x04), + PANEL_DCS(0xB2, 0x04), + PANEL_DCS(0xB3, 0x09), + PANEL_DCS(0xB4, 0x1A), + PANEL_DCS(0xB5, 0x2B), + PANEL_DCS(0xB6, 0x3A), + PANEL_DCS(0xB7, 0x5D), + PANEL_DCS(0xB8, 0x80), + PANEL_DCS(0xB9, 0xCA), + PANEL_DCS(0xBA, 0x13), + PANEL_DCS(0xBB, 0x9D), + PANEL_DCS(0xBC, 0x30), + PANEL_DCS(0xBD, 0x34), + PANEL_DCS(0xBE, 0xBB), + PANEL_DCS(0xBF, 0x30), + PANEL_DCS(0xC0, 0x6A), + PANEL_DCS(0xC1, 0xA1), + PANEL_DCS(0xC2, 0xBC), + PANEL_DCS(0xC3, 0xD4), + PANEL_DCS(0xC4, 0xE0), + PANEL_DCS(0xC5, 0xEB), + PANEL_DCS(0xC6, 0xF6), + PANEL_DCS(0xC7, 0xFA), + PANEL_DCS(0xC8, 0xFC), + PANEL_DCS(0xC9, 0x00), + PANEL_DCS(0xCA, 0x00), + PANEL_DCS(0xCB, 0x16), + PANEL_DCS(0xCC, 0xAF), + PANEL_DCS(0xCD, 0xFF), + PANEL_DCS(0xCE, 0xFF), + PANEL_DELAY(100), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xB3, 0x08), + PANEL_DCS(0xB0, 0x04), + PANEL_DCS(0xB8, 0x68), + PANEL_DELAY(10), + PANEL_DCS(0x11), + PANEL_DELAY(100), + PANEL_DCS(0x29), + PANEL_DELAY(50), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-CMN_P097PFG_SSD2858.c b/src/device/mipi/panel-CMN_P097PFG_SSD2858.c new file mode 100644 index 0000000000..89154b8221 --- /dev/null +++ b/src/device/mipi/panel-CMN_P097PFG_SSD2858.c @@ -0,0 +1,72 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data P097PFG_SSD2858 = { + .edid = { + .ascii_string = "P097PFG", + .manufacturer_name = "CMN", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 211660, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1536, .hbl = 160, .hso = 140, .hspw = 10, + .va = 2048, .vbl = 32, .vso = 20, .vspw = 2, + .phsync = '-', .pvsync = '-', + .x_mm = 147, .y_mm = 196, + }, + }, + .orientation = LB_FB_ORIENTATION_NORMAL, + .init = { + PANEL_GENERIC(0xff, 0x00), + /* LOCKCNT=0x1f4, MRX=0, POSTDIV=1 (/2} }, MULT=0x49 + * 27 Mhz => 985.5 Mhz */ + PANEL_GENERIC(0x00, 0x08, 0x01, 0xf4, 0x01, 0x49), + /* MTXDIV=1, SYSDIV=3 (=> 4) */ + PANEL_GENERIC(0x00, 0x0c, 0x00, 0x00, 0x00, 0x03), + /* MTXVPF=24bpp, MRXLS=4 lanes, MRXVB=bypass, MRXECC=1, + * MRXEOT=1, MRXEE=1 */ + PANEL_GENERIC(0x00, 0x14, 0x0c, 0x3d, 0x80, 0x0f), + PANEL_GENERIC(0x00, 0x20, 0x15, 0x92, 0x56, 0x7d), + PANEL_GENERIC(0x00, 0x24, 0x00, 0x00, 0x30, 0x00), + + PANEL_GENERIC(0x10, 0x08, 0x01, 0x20, 0x08, 0x45), + PANEL_GENERIC(0x10, 0x1c, 0x00, 0x00, 0x00, 0x00), + PANEL_GENERIC(0x20, 0x0c, 0x00, 0x00, 0x00, 0x04), + /* Pixel clock 985.5 Mhz * 0x49/0x4b = 959 Mhz */ + PANEL_GENERIC(0x20, 0x10, 0x00, 0x4b, 0x00, 0x49), + PANEL_GENERIC(0x20, 0xa0, 0x00, 0x00, 0x00, 0x00), + /* EOT=1, LPE = 0, LSOUT=4 lanes, LPD=25 */ + PANEL_GENERIC(0x60, 0x08, 0x00, 0xd9, 0x00, 0x08), + PANEL_GENERIC(0x60, 0x14, 0x01, 0x00, 0x01, 0x06), + /* DSI0 enable (default: probably not needed) */ + PANEL_GENERIC(0x60, 0x80, 0x00, 0x00, 0x00, 0x0f), + /* DSI1 enable */ + PANEL_GENERIC(0x60, 0xa0, 0x00, 0x00, 0x00, 0x0f), + + /* HSA=0x18, VSA=0x02, HBP=0x50, VBP=0x0c */ + PANEL_GENERIC(0x60, 0x0c, 0x0c, 0x50, 0x02, 0x18), + /* VACT= 0x800 (2048} }, VFP= 0x14, HFP=0x50 */ + PANEL_GENERIC(0x60, 0x10, 0x08, 0x00, 0x14, 0x50), + /* HACT=0x300 (768) */ + PANEL_GENERIC(0x60, 0x84, 0x00, 0x00, 0x03, 0x00), + PANEL_GENERIC(0x60, 0xa4, 0x00, 0x00, 0x03, 0x00), + + /* Take panel out of sleep. */ + PANEL_GENERIC(0xff, 0x01), + PANEL_DCS(0x11), + PANEL_DELAY(120), + PANEL_DCS(0x29), + PANEL_DELAY(20), + PANEL_GENERIC(0xff, 0x00), + + PANEL_DELAY(120), + PANEL_DCS(0x11), + PANEL_DELAY(120), + PANEL_DCS(0x29), + PANEL_DELAY(20), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-INX_OTA7290D10P.c b/src/device/mipi/panel-INX_OTA7290D10P.c new file mode 100644 index 0000000000..0253ba7235 --- /dev/null +++ b/src/device/mipi/panel-INX_OTA7290D10P.c @@ -0,0 +1,281 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data INX_OTA7290D10P = { + .edid = { + .ascii_string = "OTA7290D10P", + .manufacturer_name = "INX", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 159420, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 141, .hso = 80, .hspw = 1, + .va = 1920, .vbl = 61, .vso = 35, .vspw = 1, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 216, + }, + }, + .init = { + PANEL_DCS(0xB0, 0x5A), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0x89, 0x01), + PANEL_DCS(0x91, 0x17), + PANEL_DCS(0xB1, 0x03), + PANEL_DCS(0x2C, 0x28), + PANEL_DCS(0x00, 0xF1), + PANEL_DCS(0x01, 0x78), + PANEL_DCS(0x02, 0x3C), + PANEL_DCS(0x03, 0x1E), + PANEL_DCS(0x04, 0x8F), + PANEL_DCS(0x05, 0x01), + PANEL_DCS(0x06, 0x00), + PANEL_DCS(0x07, 0x00), + PANEL_DCS(0x08, 0x00), + PANEL_DCS(0x09, 0x00), + PANEL_DCS(0x0A, 0x01), + PANEL_DCS(0x0B, 0x3C), + PANEL_DCS(0x0C, 0x00), + PANEL_DCS(0x0D, 0x00), + PANEL_DCS(0x0E, 0x24), + PANEL_DCS(0x0F, 0x1C), + PANEL_DCS(0x10, 0xC8), + PANEL_DCS(0x11, 0x60), + PANEL_DCS(0x12, 0x70), + PANEL_DCS(0x13, 0x01), + PANEL_DCS(0x14, 0xE3), + PANEL_DCS(0x15, 0xFF), + PANEL_DCS(0x16, 0x3D), + PANEL_DCS(0x17, 0x0E), + PANEL_DCS(0x18, 0x01), + PANEL_DCS(0x19, 0x00), + PANEL_DCS(0x1A, 0x00), + PANEL_DCS(0x1B, 0xFC), + PANEL_DCS(0x1C, 0x0B), + PANEL_DCS(0x1D, 0xA0), + PANEL_DCS(0x1E, 0x03), + PANEL_DCS(0x1F, 0x04), + PANEL_DCS(0x20, 0x0C), + PANEL_DCS(0x21, 0x00), + PANEL_DCS(0x22, 0x04), + PANEL_DCS(0x23, 0x81), + PANEL_DCS(0x24, 0x1F), + PANEL_DCS(0x25, 0x10), + PANEL_DCS(0x26, 0x9B), + PANEL_DCS(0x2D, 0x01), + PANEL_DCS(0x2E, 0x84), + PANEL_DCS(0x2F, 0x00), + PANEL_DCS(0x30, 0x02), + PANEL_DCS(0x31, 0x08), + PANEL_DCS(0x32, 0x01), + PANEL_DCS(0x33, 0x1C), + PANEL_DCS(0x34, 0x70), + PANEL_DCS(0x35, 0xFF), + PANEL_DCS(0x36, 0xFF), + PANEL_DCS(0x37, 0xFF), + PANEL_DCS(0x38, 0xFF), + PANEL_DCS(0x39, 0xFF), + PANEL_DCS(0x3A, 0x05), + PANEL_DCS(0x3B, 0x00), + PANEL_DCS(0x3C, 0x00), + PANEL_DCS(0x3D, 0x00), + PANEL_DCS(0x3E, 0x0F), + PANEL_DCS(0x3F, 0xA4), + PANEL_DCS(0x40, 0x28), + PANEL_DCS(0x41, 0xFC), + PANEL_DCS(0x42, 0x01), + PANEL_DCS(0x43, 0x08), + PANEL_DCS(0x44, 0x05), + PANEL_DCS(0x45, 0xF0), + PANEL_DCS(0x46, 0x01), + PANEL_DCS(0x47, 0x02), + PANEL_DCS(0x48, 0x00), + PANEL_DCS(0x49, 0x58), + PANEL_DCS(0x4A, 0x00), + PANEL_DCS(0x4B, 0x05), + PANEL_DCS(0x4C, 0x03), + PANEL_DCS(0x4D, 0xD0), + PANEL_DCS(0x4E, 0x13), + PANEL_DCS(0x4F, 0xFF), + PANEL_DCS(0x50, 0x0A), + PANEL_DCS(0x51, 0x53), + PANEL_DCS(0x52, 0x26), + PANEL_DCS(0x53, 0x22), + PANEL_DCS(0x54, 0x09), + PANEL_DCS(0x55, 0x22), + PANEL_DCS(0x56, 0x00), + PANEL_DCS(0x57, 0x1C), + PANEL_DCS(0x58, 0x03), + PANEL_DCS(0x59, 0x3F), + PANEL_DCS(0x5A, 0x28), + PANEL_DCS(0x5B, 0x01), + PANEL_DCS(0x5C, 0xCC), + PANEL_DCS(0x5D, 0x21), + PANEL_DCS(0x5E, 0x04), + PANEL_DCS(0x5F, 0x13), + PANEL_DCS(0x60, 0x42), + PANEL_DCS(0x61, 0x08), + PANEL_DCS(0x62, 0x64), + PANEL_DCS(0x63, 0xEB), + PANEL_DCS(0x64, 0x10), + PANEL_DCS(0x65, 0xA8), + PANEL_DCS(0x66, 0x84), + PANEL_DCS(0x67, 0x8E), + PANEL_DCS(0x68, 0x29), + PANEL_DCS(0x69, 0x11), + PANEL_DCS(0x6A, 0x42), + PANEL_DCS(0x6B, 0x38), + PANEL_DCS(0x6C, 0x21), + PANEL_DCS(0x6D, 0x84), + PANEL_DCS(0x6E, 0x50), + PANEL_DCS(0x6F, 0xB6), + PANEL_DCS(0x70, 0x0E), + PANEL_DCS(0x71, 0xA1), + PANEL_DCS(0x72, 0xCE), + PANEL_DCS(0x73, 0xF8), + PANEL_DCS(0x74, 0xDA), + PANEL_DCS(0x75, 0x1A), + PANEL_DCS(0x76, 0x00), + PANEL_DCS(0x77, 0x00), + PANEL_DCS(0x78, 0x5F), + PANEL_DCS(0x79, 0xE0), + PANEL_DCS(0x7A, 0x01), + PANEL_DCS(0x7B, 0xFF), + PANEL_DCS(0x7C, 0xFF), + PANEL_DCS(0x7D, 0xFF), + PANEL_DCS(0x7E, 0xFF), + PANEL_DCS(0x7F, 0xFE), + PANEL_DCS(0xB1, 0x02), + PANEL_DCS(0x00, 0xFF), + PANEL_DCS(0x01, 0x01), + PANEL_DCS(0x02, 0x00), + PANEL_DCS(0x03, 0x00), + PANEL_DCS(0x04, 0x00), + PANEL_DCS(0x05, 0x00), + PANEL_DCS(0x06, 0x00), + PANEL_DCS(0x07, 0x00), + PANEL_DCS(0x08, 0xC0), + PANEL_DCS(0x09, 0x00), + PANEL_DCS(0x0A, 0x00), + PANEL_DCS(0x0B, 0x04), + PANEL_DCS(0x0C, 0xE6), + PANEL_DCS(0x0D, 0x0D), + PANEL_DCS(0x0F, 0x08), + PANEL_DCS(0x10, 0xE5), + PANEL_DCS(0x11, 0xA8), + PANEL_DCS(0x12, 0xEC), + PANEL_DCS(0x13, 0x54), + PANEL_DCS(0x14, 0x5A), + PANEL_DCS(0x15, 0xD5), + PANEL_DCS(0x16, 0x23), + PANEL_DCS(0x17, 0x11), + PANEL_DCS(0x18, 0x2F), + PANEL_DCS(0x19, 0x93), + PANEL_DCS(0x1A, 0xA6), + PANEL_DCS(0x1B, 0x0F), + PANEL_DCS(0x1C, 0xFF), + PANEL_DCS(0x1D, 0xFF), + PANEL_DCS(0x1E, 0xFF), + PANEL_DCS(0x1F, 0xFF), + PANEL_DCS(0x20, 0xFF), + PANEL_DCS(0x21, 0xFF), + PANEL_DCS(0x22, 0xFF), + PANEL_DCS(0x23, 0xFF), + PANEL_DCS(0x24, 0xFF), + PANEL_DCS(0x25, 0xFF), + PANEL_DCS(0x26, 0xFF), + PANEL_DCS(0x27, 0x1F), + PANEL_DCS(0x28, 0xC8), + PANEL_DCS(0x29, 0xFF), + PANEL_DCS(0x2A, 0xFF), + PANEL_DCS(0x2B, 0xFF), + PANEL_DCS(0x2C, 0x07), + PANEL_DCS(0x2D, 0x03), + PANEL_DCS(0x33, 0x09), + PANEL_DCS(0x35, 0x7F), + PANEL_DCS(0x36, 0x0C), + PANEL_DCS(0x38, 0x7F), + PANEL_DCS(0x3A, 0x80), + PANEL_DCS(0x3B, 0x55), + PANEL_DCS(0x3C, 0xE2), + PANEL_DCS(0x3D, 0x32), + PANEL_DCS(0x3E, 0x00), + PANEL_DCS(0x3F, 0x58), + PANEL_DCS(0x40, 0x06), + PANEL_DCS(0x41, 0x80), + PANEL_DCS(0x42, 0xCB), + PANEL_DCS(0x43, 0x2C), + PANEL_DCS(0x44, 0x61), + PANEL_DCS(0x45, 0x39), + PANEL_DCS(0x46, 0x00), + PANEL_DCS(0x47, 0x00), + PANEL_DCS(0x48, 0x8B), + PANEL_DCS(0x49, 0xD2), + PANEL_DCS(0x4A, 0x01), + PANEL_DCS(0x4B, 0x00), + PANEL_DCS(0x4C, 0x10), + PANEL_DCS(0x4D, 0xC0), + PANEL_DCS(0x4E, 0x0F), + PANEL_DCS(0x4F, 0xF1), + PANEL_DCS(0x50, 0x78), + PANEL_DCS(0x51, 0x7A), + PANEL_DCS(0x52, 0x34), + PANEL_DCS(0x53, 0x99), + PANEL_DCS(0x54, 0xA2), + PANEL_DCS(0x55, 0x03), + PANEL_DCS(0x56, 0x6C), + PANEL_DCS(0x57, 0x1A), + PANEL_DCS(0x58, 0x05), + PANEL_DCS(0x59, 0x30), + PANEL_DCS(0x5A, 0x1E), + PANEL_DCS(0x5B, 0x8F), + PANEL_DCS(0x5C, 0xC7), + PANEL_DCS(0x5D, 0xE3), + PANEL_DCS(0x5E, 0xF1), + PANEL_DCS(0x5F, 0x78), + PANEL_DCS(0x60, 0x3C), + PANEL_DCS(0x61, 0x36), + PANEL_DCS(0x62, 0x1E), + PANEL_DCS(0x63, 0x1B), + PANEL_DCS(0x64, 0x8F), + PANEL_DCS(0x65, 0xC7), + PANEL_DCS(0x66, 0xE3), + PANEL_DCS(0x67, 0x31), + PANEL_DCS(0x68, 0x14), + PANEL_DCS(0x69, 0x89), + PANEL_DCS(0x6A, 0x70), + PANEL_DCS(0x6B, 0x8C), + PANEL_DCS(0x6C, 0x8D), + PANEL_DCS(0x6D, 0x8D), + PANEL_DCS(0x6E, 0x8D), + PANEL_DCS(0x6F, 0x8D), + PANEL_DCS(0x70, 0xC7), + PANEL_DCS(0x71, 0xE3), + PANEL_DCS(0x72, 0xF1), + PANEL_DCS(0x73, 0xD8), + PANEL_DCS(0x74, 0xD8), + PANEL_DCS(0x75, 0xD8), + PANEL_DCS(0x76, 0x18), + PANEL_DCS(0x77, 0x00), + PANEL_DCS(0x78, 0x00), + PANEL_DCS(0x79, 0x00), + PANEL_DCS(0x7A, 0xC6), + PANEL_DCS(0x7B, 0xC6), + PANEL_DCS(0x7C, 0xC6), + PANEL_DCS(0x7D, 0xC6), + PANEL_DCS(0x7E, 0xC6), + PANEL_DCS(0x7F, 0xE3), + PANEL_DCS(0x0B, 0x04), + PANEL_DCS(0xB1, 0x03), + PANEL_DCS(0x2C, 0x2C), + PANEL_DCS(0xB1, 0x00), + PANEL_DCS(0x89, 0x03), + PANEL_DCS(0x11), + PANEL_DELAY(0x78), + PANEL_DCS(0x29), + PANEL_DELAY(0x14), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel-STA_2081101QFH032011_53G.c b/src/device/mipi/panel-STA_2081101QFH032011_53G.c new file mode 100644 index 0000000000..87e53cee59 --- /dev/null +++ b/src/device/mipi/panel-STA_2081101QFH032011_53G.c @@ -0,0 +1,118 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/mipi_panel.h> + +struct panel_serializable_data STA_QFH032011_53G = { + .edid = { + .ascii_string = "QFH032011-53G", + .manufacturer_name = "STA", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 165731, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 210, .hso = 100, .hspw = 10, + .va = 1920, .vbl = 39, .vso = 14, .vspw = 10, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 217, + }, + }, + .orientation = LB_FB_ORIENTATION_LEFT_UP, + .init = { + PANEL_DCS(0xB0, 0x01), + PANEL_DCS(0xC3, 0x4F), + PANEL_DCS(0xC4, 0x40), + PANEL_DCS(0xC5, 0x40), + PANEL_DCS(0xC6, 0x40), + PANEL_DCS(0xC7, 0x40), + PANEL_DCS(0xC8, 0x4D), + PANEL_DCS(0xC9, 0x52), + PANEL_DCS(0xCA, 0x51), + PANEL_DCS(0xCD, 0x5D), + PANEL_DCS(0xCE, 0x5B), + PANEL_DCS(0xCF, 0x4B), + PANEL_DCS(0xD0, 0x49), + PANEL_DCS(0xD1, 0x47), + PANEL_DCS(0xD2, 0x45), + PANEL_DCS(0xD3, 0x41), + PANEL_DCS(0xD7, 0x50), + PANEL_DCS(0xD8, 0x40), + PANEL_DCS(0xD9, 0x40), + PANEL_DCS(0xDA, 0x40), + PANEL_DCS(0xDB, 0x40), + PANEL_DCS(0xDC, 0x4E), + PANEL_DCS(0xDD, 0x52), + PANEL_DCS(0xDE, 0x51), + PANEL_DCS(0xE1, 0x5E), + PANEL_DCS(0xE2, 0x5C), + PANEL_DCS(0xE3, 0x4C), + PANEL_DCS(0xE4, 0x4A), + PANEL_DCS(0xE5, 0x48), + PANEL_DCS(0xE6, 0x46), + PANEL_DCS(0xE7, 0x42), + PANEL_DCS(0xB0, 0x03), + PANEL_DCS(0xBE, 0x03), + PANEL_DCS(0xCC, 0x44), + PANEL_DCS(0xC8, 0x07), + PANEL_DCS(0xC9, 0x05), + PANEL_DCS(0xCA, 0x42), + PANEL_DCS(0xCD, 0x3E), + PANEL_DCS(0xCF, 0x60), + PANEL_DCS(0xD2, 0x04), + PANEL_DCS(0xD3, 0x04), + PANEL_DCS(0xD4, 0x01), + PANEL_DCS(0xD5, 0x00), + PANEL_DCS(0xD6, 0x03), + PANEL_DCS(0xD7, 0x04), + PANEL_DCS(0xD9, 0x01), + PANEL_DCS(0xDB, 0x01), + PANEL_DCS(0xE4, 0xF0), + PANEL_DCS(0xE5, 0x0A), + PANEL_DCS(0xB0, 0x00), + PANEL_DCS(0xCC, 0x08), + PANEL_DCS(0xC2, 0x08), + PANEL_DCS(0xC4, 0x10), + PANEL_DCS(0xB0, 0x02), + PANEL_DCS(0xC0, 0x00), + PANEL_DCS(0xC1, 0x0A), + PANEL_DCS(0xC2, 0x20), + PANEL_DCS(0xC3, 0x24), + PANEL_DCS(0xC4, 0x23), + PANEL_DCS(0xC5, 0x29), + PANEL_DCS(0xC6, 0x23), + PANEL_DCS(0xC7, 0x1C), + PANEL_DCS(0xC8, 0x19), + PANEL_DCS(0xC9, 0x17), + PANEL_DCS(0xCA, 0x17), + PANEL_DCS(0xCB, 0x18), + PANEL_DCS(0xCC, 0x1A), + PANEL_DCS(0xCD, 0x1E), + PANEL_DCS(0xCE, 0x20), + PANEL_DCS(0xCF, 0x23), + PANEL_DCS(0xD0, 0x07), + PANEL_DCS(0xD1, 0x00), + PANEL_DCS(0xD2, 0x00), + PANEL_DCS(0xD3, 0x0A), + PANEL_DCS(0xD4, 0x13), + PANEL_DCS(0xD5, 0x1C), + PANEL_DCS(0xD6, 0x1A), + PANEL_DCS(0xD7, 0x13), + PANEL_DCS(0xD8, 0x17), + PANEL_DCS(0xD9, 0x1C), + PANEL_DCS(0xDA, 0x19), + PANEL_DCS(0xDB, 0x17), + PANEL_DCS(0xDC, 0x17), + PANEL_DCS(0xDD, 0x18), + PANEL_DCS(0xDE, 0x1A), + PANEL_DCS(0xDF, 0x1E), + PANEL_DCS(0xE0, 0x20), + PANEL_DCS(0xE1, 0x23), + PANEL_DCS(0xE2, 0x07), + PANEL_DCS(0X11), + PANEL_DELAY(120), + PANEL_DCS(0X29), + PANEL_DELAY(50), + PANEL_END, + }, +}; diff --git a/src/device/mipi/panel.c b/src/device/mipi/panel.c new file mode 100644 index 0000000000..f2bf3408c2 --- /dev/null +++ b/src/device/mipi/panel.c @@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <console/console.h> +#include <delay.h> +#include <device/mipi_panel.h> + +cb_err_t mipi_panel_parse_init_commands(const void *buf, mipi_cmd_func_t cmd_func) +{ + const struct panel_init_command *init = buf; + + /* + * The given commands should be in a buffer containing a packed array of + * panel_init_command and each element may be in variable size so we have + * to parse and scan. + */ + + for (; init->cmd != PANEL_CMD_END; init = (const void *)buf) { + /* + * For some commands like DELAY, the init->len should not be + * counted for buf. + */ + buf += sizeof(*init); + + u32 cmd = init->cmd, len = init->len; + + switch (cmd) { + case PANEL_CMD_DELAY: + mdelay(len); + break; + + case PANEL_CMD_DCS: + case PANEL_CMD_GENERIC: + buf += len; + + cb_err_t ret = cmd_func(cmd, init->data, len); + if (ret != CB_SUCCESS) + return ret; + break; + + default: + printk(BIOS_ERR, "%s: Unknown command code: %d, " + "abort panel initialization.\n", __func__, cmd); + return CB_ERR; + } + } + + return CB_SUCCESS; +} |