drm/panel: simple: add support for NLT NL192108AC18-02D
authorLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2017 18:07:57 +0000 (20:07 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 14 Jun 2017 17:37:27 +0000 (19:37 +0200)
This adds support for the NLT Technologies NL192108AC18-02D
15.6" LVDS FullHD TFT LCD panel, which can be supported
by the simple panel driver.

Timings are taken from the preliminary datasheet, as a final
one is not yet available.

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: http://patchwork.freedesktop.org/patch/msgid/20170608180758.31020-3-l.stach@pengutronix.de
Documentation/devicetree/bindings/display/panel/nlt,nl192108ac18-02d.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/nlt,nl192108ac18-02d.txt b/Documentation/devicetree/bindings/display/panel/nlt,nl192108ac18-02d.txt
new file mode 100644 (file)
index 0000000..1a639fd
--- /dev/null
@@ -0,0 +1,8 @@
+NLT Technologies, Ltd. 15.6" FHD (1920x1080) LVDS TFT LCD panel
+
+Required properties:
+- compatible: should be "nlt,nl192108ac18-02d"
+- 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 585b37f9171adb455947b68428e2315c7ad8fe6e..99758e38525e16b602a84c917e8c4901a483ab04 100644 (file)
@@ -1398,6 +1398,32 @@ static const struct panel_desc netron_dy_e231732 = {
        .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
 };
 
+static const struct display_timing nlt_nl192108ac18_02d_timing = {
+       .pixelclock = { 130000000, 148350000, 163000000 },
+       .hactive = { 1920, 1920, 1920 },
+       .hfront_porch = { 80, 100, 100 },
+       .hback_porch = { 100, 120, 120 },
+       .hsync_len = { 50, 60, 60 },
+       .vactive = { 1080, 1080, 1080 },
+       .vfront_porch = { 12, 30, 30 },
+       .vback_porch = { 4, 10, 10 },
+       .vsync_len = { 4, 5, 5 },
+};
+
+static const struct panel_desc nlt_nl192108ac18_02d = {
+       .timings = &nlt_nl192108ac18_02d_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 344,
+               .height = 194,
+       },
+       .delay = {
+               .unprepare = 500,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode nvd_9128_mode = {
        .clock = 29500,
        .hdisplay = 800,
@@ -2007,6 +2033,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "netron-dy,e231732",
                .data = &netron_dy_e231732,
+       }, {
+               .compatible = "nlt,nl192108ac18-02d",
+               .data = &nlt_nl192108ac18_02d,
        }, {
                .compatible = "nvd,9128",
                .data = &nvd_9128,