diff options
| author | Philipp Zabel <philipp.zabel@gmail.com> | 2014-11-19 04:29:55 -0500 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2015-01-28 02:45:38 -0500 |
| commit | d435a2af12349e6285559196675ad45f1e4a041d (patch) | |
| tree | 8a42051e141ec6e3525766dd6d7ebb61fb0b5851 /drivers/gpu/drm | |
| parent | f65110e6800ef76f1c683cca9189b099e4d65a0b (diff) | |
drm/panel: simple: Add support for Giantplus GPG482739QS5
This patch adds support for the GiantPlus GPG48273QS5 4.3" WQVGA TFT LCD
panel to the simple-panel driver.
This panel is connected via a parallel bus and uses both HSYNC and
VSYNC, whose lengths are unfortunately not clearly defined. The
datasheet only specifies the front- and backporch length, but the timing
diagram suggests that both sync signals should be asserted for exactly
one clock cycle.
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm')
| -rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 26 |
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 6049d245c20e..787983c3603d 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 foxlink_fl500wvr00_a0t = { | |||
| 566 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, | 566 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 567 | }; | 567 | }; |
| 568 | 568 | ||
| 569 | static const struct drm_display_mode giantplus_gpg482739qs5_mode = { | ||
| 570 | .clock = 9000, | ||
| 571 | .hdisplay = 480, | ||
| 572 | .hsync_start = 480 + 5, | ||
| 573 | .hsync_end = 480 + 5 + 1, | ||
| 574 | .htotal = 480 + 5 + 1 + 40, | ||
| 575 | .vdisplay = 272, | ||
| 576 | .vsync_start = 272 + 8, | ||
| 577 | .vsync_end = 272 + 8 + 1, | ||
| 578 | .vtotal = 272 + 8 + 1 + 8, | ||
| 579 | .vrefresh = 60, | ||
| 580 | }; | ||
| 581 | |||
| 582 | static const struct panel_desc giantplus_gpg482739qs5 = { | ||
| 583 | .modes = &giantplus_gpg482739qs5_mode, | ||
| 584 | .num_modes = 1, | ||
| 585 | .bpc = 8, | ||
| 586 | .size = { | ||
| 587 | .width = 95, | ||
| 588 | .height = 54, | ||
| 589 | }, | ||
| 590 | }; | ||
| 591 | |||
| 569 | static const struct drm_display_mode hannstar_hsd070pww1_mode = { | 592 | static const struct drm_display_mode hannstar_hsd070pww1_mode = { |
| 570 | .clock = 71100, | 593 | .clock = 71100, |
| 571 | .hdisplay = 1280, | 594 | .hdisplay = 1280, |
| @@ -763,6 +786,9 @@ static const struct of_device_id platform_of_match[] = { | |||
| 763 | .compatible = "foxlink,fl500wvr00-a0t", | 786 | .compatible = "foxlink,fl500wvr00-a0t", |
| 764 | .data = &foxlink_fl500wvr00_a0t, | 787 | .data = &foxlink_fl500wvr00_a0t, |
| 765 | }, { | 788 | }, { |
| 789 | .compatible = "giantplus,gpg482739qs5", | ||
| 790 | .data = &giantplus_gpg482739qs5 | ||
| 791 | }, { | ||
| 766 | .compatible = "hannstar,hsd070pww1", | 792 | .compatible = "hannstar,hsd070pww1", |
| 767 | .data = &hannstar_hsd070pww1, | 793 | .data = &hannstar_hsd070pww1, |
| 768 | }, { | 794 | }, { |
