drm/panel: simple: Add support for INNOLUX N125HCE-GPA 1920x1080 panel
authorWeiYong Bi <bivvy.bi@rock-chips.com>
Mon, 12 Dec 2016 08:36:07 +0000 (16:36 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 14 Dec 2016 03:58:58 +0000 (11:58 +0800)
The INNOLUX N125HCE-GPA is a 12.5' TFT Liquid Crystal Display NB module
with LED Backlight unit and 30 pins eDP interface. This module supports
1920x1080 FHD mode and can display 16.7M colors.

Change-Id: I72318ac3317cd03e2301a1cab61cf126cd2a401b
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
Documentation/devicetree/bindings/display/panel/innolux,n125hce.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/innolux,n125hce.txt b/Documentation/devicetree/bindings/display/panel/innolux,n125hce.txt
new file mode 100644 (file)
index 0000000..1ea26f6
--- /dev/null
@@ -0,0 +1,7 @@
+Innolux Corporation 12.5" FHD (1920x1080) TFT LCD panel
+
+Required properties:
+- compatible: should be "innolux,n125hce"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 427c53008e1d7cbf74c90720a4b0025c9dcfd302..3c36215745a0531b35a471bfc2352ba2d8c48cb1 100644 (file)
@@ -998,6 +998,35 @@ static const struct panel_desc innolux_n116bge = {
        },
 };
 
+static const struct drm_display_mode innolux_n125hce_mode = {
+       .clock = 138780,
+       .hdisplay = 1920,
+       .hsync_start = 1920 + 80,
+       .hsync_end = 1920 + 80 + 30,
+       .htotal = 1920 + 80 + 30 + 50,
+       .vdisplay = 1080,
+       .vsync_start = 1080 + 12,
+       .vsync_end = 1080 + 12 + 4,
+       .vtotal = 1080 + 12 + 4 + 16,
+       .vrefresh = 60,
+       .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc innolux_n125hce = {
+       .modes = &innolux_n125hce_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 283,
+               .height = 168,
+       },
+       .delay = {
+               .unprepare = 600,
+               .enable = 100,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+};
+
 static const struct drm_display_mode innolux_n156bge_l21_mode = {
        .clock = 69300,
        .hdisplay = 1366,
@@ -1385,6 +1414,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "innolux,n116bge",
                .data = &innolux_n116bge,
+       }, {
+               .compatible = "innolux,n125hce",
+               .data = &innolux_n125hce,
        }, {
                .compatible = "innolux,n156bge-l21",
                .data = &innolux_n156bge_l21,