aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-simple.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2018-07-06 14:51:01 -0400
committerThierry Reding <treding@nvidia.com>2018-07-11 12:35:25 -0400
commit03e3ec9ad1ee484f872bad6d673d46c9742e71ef (patch)
treecbe32dec8e384f273d30543855b47c9be338ab01 /drivers/gpu/drm/panel/panel-simple.c
parentac1fe1322530ccca0771e3f680e8a6269c48c449 (diff)
drm/panel: simple: Add Sharp LQ035Q7DB03 panel support
The change adds support for Sharp LQ035Q7DB03 3.5" QVGA TFT panel. Note that this aged panel is already found in the kernel sources, for instance in board mach files mach-mx21ads.c, mach-mx27ads.c, mach-pcm043.c, lpd270.c and imx27-phytec-phycore-rdk.dts. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180706185101.31186-1-vz@mleia.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
-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 3b226ad8acad..86fec03dd260 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1991,6 +1991,30 @@ static const struct panel_desc samsung_ltn140at29_301 = {
1991 }, 1991 },
1992}; 1992};
1993 1993
1994static const struct drm_display_mode sharp_lq035q7db03_mode = {
1995 .clock = 5500,
1996 .hdisplay = 240,
1997 .hsync_start = 240 + 16,
1998 .hsync_end = 240 + 16 + 7,
1999 .htotal = 240 + 16 + 7 + 5,
2000 .vdisplay = 320,
2001 .vsync_start = 320 + 9,
2002 .vsync_end = 320 + 9 + 1,
2003 .vtotal = 320 + 9 + 1 + 7,
2004 .vrefresh = 60,
2005};
2006
2007static const struct panel_desc sharp_lq035q7db03 = {
2008 .modes = &sharp_lq035q7db03_mode,
2009 .num_modes = 1,
2010 .bpc = 6,
2011 .size = {
2012 .width = 54,
2013 .height = 72,
2014 },
2015 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2016};
2017
1994static const struct display_timing sharp_lq101k1ly04_timing = { 2018static const struct display_timing sharp_lq101k1ly04_timing = {
1995 .pixelclock = { 60000000, 65000000, 80000000 }, 2019 .pixelclock = { 60000000, 65000000, 80000000 },
1996 .hactive = { 1280, 1280, 1280 }, 2020 .hactive = { 1280, 1280, 1280 },
@@ -2493,6 +2517,9 @@ static const struct of_device_id platform_of_match[] = {
2493 .compatible = "samsung,ltn140at29-301", 2517 .compatible = "samsung,ltn140at29-301",
2494 .data = &samsung_ltn140at29_301, 2518 .data = &samsung_ltn140at29_301,
2495 }, { 2519 }, {
2520 .compatible = "sharp,lq035q7db03",
2521 .data = &sharp_lq035q7db03,
2522 }, {
2496 .compatible = "sharp,lq101k1ly04", 2523 .compatible = "sharp,lq101k1ly04",
2497 .data = &sharp_lq101k1ly04, 2524 .data = &sharp_lq101k1ly04,
2498 }, { 2525 }, {