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.c82
1 files changed, 67 insertions, 15 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 5591984a392b..cbf1ab404ee7 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -581,6 +581,29 @@ static const struct panel_desc auo_b133htn01 = {
581 }, 581 },
582}; 582};
583 583
584static const struct drm_display_mode auo_g104sn02_mode = {
585 .clock = 40000,
586 .hdisplay = 800,
587 .hsync_start = 800 + 40,
588 .hsync_end = 800 + 40 + 216,
589 .htotal = 800 + 40 + 216 + 128,
590 .vdisplay = 600,
591 .vsync_start = 600 + 10,
592 .vsync_end = 600 + 10 + 35,
593 .vtotal = 600 + 10 + 35 + 2,
594 .vrefresh = 60,
595};
596
597static const struct panel_desc auo_g104sn02 = {
598 .modes = &auo_g104sn02_mode,
599 .num_modes = 1,
600 .bpc = 8,
601 .size = {
602 .width = 211,
603 .height = 158,
604 },
605};
606
584static const struct display_timing auo_g133han01_timings = { 607static const struct display_timing auo_g133han01_timings = {
585 .pixelclock = { 134000000, 141200000, 149000000 }, 608 .pixelclock = { 134000000, 141200000, 149000000 },
586 .hactive = { 1920, 1920, 1920 }, 609 .hactive = { 1920, 1920, 1920 },
@@ -1217,6 +1240,30 @@ static const struct panel_desc innolux_zj070na_01p = {
1217 }, 1240 },
1218}; 1241};
1219 1242
1243static const struct display_timing koe_tx31d200vm0baa_timing = {
1244 .pixelclock = { 39600000, 43200000, 48000000 },
1245 .hactive = { 1280, 1280, 1280 },
1246 .hfront_porch = { 16, 36, 56 },
1247 .hback_porch = { 16, 36, 56 },
1248 .hsync_len = { 8, 8, 8 },
1249 .vactive = { 480, 480, 480 },
1250 .vfront_porch = { 6, 21, 33.5 },
1251 .vback_porch = { 6, 21, 33.5 },
1252 .vsync_len = { 8, 8, 8 },
1253 .flags = DISPLAY_FLAGS_DE_HIGH,
1254};
1255
1256static const struct panel_desc koe_tx31d200vm0baa = {
1257 .timings = &koe_tx31d200vm0baa_timing,
1258 .num_timings = 1,
1259 .bpc = 6,
1260 .size = {
1261 .width = 292,
1262 .height = 109,
1263 },
1264 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1265};
1266
1220static const struct display_timing kyo_tcg121xglp_timing = { 1267static const struct display_timing kyo_tcg121xglp_timing = {
1221 .pixelclock = { 52000000, 65000000, 71000000 }, 1268 .pixelclock = { 52000000, 65000000, 71000000 },
1222 .hactive = { 1024, 1024, 1024 }, 1269 .hactive = { 1024, 1024, 1024 },
@@ -1597,7 +1644,7 @@ static const struct panel_desc ontat_yx700wv03 = {
1597 .width = 154, 1644 .width = 154,
1598 .height = 83, 1645 .height = 83,
1599 }, 1646 },
1600 .bus_format = MEDIA_BUS_FMT_RGB888_1X24, 1647 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1601}; 1648};
1602 1649
1603static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { 1650static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
@@ -1741,23 +1788,22 @@ static const struct panel_desc sharp_lq101k1ly04 = {
1741 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, 1788 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1742}; 1789};
1743 1790
1744static const struct drm_display_mode sharp_lq123p1jx31_mode = { 1791static const struct display_timing sharp_lq123p1jx31_timing = {
1745 .clock = 252750, 1792 .pixelclock = { 252750000, 252750000, 266604720 },
1746 .hdisplay = 2400, 1793 .hactive = { 2400, 2400, 2400 },
1747 .hsync_start = 2400 + 48, 1794 .hfront_porch = { 48, 48, 48 },
1748 .hsync_end = 2400 + 48 + 32, 1795 .hback_porch = { 80, 80, 84 },
1749 .htotal = 2400 + 48 + 32 + 80, 1796 .hsync_len = { 32, 32, 32 },
1750 .vdisplay = 1600, 1797 .vactive = { 1600, 1600, 1600 },
1751 .vsync_start = 1600 + 3, 1798 .vfront_porch = { 3, 3, 3 },
1752 .vsync_end = 1600 + 3 + 10, 1799 .vback_porch = { 33, 33, 120 },
1753 .vtotal = 1600 + 3 + 10 + 33, 1800 .vsync_len = { 10, 10, 10 },
1754 .vrefresh = 60, 1801 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW,
1755 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1756}; 1802};
1757 1803
1758static const struct panel_desc sharp_lq123p1jx31 = { 1804static const struct panel_desc sharp_lq123p1jx31 = {
1759 .modes = &sharp_lq123p1jx31_mode, 1805 .timings = &sharp_lq123p1jx31_timing,
1760 .num_modes = 1, 1806 .num_timings = 1,
1761 .bpc = 8, 1807 .bpc = 8,
1762 .size = { 1808 .size = {
1763 .width = 259, 1809 .width = 259,
@@ -2049,6 +2095,9 @@ static const struct of_device_id platform_of_match[] = {
2049 .compatible = "auo,b133xtn01", 2095 .compatible = "auo,b133xtn01",
2050 .data = &auo_b133xtn01, 2096 .data = &auo_b133xtn01,
2051 }, { 2097 }, {
2098 .compatible = "auo,g104sn02",
2099 .data = &auo_g104sn02,
2100 }, {
2052 .compatible = "auo,g133han01", 2101 .compatible = "auo,g133han01",
2053 .data = &auo_g133han01, 2102 .data = &auo_g133han01,
2054 }, { 2103 }, {
@@ -2124,6 +2173,9 @@ static const struct of_device_id platform_of_match[] = {
2124 .compatible = "innolux,zj070na-01p", 2173 .compatible = "innolux,zj070na-01p",
2125 .data = &innolux_zj070na_01p, 2174 .data = &innolux_zj070na_01p,
2126 }, { 2175 }, {
2176 .compatible = "koe,tx31d200vm0baa",
2177 .data = &koe_tx31d200vm0baa,
2178 }, {
2127 .compatible = "kyo,tcg121xglp", 2179 .compatible = "kyo,tcg121xglp",
2128 .data = &kyo_tcg121xglp, 2180 .data = &kyo_tcg121xglp,
2129 }, { 2181 }, {