aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2014-01-21 04:57:09 -0500
committerThierry Reding <treding@nvidia.com>2014-04-04 03:06:40 -0400
commit499ce85af98a93a1cedad78dd80cb3432631b1ee (patch)
tree486abe4a9efbed3394d7add9cb88a52bdc507a7b
parent462658b8b3bce3bf8cb158ef59ea88af54ac9277 (diff)
drm/panel: add support for LG LH500WX1-SD03 panel
This panel is used by the NVIDIA SHIELD and supported by the simple-panel driver. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt7
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c30
2 files changed, 37 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt b/Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt
new file mode 100644
index 000000000000..a04fd2b2e73d
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt
@@ -0,0 +1,7 @@
1LG Corporation 5" HD TFT LCD panel
2
3Required properties:
4- compatible: should be "lg,lh500wx1-sd03"
5
6This binding is compatible with the simple-panel binding, which is specified
7in simple-panel.txt in this directory.
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 9f7024c6ec94..355637d61cf3 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -430,6 +430,33 @@ struct panel_desc_dsi {
430 unsigned int lanes; 430 unsigned int lanes;
431}; 431};
432 432
433static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
434 .clock = 67000,
435 .hdisplay = 720,
436 .hsync_start = 720 + 12,
437 .hsync_end = 720 + 12 + 4,
438 .htotal = 720 + 12 + 4 + 112,
439 .vdisplay = 1280,
440 .vsync_start = 1280 + 8,
441 .vsync_end = 1280 + 8 + 4,
442 .vtotal = 1280 + 8 + 4 + 12,
443 .vrefresh = 60,
444};
445
446static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
447 .desc = {
448 .modes = &lg_lh500wx1_sd03_mode,
449 .num_modes = 1,
450 .size = {
451 .width = 62,
452 .height = 110,
453 },
454 },
455 .flags = MIPI_DSI_MODE_VIDEO,
456 .format = MIPI_DSI_FMT_RGB888,
457 .lanes = 4,
458};
459
433static const struct drm_display_mode panasonic_vvx10f004b00_mode = { 460static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
434 .clock = 157200, 461 .clock = 157200,
435 .hdisplay = 1920, 462 .hdisplay = 1920,
@@ -459,6 +486,9 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
459 486
460static const struct of_device_id dsi_of_match[] = { 487static const struct of_device_id dsi_of_match[] = {
461 { 488 {
489 .compatible = "lg,lh500wx1-sd03",
490 .data = &lg_lh500wx1_sd03
491 }, {
462 .compatible = "panasonic,vvx10f004b00", 492 .compatible = "panasonic,vvx10f004b00",
463 .data = &panasonic_vvx10f004b00 493 .data = &panasonic_vvx10f004b00
464 }, { 494 }, {