drm/panel: simple: add Toshiba LT089AC19000
authorLucas Stach <l.stach@pengutronix.de>
Wed, 18 Oct 2017 17:22:40 +0000 (19:22 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Oct 2017 09:48:44 +0000 (11:48 +0200)
Only exposes a single mode and not a complete display timing, as
the datasheet is rather vague about the minimum/maximum values.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171018172240.8772-1-l.stach@pengutronix.de
Documentation/devicetree/bindings/display/panel/toshiba,lt089ac29000.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/toshiba,lt089ac29000.txt b/Documentation/devicetree/bindings/display/panel/toshiba,lt089ac29000.txt
new file mode 100644 (file)
index 0000000..4c0caaf
--- /dev/null
@@ -0,0 +1,8 @@
+Toshiba 8.9" WXGA (1280x768) TFT LCD panel
+
+Required properties:
+- compatible: should be "toshiba,lt089ac29000.txt"
+- power-supply: as specified in the base binding
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 8838de2..b7c4709 100644 (file)
@@ -1837,6 +1837,30 @@ static const struct panel_desc tianma_tm070jdhg30 = {
        .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
 };
 
+static const struct drm_display_mode toshiba_lt089ac29000_mode = {
+       .clock = 79500,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 192,
+       .hsync_end = 1280 + 192 + 128,
+       .htotal = 1280 + 192 + 128 + 64,
+       .vdisplay = 768,
+       .vsync_start = 768 + 20,
+       .vsync_end = 768 + 20 + 7,
+       .vtotal = 768 + 20 + 7 + 3,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc toshiba_lt089ac29000 = {
+       .modes = &toshiba_lt089ac29000_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 194,
+               .height = 116,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+       .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
+};
+
 static const struct drm_display_mode tpk_f07a_0102_mode = {
        .clock = 33260,
        .hdisplay = 800,
@@ -2119,6 +2143,9 @@ static const struct of_device_id platform_of_match[] = {
                .compatible = "tianma,tm070jdhg30",
                .data = &tianma_tm070jdhg30,
        }, {
+               .compatible = "toshiba,lt089ac29000",
+               .data = &toshiba_lt089ac29000,
+       }, {
                .compatible = "tpk,f07a-0102",
                .data = &tpk_f07a_0102,
        }, {