drm/panel: simple: Add support for Innolux ZJ070NA-01P
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Thu, 19 Mar 2015 11:22:44 +0000 (12:22 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 2 Apr 2015 17:04:10 +0000 (19:04 +0200)
The Innolux ZJ070NA-01P is a 7.0" TFT LCD panel with an integrated LED
backlight unit.

This panel is used on the Technexion Toucan.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/panel/innolux,zj070na-01p.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/panel/innolux,zj070na-01p.txt b/Documentation/devicetree/bindings/panel/innolux,zj070na-01p.txt
new file mode 100644 (file)
index 0000000..824f87f
--- /dev/null
@@ -0,0 +1,7 @@
+Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel
+
+Required properties:
+- compatible: should be "innolux,zj070na-01p"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 57958f11d569d786b6e0e118a7c464f1b34edd0a..d241c10de1dd5eb3b37cc5c7623dc7db94023d42 100644 (file)
@@ -758,6 +758,29 @@ static const struct panel_desc innolux_n156bge_l21 = {
        },
 };
 
+static const struct drm_display_mode innolux_zj070na_01p_mode = {
+       .clock = 51501,
+       .hdisplay = 1024,
+       .hsync_start = 1024 + 128,
+       .hsync_end = 1024 + 128 + 64,
+       .htotal = 1024 + 128 + 64 + 128,
+       .vdisplay = 600,
+       .vsync_start = 600 + 16,
+       .vsync_end = 600 + 16 + 4,
+       .vtotal = 600 + 16 + 4 + 16,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc innolux_zj070na_01p = {
+       .modes = &innolux_zj070na_01p_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 1024,
+               .height = 600,
+       },
+};
+
 static const struct drm_display_mode lg_lp129qe_mode = {
        .clock = 285250,
        .hdisplay = 2560,
@@ -908,6 +931,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "innolux,n156bge-l21",
                .data = &innolux_n156bge_l21,
+       }, {
+               .compatible = "innolux,zj070na-01p",
+               .data = &innolux_zj070na_01p,
        }, {
                .compatible = "lg,lp129qe",
                .data = &lg_lp129qe,