drm/panel: simple: add support for NEC NL12880B20-05
authorLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2017 18:07:55 +0000 (20:07 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 14 Jun 2017 17:36:29 +0000 (19:36 +0200)
This adds support for the NEC LCD Technologies, Ltd. 12.1"
WXGA (1280x800) LVDS TFT LCD panel, which can be supported
by the simple panel driver.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608180758.31020-1-l.stach@pengutronix.de
Documentation/devicetree/bindings/display/panel/nec,nl12880b20-05.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/nec,nl12880b20-05.txt b/Documentation/devicetree/bindings/display/panel/nec,nl12880b20-05.txt
new file mode 100644 (file)
index 0000000..71cbc49
--- /dev/null
@@ -0,0 +1,8 @@
+NEC LCD Technologies, Ltd. 12.1" WXGA (1280x800) LVDS TFT LCD panel
+
+Required properties:
+- compatible: should be "nec,nl12880bc20-05"
+- 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 c4566ce8fda790900b12a1fbee232a47db2df25d..585b37f9171adb455947b68428e2315c7ad8fe6e 100644 (file)
@@ -1322,6 +1322,33 @@ static const struct panel_desc lg_lp129qe = {
        },
 };
 
+static const struct display_timing nec_nl12880bc20_05_timing = {
+       .pixelclock = { 67000000, 71000000, 75000000 },
+       .hactive = { 1280, 1280, 1280 },
+       .hfront_porch = { 2, 30, 30 },
+       .hback_porch = { 6, 100, 100 },
+       .hsync_len = { 2, 30, 30 },
+       .vactive = { 800, 800, 800 },
+       .vfront_porch = { 5, 5, 5 },
+       .vback_porch = { 11, 11, 11 },
+       .vsync_len = { 7, 7, 7 },
+};
+
+static const struct panel_desc nec_nl12880bc20_05 = {
+       .timings = &nec_nl12880bc20_05_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 261,
+               .height = 163,
+       },
+       .delay = {
+               .enable = 50,
+               .disable = 50,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
        .clock = 10870,
        .hdisplay = 480,
@@ -1971,6 +1998,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "lg,lp129qe",
                .data = &lg_lp129qe,
+       }, {
+               .compatible = "nec,nl12880bc20-05",
+               .data = &nec_nl12880bc20_05,
        }, {
                .compatible = "nec,nl4827hc19-05b",
                .data = &nec_nl4827hc19_05b,