summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2017-11-20 15:40:19 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit6a30a44d5e2a231166d6f5b41beb1484b9182aa1 (patch)
tree5f610b315f0bab15b7095ad9f77dd656bd30c776 /drivers/gpu/drm/panel
parent7bb8b7277a78922915c4b6ea984aa8fe79848107 (diff)
MLK-16973-2 drm/panel: simple: Add support for JDI TX26D202VM0BWA panel
This patch adds support for Japan Display Inc. 10.1" TX26D202VM0BWA WUXGA(1920x1200) TFT LCD panel with LVDS interface. The panel has dual LVDS channels. Signed-off-by: Liu Ying <victor.liu@nxp.com>
Diffstat (limited to 'drivers/gpu/drm/panel')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 5b2a9f97ff04..3dd664d13bff 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1001,6 +1001,42 @@ static const struct panel_desc innolux_zj070na_01p = {
},
};
+static const struct display_timing jdi_tx26d202vm0bwa_timing = {
+ .pixelclock = { 151820000, 156720000, 159780000 },
+ .hactive = { 1920, 1920, 1920 },
+ .hfront_porch = { 76, 100, 112 },
+ .hback_porch = { 74, 100, 112 },
+ .hsync_len = { 30, 30, 30 },
+ .vactive = { 1200, 1200, 1200},
+ .vfront_porch = { 3, 5, 10 },
+ .vback_porch = { 2, 5, 10 },
+ .vsync_len = { 5, 5, 5 },
+ .flags = DISPLAY_FLAGS_DE_LOW,
+};
+
+static const struct panel_desc jdi_tx26d202vm0bwa = {
+ .timings = &jdi_tx26d202vm0bwa_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 217,
+ .height = 136,
+ },
+ .delay = {
+ /*
+ * The panel spec recommends one second delay
+ * to the below items. However, it's a bit too
+ * long in pratical. Based on tests, it turns
+ * out 100 milliseconds is fine.
+ */
+ .prepare = 100,
+ .enable = 100,
+ .unprepare = 100,
+ .disable = 100,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
static const struct display_timing kyo_tcg121xglp_timing = {
.pixelclock = { 52000000, 65000000, 71000000 },
.hactive = { 1024, 1024, 1024 },
@@ -1634,6 +1670,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "innolux,zj070na-01p",
.data = &innolux_zj070na_01p,
}, {
+ .compatible = "jdi,tx26d202vm0bwa",
+ .data = &jdi_tx26d202vm0bwa,
+ }, {
.compatible = "kyo,tcg121xglp",
.data = &kyo_tcg121xglp,
}, {