aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYakir Yang <ykk@rock-chips.com>2016-06-11 22:56:35 -0400
committerThierry Reding <treding@nvidia.com>2016-07-11 08:30:39 -0400
commit739c7de9a141cb9463bd6d68d84b6ace5b2f6cb7 (patch)
tree3b547d4265994364b9bafc286bd8cd1f10692187
parent4f9339a1c0d1d88b05ea7f2a47a614232ce229ef (diff)
drm/panel: simple: Add support for Sharp LQ123P1JX31 panel
The Sharp LQ123P1JX31 is an 12.3", 2400x1600 TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang <ykk@rock-chips.com> Reviewed-by: Doug Anderson <dianders@chromium.org> Tested-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index c14e48e66b8d..c2031678f04a 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1316,6 +1316,29 @@ static const struct panel_desc samsung_ltn140at29_301 = {
1316 }, 1316 },
1317}; 1317};
1318 1318
1319static const struct drm_display_mode sharp_lq123p1jx31_mode = {
1320 .clock = 252750,
1321 .hdisplay = 2400,
1322 .hsync_start = 2400 + 48,
1323 .hsync_end = 2400 + 48 + 32,
1324 .htotal = 2400 + 48 + 32 + 80,
1325 .vdisplay = 1600,
1326 .vsync_start = 1600 + 3,
1327 .vsync_end = 1600 + 3 + 10,
1328 .vtotal = 1600 + 3 + 10 + 33,
1329 .vrefresh = 60,
1330 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1331};
1332
1333static const struct panel_desc sharp_lq123p1jx31 = {
1334 .modes = &sharp_lq123p1jx31_mode,
1335 .num_modes = 1,
1336 .size = {
1337 .width = 259,
1338 .height = 173,
1339 },
1340};
1341
1319static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = { 1342static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
1320 .clock = 33300, 1343 .clock = 33300,
1321 .hdisplay = 800, 1344 .hdisplay = 800,
@@ -1539,6 +1562,9 @@ static const struct of_device_id platform_of_match[] = {
1539 .compatible = "samsung,ltn140at29-301", 1562 .compatible = "samsung,ltn140at29-301",
1540 .data = &samsung_ltn140at29_301, 1563 .data = &samsung_ltn140at29_301,
1541 }, { 1564 }, {
1565 .compatible = "sharp,lq123p1jx31",
1566 .data = &sharp_lq123p1jx31,
1567 }, {
1542 .compatible = "shelly,sca07010-bfn-lnn", 1568 .compatible = "shelly,sca07010-bfn-lnn",
1543 .data = &shelly_sca07010_bfn_lnn, 1569 .data = &shelly_sca07010_bfn_lnn,
1544 }, { 1570 }, {