Commit c3ba13a0 authored by Alexander Stein's avatar Alexander Stein Committed by Neil Armstrong

drm: panel: simple: convert LG LB070WV8 fixed mode into display timings

At least the pixelclock has a range which can vary. Convert fixed mode
into display timings so they can be overwritten in DT if necessary.
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240110082245.417736-1-alexander.stein@ew.tq-group.comSigned-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240110082245.417736-1-alexander.stein@ew.tq-group.com
parent 502756e2
...@@ -2754,21 +2754,21 @@ static const struct panel_desc lemaker_bl035_rgb_002 = { ...@@ -2754,21 +2754,21 @@ static const struct panel_desc lemaker_bl035_rgb_002 = {
.bus_flags = DRM_BUS_FLAG_DE_LOW, .bus_flags = DRM_BUS_FLAG_DE_LOW,
}; };
static const struct drm_display_mode lg_lb070wv8_mode = { static const struct display_timing lg_lb070wv8_timing = {
.clock = 33246, .pixelclock = { 31950000, 33260000, 34600000 },
.hdisplay = 800, .hactive = { 800, 800, 800 },
.hsync_start = 800 + 88, .hfront_porch = { 88, 88, 88 },
.hsync_end = 800 + 88 + 80, .hback_porch = { 88, 88, 88 },
.htotal = 800 + 88 + 80 + 88, .hsync_len = { 80, 80, 80 },
.vdisplay = 480, .vactive = { 480, 480, 480 },
.vsync_start = 480 + 10, .vfront_porch = { 10, 10, 10 },
.vsync_end = 480 + 10 + 25, .vback_porch = { 10, 10, 10 },
.vtotal = 480 + 10 + 25 + 10, .vsync_len = { 25, 25, 25 },
}; };
static const struct panel_desc lg_lb070wv8 = { static const struct panel_desc lg_lb070wv8 = {
.modes = &lg_lb070wv8_mode, .timings = &lg_lb070wv8_timing,
.num_modes = 1, .num_timings = 1,
.bpc = 8, .bpc = 8,
.size = { .size = {
.width = 151, .width = 151,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment