drm/panel: simple: add support for InnoLux N156BGE-L21 panel
authorAlban Bedel <alban.bedel@avionic-design.de>
Tue, 22 Jul 2014 06:38:55 +0000 (08:38 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 22 Jul 2014 07:10:53 +0000 (09:10 +0200)
This panel is used by the Medcom Wide and supported by the
simple-panel driver.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/panel/innolux,n156bge-l21.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/panel/innolux,n156bge-l21.txt b/Documentation/devicetree/bindings/panel/innolux,n156bge-l21.txt
new file mode 100644 (file)
index 0000000..7825844
--- /dev/null
@@ -0,0 +1,7 @@
+InnoLux 15.6" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "innolux,n156bge-l21"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 9961d44084307e1043e07240346b02ef306192e2..357712c4446f1048441abe74fbbe66accb8c1337 100644 (file)
@@ -425,6 +425,28 @@ static const struct panel_desc foxlink_fl500wvr00_a0t = {
        },
 };
 
+static const struct drm_display_mode innolux_n156bge_l21_mode = {
+       .clock = 69300,
+       .hdisplay = 1366,
+       .hsync_start = 1366 + 16,
+       .hsync_end = 1366 + 16 + 34,
+       .htotal = 1366 + 16 + 34 + 50,
+       .vdisplay = 768,
+       .vsync_start = 768 + 2,
+       .vsync_end = 768 + 2 + 6,
+       .vtotal = 768 + 2 + 6 + 12,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc innolux_n156bge_l21 = {
+       .modes = &innolux_n156bge_l21_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 344,
+               .height = 193,
+       },
+};
+
 static const struct drm_display_mode lg_lp129qe_mode = {
        .clock = 285250,
        .hdisplay = 2560,
@@ -494,6 +516,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "foxlink,fl500wvr00-a0t",
                .data = &foxlink_fl500wvr00_a0t,
+       }, {
+               .compatible = "innolux,n156bge-l21",
+               .data = &innolux_n156bge_l21,
        }, {
                .compatible = "lg,lp129qe",
                .data = &lg_lp129qe,