summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuihai Zhou <zhouruihai@huaqin.corp-partner.google.com>2024-01-08 16:01:32 +0800
committerYu-Ping Wu <yupingso@google.com>2024-01-09 06:43:01 +0000
commit520137fab0b750590da1dc6eaa00ba3f3a8bdd33 (patch)
tree8327b9dbfc40601ec9002abbd53e01ba09c59e77
parent611ee332092f2cd1fc2c5c9c4810e038af9d5882 (diff)
drivers/mipi: Add support for IVO_T109NW41 panel
Add IVO_T109NW41 serializable data to CBFS. Datasheet: T109NW41 R0 Tentative Product Specification.docx BUG=b:319025360 TEST=build and check the CBFS include the panel BRANCH=None Change-Id: Id740e3a21f72bbcd6e5c2b56b31ac90f4990d475 Signed-off-by: Ruihai Zhou <zhouruihai@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79844 Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: cong yang <yangcong5@huaqin.corp-partner.google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
-rw-r--r--src/drivers/mipi/Kconfig3
-rw-r--r--src/drivers/mipi/Makefile.inc2
-rw-r--r--src/drivers/mipi/panel-IVO_T109NW41.c111
3 files changed, 116 insertions, 0 deletions
diff --git a/src/drivers/mipi/Kconfig b/src/drivers/mipi/Kconfig
index 00c072b2d8..9aba7bba04 100644
--- a/src/drivers/mipi/Kconfig
+++ b/src/drivers/mipi/Kconfig
@@ -42,6 +42,9 @@ config MIPI_PANEL_INX_HJ110IZ_01A_B2
config MIPI_PANEL_INX_OTA7290D10P
bool
+config MIPI_PANEL_IVO_T109NW41
+ bool
+
config MIPI_PANEL_STA_2081101QFH032011_53G
bool
diff --git a/src/drivers/mipi/Makefile.inc b/src/drivers/mipi/Makefile.inc
index 95c5f95315..ffa90f9eff 100644
--- a/src/drivers/mipi/Makefile.inc
+++ b/src/drivers/mipi/Makefile.inc
@@ -21,6 +21,8 @@ panel-params-$(CONFIG_MIPI_PANEL_CMN_P097PFG_SSD2858) += panel-CMN_P097PFG_SSD28
panel-params-$(CONFIG_MIPI_PANEL_INX_HJ110IZ_01A_B2) += panel-INX_HJ110IZ_01A_B2
panel-params-$(CONFIG_MIPI_PANEL_INX_OTA7290D10P) += panel-INX_OTA7290D10P
+panel-params-$(CONFIG_MIPI_PANEL_IVO_T109NW41) += panel-IVO_T109NW41
+
panel-params-$(CONFIG_MIPI_PANEL_STA_2081101QFH032011_53G) += panel-STA_2081101QFH032011_53G
panel-params-$(CONFIG_MIPI_PANEL_STA_HIMAX83102_J02) += panel-STA_HIMAX83102_J02
panel-params-$(CONFIG_MIPI_PANEL_STA_ILI9882T) += panel-STA_ILI9882T
diff --git a/src/drivers/mipi/panel-IVO_T109NW41.c b/src/drivers/mipi/panel-IVO_T109NW41.c
new file mode 100644
index 0000000000..ca8e8d5170
--- /dev/null
+++ b/src/drivers/mipi/panel-IVO_T109NW41.c
@@ -0,0 +1,111 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <mipi/panel.h>
+
+struct panel_serializable_data IVO_T109NW41 = {
+ .edid = {
+ .ascii_string = "T109NW41",
+ .manufacturer_name = "IVO",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 158400,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 120, .hso = 60, .hspw = 20,
+ .va = 1920, .vbl = 80, .vso = 60, .vspw = 8,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 147, .y_mm = 235,
+ },
+ },
+ .init = {
+ PANEL_DELAY(60),
+ PANEL_DCS(0xB9, 0x83, 0x10, 0x21, 0x55, 0x00),
+ PANEL_DCS(0xB1, 0x2C, 0xED, 0xED, 0x27, 0xE7, 0x52, 0xF5, 0x39,
+ 0x36, 0x36, 0x36, 0x36, 0x32, 0x8B, 0x11, 0x65, 0x00, 0x88,
+ 0xFA, 0xFF, 0xFF, 0x8F, 0xFF, 0x08, 0xD6, 0x33),
+ PANEL_DCS(0xB2, 0x00, 0x47, 0xB0, 0x80, 0x00, 0x12, 0x3A, 0x3C,
+ 0xA3, 0x22, 0x20, 0x00, 0x00, 0x88, 0x01),
+ PANEL_DCS(0xB4, 0x35, 0x35, 0x43, 0x43, 0x35, 0x35, 0x30, 0x7A,
+ 0x30, 0x7A, 0x00, 0x9D),
+ PANEL_DCS(0xE9, 0xCD),
+ PANEL_DCS(0xBA, 0x84),
+ PANEL_DCS(0xE9, 0x3F),
+ PANEL_DCS(0xBC, 0x1B, 0x04),
+ PANEL_DCS(0xBE, 0x20),
+ PANEL_DCS(0xBF, 0xFC, 0xC4),
+ PANEL_DCS(0xC0, 0x34, 0x34, 0x22, 0x11, 0x22, 0xA0, 0x31, 0x08,
+ 0xF5, 0x03),
+ PANEL_DCS(0xE9, 0xCC),
+ PANEL_DCS(0xC7, 0x80),
+ PANEL_DCS(0xE9, 0x3F),
+ PANEL_DCS(0xE9, 0xC9),
+ PANEL_DCS(0xC8, 0x00),
+ PANEL_DCS(0xE9, 0x3F),
+ PANEL_DCS(0xC9, 0x00, 0x1E, 0x13, 0x88, 0x01),
+ PANEL_DCS(0xCB, 0x08, 0x13, 0x07, 0x00, 0x0F, 0x34),
+ PANEL_DCS(0xCC, 0x02, 0x03, 0x44),
+ PANEL_DCS(0xE9, 0xC4),
+ PANEL_DCS(0xD0, 0x03),
+ PANEL_DCS(0xE9, 0x3F),
+ PANEL_DCS(0xD1, 0x37, 0x06, 0x00, 0x02, 0x04, 0x2C, 0xFF),
+ PANEL_DCS(0xD3, 0x06, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08,
+ 0x08, 0x37, 0x07, 0x64, 0x7C, 0x11, 0x11, 0x03, 0x03, 0x32,
+ 0x10, 0x0E, 0x00, 0x0E, 0x32, 0x17, 0x97, 0x07, 0x97, 0x32,
+ 0x00, 0x02, 0x00, 0x02, 0x00, 0x00),
+ PANEL_DCS(0xD5, 0x25, 0x24, 0x25, 0x24, 0x18, 0x18, 0x18, 0x18,
+ 0x07, 0x06, 0x07, 0x06, 0x05, 0x04, 0x05, 0x04, 0x03, 0x02,
+ 0x03, 0x02, 0x01, 0x00, 0x01, 0x00, 0xA8, 0xA8, 0xA8, 0xA8,
+ 0x29, 0x29, 0x29, 0x29, 0x21, 0x20, 0x21, 0x20, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18),
+ PANEL_DCS(0xD8, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xA0, 0xAA, 0xAA,
+ 0xAA, 0xAA, 0xAA, 0xA0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00),
+ PANEL_DCS(0xE7, 0x07, 0x10, 0x10, 0x1A, 0x26, 0x9E, 0x00, 0x4F,
+ 0xA0, 0x14, 0x14, 0x00, 0x00, 0x00, 0x00, 0x12, 0x0A, 0x02,
+ 0x02, 0x00, 0x33, 0x02, 0x04, 0x18, 0x01),
+ PANEL_DCS(0xBD, 0x01),
+ PANEL_DCS(0xB1, 0x01, 0x7F, 0x11, 0xFD),
+ PANEL_DCS(0xCB, 0x86),
+ PANEL_DCS(0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xA0,
+ 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xA0, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00),
+ PANEL_DCS(0xE7, 0x02, 0x00, 0x2B, 0x01, 0x7E, 0x0F, 0x7E, 0x10,
+ 0xA0, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00),
+ PANEL_DCS(0xBD, 0x02),
+ P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