From: Yakir Yang Date: Wed, 27 Jan 2016 08:48:44 +0000 (+0800) Subject: drm/panel: simple: add support Chunghwa CLAA070WP03 800x1280 panel X-Git-Tag: firefly_0821_release~2338 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=468ffd0d78bb9e7f7e91651021426012c3b2c240;p=firefly-linux-kernel-4.4.55.git drm/panel: simple: add support Chunghwa CLAA070WP03 800x1280 panel Chunghwa CLAA070WP03 is 7” color TFT-LCD module composed of LCD panel, LVDS driver ICs, control circuit and backlight. This module supports 800x1280 mode. Change-Id: I6a6339ad25664e2e47fc0e0de5c079db3494bd25 Signed-off-by: Yakir Yang --- diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index ce32b3648499..8572ac24437e 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -566,6 +566,29 @@ static const struct panel_desc avic_tm070ddh03 = { }, }; +static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { + .clock = 67000, + .hdisplay = 800, + .hsync_start = 800 + 24, + .hsync_end = 800 + 24 + 16, + .htotal = 800 + 24 + 16 + 24, + .vdisplay = 1280, + .vsync_start = 1280 + 2, + .vsync_end = 1280 + 2 + 2, + .vtotal = 1280 + 2 + 2 + 4, + .vrefresh = 60, +}; + +static const struct panel_desc chunghwa_claa070wp03xg = { + .modes = &chunghwa_claa070wp03xg_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 94, + .height = 151, + }, +}; + static const struct drm_display_mode chunghwa_claa101wa01a_mode = { .clock = 72070, .hdisplay = 1366, @@ -1188,6 +1211,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "avic,tm070ddh03", .data = &avic_tm070ddh03, + }, { + .compatible = "chunghwa,claa070wp03xg", + .data = &chunghwa_claa070wp03xg, }, { .compatible = "chunghwa,claa101wa01a", .data = &chunghwa_claa101wa01a