Skip to content

Commit b0d2ada

Browse files
aford173gregkh
authored andcommitted
drm/panel: simple: Add Logic PD Type 28 display support
[ Upstream commit 0d35408 ] Previously, there was an omap panel-dpi driver that would read generic timings from the device tree and set the display timing accordingly. This driver was removed so the screen no longer functions. This patch modifies the panel-simple file to setup the timings to the same values previously used. Fixes: 8bf4b16 ("drm/omap: Remove panel-dpi driver") Signed-off-by: Adam Ford <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Sasha Levin <[email protected]>
1 parent 5823855 commit b0d2ada

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,6 +2061,40 @@ static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
20612061
.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
20622062
};
20632063

2064+
static const struct drm_display_mode logicpd_type_28_mode = {
2065+
.clock = 9000,
2066+
.hdisplay = 480,
2067+
.hsync_start = 480 + 3,
2068+
.hsync_end = 480 + 3 + 42,
2069+
.htotal = 480 + 3 + 42 + 2,
2070+
2071+
.vdisplay = 272,
2072+
.vsync_start = 272 + 2,
2073+
.vsync_end = 272 + 2 + 11,
2074+
.vtotal = 272 + 2 + 11 + 3,
2075+
.vrefresh = 60,
2076+
.flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
2077+
};
2078+
2079+
static const struct panel_desc logicpd_type_28 = {
2080+
.modes = &logicpd_type_28_mode,
2081+
.num_modes = 1,
2082+
.bpc = 8,
2083+
.size = {
2084+
.width = 105,
2085+
.height = 67,
2086+
},
2087+
.delay = {
2088+
.prepare = 200,
2089+
.enable = 200,
2090+
.unprepare = 200,
2091+
.disable = 200,
2092+
},
2093+
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2094+
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
2095+
DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
2096+
};
2097+
20642098
static const struct panel_desc mitsubishi_aa070mc01 = {
20652099
.modes = &mitsubishi_aa070mc01_mode,
20662100
.num_modes = 1,
@@ -3287,6 +3321,9 @@ static const struct of_device_id platform_of_match[] = {
32873321
}, {
32883322
.compatible = "lg,lp129qe",
32893323
.data = &lg_lp129qe,
3324+
}, {
3325+
.compatible = "logicpd,type28",
3326+
.data = &logicpd_type_28,
32903327
}, {
32913328
.compatible = "mitsubishi,aa070mc01-ca1",
32923329
.data = &mitsubishi_aa070mc01,

0 commit comments

Comments
 (0)