diff options
| author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-03-19 09:43:01 -0400 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2015-04-02 13:04:09 -0400 |
| commit | 41bcceb4de9c5b120459610fe8a9157dee418d75 (patch) | |
| tree | 1a839dfd9c0f7dfd1647d5117e38441ce76bf43a | |
| parent | 9c6615bc379d2a85d7ef593d1c89a72abcc8186c (diff) | |
drm/panel: simple: Add support for Innolux AT043TN24
The Innolux AT043TN24 4.3" WQVGA TFT LCD panel.
This panel with backlight is found in PDA 4.3" LCD screen (TM43xx series for
instance).
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
| -rw-r--r-- | Documentation/devicetree/bindings/panel/innolux,at043tn24.txt | 7 | ||||
| -rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 28 |
2 files changed, 35 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/innolux,at043tn24.txt b/Documentation/devicetree/bindings/panel/innolux,at043tn24.txt new file mode 100644 index 000000000000..4104226b61bc --- /dev/null +++ b/Documentation/devicetree/bindings/panel/innolux,at043tn24.txt | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | Innolux AT043TN24 4.3" WQVGA TFT LCD panel | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: should be "innolux,at043tn24" | ||
| 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 555c11d9c7cc..57958f11d569 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
| @@ -663,6 +663,31 @@ static const struct panel_desc hitachi_tx23d38vm0caa = { | |||
| 663 | }, | 663 | }, |
| 664 | }; | 664 | }; |
| 665 | 665 | ||
| 666 | static const struct drm_display_mode innolux_at043tn24_mode = { | ||
| 667 | .clock = 9000, | ||
| 668 | .hdisplay = 480, | ||
| 669 | .hsync_start = 480 + 2, | ||
| 670 | .hsync_end = 480 + 2 + 41, | ||
| 671 | .htotal = 480 + 2 + 41 + 2, | ||
| 672 | .vdisplay = 272, | ||
| 673 | .vsync_start = 272 + 2, | ||
| 674 | .vsync_end = 272 + 2 + 11, | ||
| 675 | .vtotal = 272 + 2 + 11 + 2, | ||
| 676 | .vrefresh = 60, | ||
| 677 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, | ||
| 678 | }; | ||
| 679 | |||
| 680 | static const struct panel_desc innolux_at043tn24 = { | ||
| 681 | .modes = &innolux_at043tn24_mode, | ||
| 682 | .num_modes = 1, | ||
| 683 | .bpc = 8, | ||
| 684 | .size = { | ||
| 685 | .width = 95, | ||
| 686 | .height = 54, | ||
| 687 | }, | ||
| 688 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, | ||
| 689 | }; | ||
| 690 | |||
| 666 | static const struct drm_display_mode innolux_g121i1_l01_mode = { | 691 | static const struct drm_display_mode innolux_g121i1_l01_mode = { |
| 667 | .clock = 71000, | 692 | .clock = 71000, |
| 668 | .hdisplay = 1280, | 693 | .hdisplay = 1280, |
| @@ -872,6 +897,9 @@ static const struct of_device_id platform_of_match[] = { | |||
| 872 | .compatible = "hit,tx23d38vm0caa", | 897 | .compatible = "hit,tx23d38vm0caa", |
| 873 | .data = &hitachi_tx23d38vm0caa | 898 | .data = &hitachi_tx23d38vm0caa |
| 874 | }, { | 899 | }, { |
| 900 | .compatible = "innolux,at043tn24", | ||
| 901 | .data = &innolux_at043tn24, | ||
| 902 | }, { | ||
| 875 | .compatible ="innolux,g121i1-l01", | 903 | .compatible ="innolux,g121i1-l01", |
| 876 | .data = &innolux_g121i1_l01 | 904 | .data = &innolux_g121i1_l01 |
| 877 | }, { | 905 | }, { |
