diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2019-01-14 04:43:31 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-01-28 11:45:28 -0500 |
commit | 4ba3e56340bbf00bb1da771b9892083ab4632dbe (patch) | |
tree | 326fc447701281a6f655cdd4025aab2079d3ec9b /drivers/gpu/drm/panel/panel-simple.c | |
parent | b3b54ed1731cfd809c5d02b3334977619cece3bf (diff) |
drm/panel: simple: Add support for PDA 91-00156-A0 panel
PDA 91-00156-A0 5.0 is a 5.0" WVGA TFT LCD panel. This panel with
backlight is found in PDA 5" LCD screen (TM5000 series or AC320005-5).
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1547458584-29548-4-git-send-email-eugen.hristev@microchip.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 56ec954a437b..9e8218f6a3f2 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -2032,6 +2032,30 @@ static const struct panel_desc ortustech_com43h4m85ulc = { | |||
2032 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, | 2032 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, |
2033 | }; | 2033 | }; |
2034 | 2034 | ||
2035 | static const struct drm_display_mode pda_91_00156_a0_mode = { | ||
2036 | .clock = 33300, | ||
2037 | .hdisplay = 800, | ||
2038 | .hsync_start = 800 + 1, | ||
2039 | .hsync_end = 800 + 1 + 64, | ||
2040 | .htotal = 800 + 1 + 64 + 64, | ||
2041 | .vdisplay = 480, | ||
2042 | .vsync_start = 480 + 1, | ||
2043 | .vsync_end = 480 + 1 + 23, | ||
2044 | .vtotal = 480 + 1 + 23 + 22, | ||
2045 | .vrefresh = 60, | ||
2046 | }; | ||
2047 | |||
2048 | static const struct panel_desc pda_91_00156_a0 = { | ||
2049 | .modes = &pda_91_00156_a0_mode, | ||
2050 | .num_modes = 1, | ||
2051 | .size = { | ||
2052 | .width = 152, | ||
2053 | .height = 91, | ||
2054 | }, | ||
2055 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, | ||
2056 | }; | ||
2057 | |||
2058 | |||
2035 | static const struct drm_display_mode qd43003c0_40_mode = { | 2059 | static const struct drm_display_mode qd43003c0_40_mode = { |
2036 | .clock = 9000, | 2060 | .clock = 9000, |
2037 | .hdisplay = 480, | 2061 | .hdisplay = 480, |
@@ -2713,6 +2737,9 @@ static const struct of_device_id platform_of_match[] = { | |||
2713 | .compatible = "ortustech,com43h4m85ulc", | 2737 | .compatible = "ortustech,com43h4m85ulc", |
2714 | .data = &ortustech_com43h4m85ulc, | 2738 | .data = &ortustech_com43h4m85ulc, |
2715 | }, { | 2739 | }, { |
2740 | .compatible = "pda,91-00156-a0", | ||
2741 | .data = &pda_91_00156_a0, | ||
2742 | }, { | ||
2716 | .compatible = "qiaodian,qd43003c0-40", | 2743 | .compatible = "qiaodian,qd43003c0-40", |
2717 | .data = &qd43003c0_40, | 2744 | .data = &qd43003c0_40, |
2718 | }, { | 2745 | }, { |