aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorspanda@codeaurora.org <spanda@codeaurora.org>2018-05-15 01:52:43 -0400
committerThierry Reding <treding@nvidia.com>2018-05-18 06:05:50 -0400
commitda50bd4258db62810de4e0f3d75cf7d3d67466b1 (patch)
treefda5ec229e175a84612e205fe0b4f7d88d4c7395 /drivers/gpu/drm
parent9c04400f7ea6bbdfd0f069f082188c34c2d6a929 (diff)
drm/panel: simple: Add Innolux TV123WAM panel driver support
Add support for Innolux TV123WAM, which is a 12.3" eDP display panel with 2160x1440 resolution. Changes in v1: - Add the compatibility string, display_mode and panel_desc structures in alphabetical order (Sean Paul). Signed-off-by: Sandeep Panda <spanda@codeaurora.org> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/1526363564-13823-4-git-send-email-spanda@codeaurora.org
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c27
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 062b6b416b89..2209aeddae3c 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1216,6 +1216,30 @@ static const struct panel_desc innolux_n156bge_l21 = {
1216 }, 1216 },
1217}; 1217};
1218 1218
1219static const struct drm_display_mode innolux_tv123wam_mode = {
1220 .clock = 206016,
1221 .hdisplay = 2160,
1222 .hsync_start = 2160 + 48,
1223 .hsync_end = 2160 + 48 + 32,
1224 .htotal = 2160 + 48 + 32 + 80,
1225 .vdisplay = 1440,
1226 .vsync_start = 1440 + 3,
1227 .vsync_end = 1440 + 3 + 10,
1228 .vtotal = 1440 + 3 + 10 + 27,
1229 .vrefresh = 60,
1230 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
1231};
1232
1233static const struct panel_desc innolux_tv123wam = {
1234 .modes = &innolux_tv123wam_mode,
1235 .num_modes = 1,
1236 .bpc = 8,
1237 .size = {
1238 .width = 259,
1239 .height = 173,
1240 },
1241};
1242
1219static const struct drm_display_mode innolux_zj070na_01p_mode = { 1243static const struct drm_display_mode innolux_zj070na_01p_mode = {
1220 .clock = 51501, 1244 .clock = 51501,
1221 .hdisplay = 1024, 1245 .hdisplay = 1024,
@@ -2169,6 +2193,9 @@ static const struct of_device_id platform_of_match[] = {
2169 .compatible = "innolux,n156bge-l21", 2193 .compatible = "innolux,n156bge-l21",
2170 .data = &innolux_n156bge_l21, 2194 .data = &innolux_n156bge_l21,
2171 }, { 2195 }, {
2196 .compatible = "innolux,tv123wam",
2197 .data = &innolux_tv123wam,
2198 }, {
2172 .compatible = "innolux,zj070na-01p", 2199 .compatible = "innolux,zj070na-01p",
2173 .data = &innolux_zj070na_01p, 2200 .data = &innolux_zj070na_01p,
2174 }, { 2201 }, {