aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2018-09-24 11:26:10 -0400
committerThierry Reding <treding@nvidia.com>2018-09-27 08:23:12 -0400
commit6cbe7cd15f953a8bb49cab9b85077e1ee4e0e999 (patch)
tree623ae70b56fd0a0de773ed6cd6d05085e023254c /drivers/gpu
parent7ad8b41cd8f5c2842646d01cdd576663caee04a7 (diff)
drm/panel: simple: Add DLC1010GIG panel
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
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 5f3f061aed5f..90296090340e 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1032,6 +1032,36 @@ static const struct panel_desc dlc_dlc0700yzg_1 = {
1032 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, 1032 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1033}; 1033};
1034 1034
1035static const struct display_timing dlc_dlc1010gig_timing = {
1036 .pixelclock = { 68900000, 71100000, 73400000 },
1037 .hactive = { 1280, 1280, 1280 },
1038 .hfront_porch = { 43, 53, 63 },
1039 .hback_porch = { 43, 53, 63 },
1040 .hsync_len = { 44, 54, 64 },
1041 .vactive = { 800, 800, 800 },
1042 .vfront_porch = { 5, 8, 11 },
1043 .vback_porch = { 5, 8, 11 },
1044 .vsync_len = { 5, 7, 11 },
1045 .flags = DISPLAY_FLAGS_DE_HIGH,
1046};
1047
1048static const struct panel_desc dlc_dlc1010gig = {
1049 .timings = &dlc_dlc1010gig_timing,
1050 .num_timings = 1,
1051 .bpc = 8,
1052 .size = {
1053 .width = 216,
1054 .height = 135,
1055 },
1056 .delay = {
1057 .prepare = 60,
1058 .enable = 150,
1059 .disable = 100,
1060 .unprepare = 60,
1061 },
1062 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1063};
1064
1035static const struct drm_display_mode edt_et057090dhu_mode = { 1065static const struct drm_display_mode edt_et057090dhu_mode = {
1036 .clock = 25175, 1066 .clock = 25175,
1037 .hdisplay = 640, 1067 .hdisplay = 640,
@@ -2471,6 +2501,9 @@ static const struct of_device_id platform_of_match[] = {
2471 .compatible = "dlc,dlc0700yzg-1", 2501 .compatible = "dlc,dlc0700yzg-1",
2472 .data = &dlc_dlc0700yzg_1, 2502 .data = &dlc_dlc0700yzg_1,
2473 }, { 2503 }, {
2504 .compatible = "dlc,dlc1010gig",
2505 .data = &dlc_dlc1010gig,
2506 }, {
2474 .compatible = "edt,et057090dhu", 2507 .compatible = "edt,et057090dhu",
2475 .data = &edt_et057090dhu, 2508 .data = &edt_et057090dhu,
2476 }, { 2509 }, {