Commit 90c53f2b authored by Marek Vasut's avatar Marek Vasut

drm/panel: simple: Convert Innolux G121X1-L03 to display_timing

Use display_timing instead of drm_display_mode to define a range of
possible display timings supported by this panel. This makes the panel
support more flexible and improves compatibility. No functional change
is expected.

The settings are picked from documentation [1] section 6.1 INPUT SIGNAL
TIMING SPECIFICATIONS.

[1] https://www.distec.de/fileadmin/pdf/produkte/TFT-Displays/Innolux/G121X1-L03_Datasheet.pdfSigned-off-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarJessica Zhang <quic_jesszhan@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240328102746.17868-3-marex@denx.de
parent 11ac72d0
...@@ -2591,22 +2591,22 @@ static const struct panel_desc innolux_g121i1_l01 = { ...@@ -2591,22 +2591,22 @@ static const struct panel_desc innolux_g121i1_l01 = {
.connector_type = DRM_MODE_CONNECTOR_LVDS, .connector_type = DRM_MODE_CONNECTOR_LVDS,
}; };
static const struct drm_display_mode innolux_g121x1_l03_mode = { static const struct display_timing innolux_g121x1_l03_timings = {
.clock = 65000, .pixelclock = { 57500000, 64900000, 74400000 },
.hdisplay = 1024, .hactive = { 1024, 1024, 1024 },
.hsync_start = 1024 + 0, .hfront_porch = { 90, 140, 190 },
.hsync_end = 1024 + 1, .hback_porch = { 90, 140, 190 },
.htotal = 1024 + 0 + 1 + 320, .hsync_len = { 36, 40, 60 },
.vdisplay = 768, .vactive = { 768, 768, 768 },
.vsync_start = 768 + 38, .vfront_porch = { 2, 15, 30 },
.vsync_end = 768 + 38 + 1, .vback_porch = { 2, 15, 30 },
.vtotal = 768 + 38 + 1 + 0, .vsync_len = { 2, 8, 20 },
.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
}; };
static const struct panel_desc innolux_g121x1_l03 = { static const struct panel_desc innolux_g121x1_l03 = {
.modes = &innolux_g121x1_l03_mode, .timings = &innolux_g121x1_l03_timings,
.num_modes = 1, .num_timings = 1,
.bpc = 6, .bpc = 6,
.size = { .size = {
.width = 246, .width = 246,
......
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