drm/panel: simple: Add support for Kyocera TCG121XGLP panel
authorLucas Stach <l.stach@pengutronix.de>
Wed, 2 Dec 2015 18:41:11 +0000 (19:41 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 16 Dec 2015 15:13:47 +0000 (16:13 +0100)
The Kyocera TCG121XGLP panel is an XGA LCD TFT panel connected through
LVDS, which can be supported by the simple panel driver.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/display/panel/kyo,tcg121xglp.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/kyo,tcg121xglp.txt b/Documentation/devicetree/bindings/display/panel/kyo,tcg121xglp.txt
new file mode 100644 (file)
index 0000000..a8e940f
--- /dev/null
@@ -0,0 +1,7 @@
+Kyocera Corporation 12.1" XGA (1024x768) TFT LCD panel
+
+Required properties:
+- compatible: should be "kyo,tcg121xglp"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index ada97a01a651bd64ebd3ada193f6cece2592460a..faa1c168a6e7dae749a05a7c8e4fc1b89a6be9d3 100644 (file)
@@ -930,6 +930,30 @@ static const struct panel_desc innolux_zj070na_01p = {
        },
 };
 
+static const struct display_timing kyo_tcg121xglp_timing = {
+       .pixelclock = { 52000000, 65000000, 71000000 },
+       .hactive = { 1024, 1024, 1024 },
+       .hfront_porch = { 2, 2, 2 },
+       .hback_porch = { 2, 2, 2 },
+       .hsync_len = { 86, 124, 244 },
+       .vactive = { 768, 768, 768 },
+       .vfront_porch = { 2, 2, 2 },
+       .vback_porch = { 2, 2, 2 },
+       .vsync_len = { 6, 34, 73 },
+       .flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc kyo_tcg121xglp = {
+       .timings = &kyo_tcg121xglp_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 246,
+               .height = 184,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode lg_lb070wv8_mode = {
        .clock = 33246,
        .hdisplay = 800,
@@ -1197,6 +1221,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "innolux,zj070na-01p",
                .data = &innolux_zj070na_01p,
+       }, {
+               .compatible = "kyo,tcg121xglp",
+               .data = &kyo_tcg121xglp,
        }, {
                .compatible = "lg,lb070wv8",
                .data = &lg_lb070wv8,