diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2014-06-05 09:53:32 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-07-15 06:40:19 -0400 |
commit | 102932b0e474bb33061e88bcf5d83e66f10c1da2 (patch) | |
tree | 95f368b50bc380d23a887209f5d7f6a102ef9147 | |
parent | 5e4cc278625d789b72a3a74f6b90362d2436f6a5 (diff) |
drm/panel: add support for Foxlink FL500WVR00-A0T panel
This panel is used by Atmel's SAMA5D3 Evaluation Kits (sama5d3xek) and
supported by the simple-panel driver.
Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | Documentation/devicetree/bindings/panel/foxlink,fl500wvr00-a0t.txt | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 25 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/foxlink,fl500wvr00-a0t.txt b/Documentation/devicetree/bindings/panel/foxlink,fl500wvr00-a0t.txt new file mode 100644 index 000000000000..b47f9d87bc19 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/foxlink,fl500wvr00-a0t.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | Foxlink Group 5" WVGA TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "foxlink,fl500wvr00-a0t" | ||
5 | |||
6 | This binding is compatible with the simple-panel binding, which is specified | ||
7 | in 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 869a84e31ddd..9961d4408430 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -403,6 +403,28 @@ static const struct panel_desc edt_etm0700g0dh6 = { | |||
403 | }, | 403 | }, |
404 | }; | 404 | }; |
405 | 405 | ||
406 | static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = { | ||
407 | .clock = 32260, | ||
408 | .hdisplay = 800, | ||
409 | .hsync_start = 800 + 168, | ||
410 | .hsync_end = 800 + 168 + 64, | ||
411 | .htotal = 800 + 168 + 64 + 88, | ||
412 | .vdisplay = 480, | ||
413 | .vsync_start = 480 + 37, | ||
414 | .vsync_end = 480 + 37 + 2, | ||
415 | .vtotal = 480 + 37 + 2 + 8, | ||
416 | .vrefresh = 60, | ||
417 | }; | ||
418 | |||
419 | static const struct panel_desc foxlink_fl500wvr00_a0t = { | ||
420 | .modes = &foxlink_fl500wvr00_a0t_mode, | ||
421 | .num_modes = 1, | ||
422 | .size = { | ||
423 | .width = 108, | ||
424 | .height = 65, | ||
425 | }, | ||
426 | }; | ||
427 | |||
406 | static const struct drm_display_mode lg_lp129qe_mode = { | 428 | static const struct drm_display_mode lg_lp129qe_mode = { |
407 | .clock = 285250, | 429 | .clock = 285250, |
408 | .hdisplay = 2560, | 430 | .hdisplay = 2560, |
@@ -470,6 +492,9 @@ static const struct of_device_id platform_of_match[] = { | |||
470 | .compatible = "edt,etm0700g0dh6", | 492 | .compatible = "edt,etm0700g0dh6", |
471 | .data = &edt_etm0700g0dh6, | 493 | .data = &edt_etm0700g0dh6, |
472 | }, { | 494 | }, { |
495 | .compatible = "foxlink,fl500wvr00-a0t", | ||
496 | .data = &foxlink_fl500wvr00_a0t, | ||
497 | }, { | ||
473 | .compatible = "lg,lp129qe", | 498 | .compatible = "lg,lp129qe", |
474 | .data = &lg_lp129qe, | 499 | .data = &lg_lp129qe, |
475 | }, { | 500 | }, { |