Commit 4ae13e48 authored by Lucas Stach's avatar Lucas Stach Committed by Thierry Reding

drm/panel: simple: Add more properties to Innolux G121I1-L01

Convert from a single mode to display timings, which allow to describe
the minimum/maximium blanking and clock rates, add enable/disable delays
and provide the bus format.
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 5466a631
...@@ -928,27 +928,31 @@ static const struct panel_desc innolux_g101ice_l01 = { ...@@ -928,27 +928,31 @@ static const struct panel_desc innolux_g101ice_l01 = {
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
}; };
static const struct drm_display_mode innolux_g121i1_l01_mode = { static const struct display_timing innolux_g121i1_l01_timing = {
.clock = 71000, .pixelclock = { 67450000, 71000000, 74550000 },
.hdisplay = 1280, .hactive = { 1280, 1280, 1280 },
.hsync_start = 1280 + 64, .hfront_porch = { 40, 80, 160 },
.hsync_end = 1280 + 64 + 32, .hback_porch = { 39, 79, 159 },
.htotal = 1280 + 64 + 32 + 64, .hsync_len = { 1, 1, 1 },
.vdisplay = 800, .vactive = { 800, 800, 800 },
.vsync_start = 800 + 9, .vfront_porch = { 5, 11, 100 },
.vsync_end = 800 + 9 + 6, .vback_porch = { 4, 11, 99 },
.vtotal = 800 + 9 + 6 + 9, .vsync_len = { 1, 1, 1 },
.vrefresh = 60,
}; };
static const struct panel_desc innolux_g121i1_l01 = { static const struct panel_desc innolux_g121i1_l01 = {
.modes = &innolux_g121i1_l01_mode, .timings = &innolux_g121i1_l01_timing,
.num_modes = 1, .num_timings = 1,
.bpc = 6, .bpc = 6,
.size = { .size = {
.width = 261, .width = 261,
.height = 163, .height = 163,
}, },
.delay = {
.enable = 200,
.disable = 20,
},
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
}; };
static const struct drm_display_mode innolux_g121x1_l03_mode = { static const struct drm_display_mode innolux_g121x1_l03_mode = {
......
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