MLK-16973-2 drm/panel: simple: Add support for JDI TX26D202VM0BWA panel
authorLiu Ying <victor.liu@nxp.com>
Mon, 20 Nov 2017 07:40:19 +0000 (15:40 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:55:43 +0000 (15:55 -0500)
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>
drivers/gpu/drm/panel/panel-simple.c

index 6f65846..e60e803 100644 (file)
@@ -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 },
@@ -1633,6 +1669,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,