drm/panel: simple: Add DLC1010GIG panel
authorMarco Felsch <m.felsch@pengutronix.de>
Mon, 24 Sep 2018 15:26:10 +0000 (17:26 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 27 Sep 2018 12:23:12 +0000 (14:23 +0200)
Add support for the DLC DLC1010GIG 1280x800 10.1" LVDS panel to the
simple-panel driver.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180924152610.25939-1-m.felsch@pengutronix.de
Documentation/devicetree/bindings/display/panel/dlc,dlc1010gig.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/dlc,dlc1010gig.txt b/Documentation/devicetree/bindings/display/panel/dlc,dlc1010gig.txt
new file mode 100644 (file)
index 0000000..fbf5dcd
--- /dev/null
@@ -0,0 +1,12 @@
+DLC Display Co. DLC1010GIG 10.1" WXGA TFT LCD Panel
+
+Required properties:
+- compatible: should be "dlc,dlc1010gig"
+- power-supply: See simple-panel.txt
+
+Optional properties:
+- enable-gpios: See simple-panel.txt
+- backlight: See simple-panel.txt
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 5f3f061aed5f023f3574ac5c651d91d009ce3baf..90296090340ed9b5a5098d46fb44075bd824c238 100644 (file)
@@ -1032,6 +1032,36 @@ static const struct panel_desc dlc_dlc0700yzg_1 = {
        .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
 };
 
+static const struct display_timing dlc_dlc1010gig_timing = {
+       .pixelclock = { 68900000, 71100000, 73400000 },
+       .hactive = { 1280, 1280, 1280 },
+       .hfront_porch = { 43, 53, 63 },
+       .hback_porch = { 43, 53, 63 },
+       .hsync_len = { 44, 54, 64 },
+       .vactive = { 800, 800, 800 },
+       .vfront_porch = { 5, 8, 11 },
+       .vback_porch = { 5, 8, 11 },
+       .vsync_len = { 5, 7, 11 },
+       .flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc dlc_dlc1010gig = {
+       .timings = &dlc_dlc1010gig_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 216,
+               .height = 135,
+       },
+       .delay = {
+               .prepare = 60,
+               .enable = 150,
+               .disable = 100,
+               .unprepare = 60,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode edt_et057090dhu_mode = {
        .clock = 25175,
        .hdisplay = 640,
@@ -2470,6 +2500,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "dlc,dlc0700yzg-1",
                .data = &dlc_dlc0700yzg_1,
+       }, {
+               .compatible = "dlc,dlc1010gig",
+               .data = &dlc_dlc1010gig,
        }, {
                .compatible = "edt,et057090dhu",
                .data = &edt_et057090dhu,