Skip to content

Commit 90c53f2

Browse files
author
Marek Vasut
committed
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.pdf Signed-off-by: Marek Vasut <[email protected]> Acked-by: Jessica Zhang <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 11ac72d commit 90c53f2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,22 +2591,22 @@ static const struct panel_desc innolux_g121i1_l01 = {
25912591
.connector_type = DRM_MODE_CONNECTOR_LVDS,
25922592
};
25932593

2594-
static const struct drm_display_mode innolux_g121x1_l03_mode = {
2595-
.clock = 65000,
2596-
.hdisplay = 1024,
2597-
.hsync_start = 1024 + 0,
2598-
.hsync_end = 1024 + 1,
2599-
.htotal = 1024 + 0 + 1 + 320,
2600-
.vdisplay = 768,
2601-
.vsync_start = 768 + 38,
2602-
.vsync_end = 768 + 38 + 1,
2603-
.vtotal = 768 + 38 + 1 + 0,
2604-
.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2594+
static const struct display_timing innolux_g121x1_l03_timings = {
2595+
.pixelclock = { 57500000, 64900000, 74400000 },
2596+
.hactive = { 1024, 1024, 1024 },
2597+
.hfront_porch = { 90, 140, 190 },
2598+
.hback_porch = { 90, 140, 190 },
2599+
.hsync_len = { 36, 40, 60 },
2600+
.vactive = { 768, 768, 768 },
2601+
.vfront_porch = { 2, 15, 30 },
2602+
.vback_porch = { 2, 15, 30 },
2603+
.vsync_len = { 2, 8, 20 },
2604+
.flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
26052605
};
26062606

26072607
static const struct panel_desc innolux_g121x1_l03 = {
2608-
.modes = &innolux_g121x1_l03_mode,
2609-
.num_modes = 1,
2608+
.timings = &innolux_g121x1_l03_timings,
2609+
.num_timings = 1,
26102610
.bpc = 6,
26112611
.size = {
26122612
.width = 246,

0 commit comments

Comments
 (0)