aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 89eb0422821c..c4566ce8fda7 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -386,6 +386,31 @@ static void panel_simple_shutdown(struct device *dev)
386 panel_simple_disable(&panel->base); 386 panel_simple_disable(&panel->base);
387} 387}
388 388
389static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
390 .clock = 9000,
391 .hdisplay = 480,
392 .hsync_start = 480 + 2,
393 .hsync_end = 480 + 2 + 41,
394 .htotal = 480 + 2 + 41 + 2,
395 .vdisplay = 272,
396 .vsync_start = 272 + 2,
397 .vsync_end = 272 + 2 + 10,
398 .vtotal = 272 + 2 + 10 + 2,
399 .vrefresh = 60,
400 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
401};
402
403static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
404 .modes = &ampire_am_480272h3tmqw_t01h_mode,
405 .num_modes = 1,
406 .bpc = 8,
407 .size = {
408 .width = 105,
409 .height = 67,
410 },
411 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
412};
413
389static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = { 414static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {
390 .clock = 33333, 415 .clock = 33333,
391 .hdisplay = 800, 416 .hdisplay = 800,
@@ -1806,8 +1831,36 @@ static const struct panel_desc urt_umsh_8596md_parallel = {
1806 .bus_format = MEDIA_BUS_FMT_RGB666_1X18, 1831 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1807}; 1832};
1808 1833
1834static const struct drm_display_mode winstar_wf35ltiacd_mode = {
1835 .clock = 6410,
1836 .hdisplay = 320,
1837 .hsync_start = 320 + 20,
1838 .hsync_end = 320 + 20 + 30,
1839 .htotal = 320 + 20 + 30 + 38,
1840 .vdisplay = 240,
1841 .vsync_start = 240 + 4,
1842 .vsync_end = 240 + 4 + 3,
1843 .vtotal = 240 + 4 + 3 + 15,
1844 .vrefresh = 60,
1845 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1846};
1847
1848static const struct panel_desc winstar_wf35ltiacd = {
1849 .modes = &winstar_wf35ltiacd_mode,
1850 .num_modes = 1,
1851 .bpc = 8,
1852 .size = {
1853 .width = 70,
1854 .height = 53,
1855 },
1856 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1857};
1858
1809static const struct of_device_id platform_of_match[] = { 1859static const struct of_device_id platform_of_match[] = {
1810 { 1860 {
1861 .compatible = "ampire,am-480272h3tmqw-t01h",
1862 .data = &ampire_am_480272h3tmqw_t01h,
1863 }, {
1811 .compatible = "ampire,am800480r3tmqwa1h", 1864 .compatible = "ampire,am800480r3tmqwa1h",
1812 .data = &ampire_am800480r3tmqwa1h, 1865 .data = &ampire_am800480r3tmqwa1h,
1813 }, { 1866 }, {
@@ -1994,6 +2047,9 @@ static const struct of_device_id platform_of_match[] = {
1994 .compatible = "urt,umsh-8596md-20t", 2047 .compatible = "urt,umsh-8596md-20t",
1995 .data = &urt_umsh_8596md_parallel, 2048 .data = &urt_umsh_8596md_parallel,
1996 }, { 2049 }, {
2050 .compatible = "winstar,wf35ltiacd",
2051 .data = &winstar_wf35ltiacd,
2052 }, {
1997 /* sentinel */ 2053 /* sentinel */
1998 } 2054 }
1999}; 2055};