drm/panel: simple: Convert sharp,ls020b1dd01d from timings to videomode

Convert the Sharp LS020B1DD01D panel entry from using a struct
display_timing to using a struct drm_display_mode, as display_timing
seems to be the old and legacy format.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200811002240.55194-4-paul@crapouillou.net
This commit is contained in:
Paul Cercueil 2020-08-11 02:22:38 +02:00 committed by Sam Ravnborg
parent bdfd720fb2
commit 656b759636
1 changed files with 15 additions and 13 deletions

View File

@ -3398,22 +3398,24 @@ static const struct panel_desc sharp_lq123p1jx31 = {
}, },
}; };
static const struct display_timing sharp_ls020b1dd01d_timing = { static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
.pixelclock = { 2000000, 4200000, 5000000 }, { /* 60 Hz */
.hactive = { 240, 240, 240 }, .clock = 4200,
.hfront_porch = { 66, 66, 66 }, .hdisplay = 240,
.hback_porch = { 1, 1, 1 }, .hsync_start = 240 + 66,
.hsync_len = { 1, 1, 1 }, .hsync_end = 240 + 66 + 1,
.vactive = { 160, 160, 160 }, .htotal = 240 + 66 + 1 + 1,
.vfront_porch = { 52, 52, 52 }, .vdisplay = 160,
.vback_porch = { 6, 6, 6 }, .vsync_start = 160 + 52,
.vsync_len = { 10, 10, 10 }, .vsync_end = 160 + 52 + 10,
.flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_LOW, .vtotal = 160 + 52 + 10 + 6,
.flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
},
}; };
static const struct panel_desc sharp_ls020b1dd01d = { static const struct panel_desc sharp_ls020b1dd01d = {
.timings = &sharp_ls020b1dd01d_timing, .modes = sharp_ls020b1dd01d_modes,
.num_timings = 1, .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
.bpc = 6, .bpc = 6,
.size = { .size = {
.width = 42, .width = 42,