drm/panel: simple: Add support for Innolux G121X1-L03
authorAkshay Bhat <akshay.bhat@timesys.com>
Wed, 18 Nov 2015 20:57:47 +0000 (15:57 -0500)
committerThierry Reding <treding@nvidia.com>
Mon, 23 Nov 2015 11:20:52 +0000 (12:20 +0100)
Add support for Innolux CheMei 12" G121X1-L03 XGA LVDS display.

Datasheet: http://www.azdisplays.com/PDF/G121X1-L03.pdf
Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt b/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt
new file mode 100644 (file)
index 0000000..6497446
--- /dev/null
@@ -0,0 +1,7 @@
+Innolux Corporation 12.1" G121X1-L03 XGA (1024x768) TFT LCD panel
+
+Required properties:
+- compatible: should be "innolux,g121x1-l03"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index e3ac2de623a317a1eb9c705af4c39d195ec825f6..ada97a01a651bd64ebd3ada193f6cece2592460a 100644 (file)
@@ -832,6 +832,34 @@ static const struct panel_desc innolux_g121i1_l01 = {
        },
 };
 
+static const struct drm_display_mode innolux_g121x1_l03_mode = {
+       .clock = 65000,
+       .hdisplay = 1024,
+       .hsync_start = 1024 + 0,
+       .hsync_end = 1024 + 1,
+       .htotal = 1024 + 0 + 1 + 320,
+       .vdisplay = 768,
+       .vsync_start = 768 + 38,
+       .vsync_end = 768 + 38 + 1,
+       .vtotal = 768 + 38 + 1 + 0,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc innolux_g121x1_l03 = {
+       .modes = &innolux_g121x1_l03_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 246,
+               .height = 185,
+       },
+       .delay = {
+               .enable = 200,
+               .unprepare = 200,
+               .disable = 400,
+       },
+};
+
 static const struct drm_display_mode innolux_n116bge_mode = {
        .clock = 76420,
        .hdisplay = 1366,
@@ -1157,6 +1185,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible ="innolux,g121i1-l01",
                .data = &innolux_g121i1_l01
+       }, {
+               .compatible = "innolux,g121x1-l03",
+               .data = &innolux_g121x1_l03,
        }, {
                .compatible = "innolux,n116bge",
                .data = &innolux_n116bge,