drm/panel: simple: Add support for BOE HV070WSA-100 panel to simple-panel
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 19 Jun 2018 08:19:26 +0000 (10:19 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Jul 2018 15:59:05 +0000 (17:59 +0200)
The patch adds support for BOE HV070WSA-100 WSVGA 7.01 inch panel to the
panel-simple driver. The panel is used in Exynos5250-arndale boards.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Maciej Purski <m.purski@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1529396370-18761-6-git-send-email-m.purski@samsung.com
drivers/gpu/drm/panel/panel-simple.c

index 230f030d1ea9428bc08875eb2a167f10d3286979..cca1168f08815fbdb47d980fd1ac40c64ed802ee 100644 (file)
@@ -772,6 +772,28 @@ static const struct panel_desc avic_tm070ddh03 = {
        },
 };
 
+static const struct drm_display_mode boe_hv070wsa_mode = {
+       .clock = 40800,
+       .hdisplay = 1024,
+       .hsync_start = 1024 + 90,
+       .hsync_end = 1024 + 90 + 90,
+       .htotal = 1024 + 90 + 90 + 90,
+       .vdisplay = 600,
+       .vsync_start = 600 + 3,
+       .vsync_end = 600 + 3 + 4,
+       .vtotal = 600 + 3 + 4 + 3,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc boe_hv070wsa = {
+       .modes = &boe_hv070wsa_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 154,
+               .height = 90,
+       },
+};
+
 static const struct drm_display_mode boe_nv101wxmn51_modes[] = {
        {
                .clock = 71900,
@@ -2237,6 +2259,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "avic,tm070ddh03",
                .data = &avic_tm070ddh03,
+       }, {
+               .compatible = "boe,hv070wsa-100",
+               .data = &boe_hv070wsa
        }, {
                .compatible = "boe,nv101wxmn51",
                .data = &boe_nv101wxmn51,