drm/panel: add panel CDTech S070WV95-CT16 to panel-simple
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Mon, 30 Jul 2018 23:11:14 +0000 (01:11 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 27 Sep 2018 11:57:00 +0000 (13:57 +0200)
This patch adds support for CDTech S070WV95-CT16 800x480 7" panel to DRM
simple panel driver.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180730231117.5631-3-giulio.benetti@micronovasrl.com
drivers/gpu/drm/panel/panel-simple.c

index b5af264ea721bb9207d96d69ab29b2488d16b34e..ad90dc1e2e6b14daf164b9caa0a558d032f95362 100644 (file)
@@ -836,6 +836,30 @@ static const struct panel_desc boe_nv101wxmn51 = {
        },
 };
 
+static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
+       .clock = 35000,
+       .hdisplay = 800,
+       .hsync_start = 800 + 40,
+       .hsync_end = 800 + 40 + 40,
+       .htotal = 800 + 40 + 40 + 48,
+       .vdisplay = 480,
+       .vsync_start = 480 + 29,
+       .vsync_end = 480 + 29 + 13,
+       .vtotal = 480 + 29 + 13 + 3,
+       .vrefresh = 60,
+       .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc cdtech_s070wv95_ct16 = {
+       .modes = &cdtech_s070wv95_ct16_mode,
+       .num_modes = 1,
+       .bpc = 8,
+       .size = {
+               .width = 154,
+               .height = 85,
+       },
+};
+
 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
        .clock = 66770,
        .hdisplay = 800,
@@ -2375,6 +2399,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "boe,nv101wxmn51",
                .data = &boe_nv101wxmn51,
+       }, {
+               .compatible = "cdtech,s070wv95-ct16",
+               .data = &cdtech_s070wv95_ct16,
        }, {
                .compatible = "chunghwa,claa070wp03xg",
                .data = &chunghwa_claa070wp03xg,