Skip to content

Commit a50b566

Browse files
ventureresearchvijay-suman
authored andcommitted
drm/panel: simple: Update timings for AUO G101EVN010
[ Upstream commit 7c6fa1797a725732981f2d77711c867166737719 ] Switch to panel timings based on datasheet for the AUO G101EVN01.0 LVDS panel. Default timings were tested on the panel. Previous mode-based timings resulted in horizontal display shift. Signed-off-by: Kevin Baker <[email protected]> Fixes: 4fb8640 ("drm/panel: simple: Add AUO G101EVN010 panel support") Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 3aaa80e2f394b497aecdea7caf114697206ee649) Signed-off-by: Vijayendra Suman <[email protected]>
1 parent 8d23de9 commit a50b566

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,27 +1210,28 @@ static const struct panel_desc auo_g070vvn01 = {
12101210
},
12111211
};
12121212

1213-
static const struct drm_display_mode auo_g101evn010_mode = {
1214-
.clock = 68930,
1215-
.hdisplay = 1280,
1216-
.hsync_start = 1280 + 82,
1217-
.hsync_end = 1280 + 82 + 2,
1218-
.htotal = 1280 + 82 + 2 + 84,
1219-
.vdisplay = 800,
1220-
.vsync_start = 800 + 8,
1221-
.vsync_end = 800 + 8 + 2,
1222-
.vtotal = 800 + 8 + 2 + 6,
1213+
static const struct display_timing auo_g101evn010_timing = {
1214+
.pixelclock = { 64000000, 68930000, 85000000 },
1215+
.hactive = { 1280, 1280, 1280 },
1216+
.hfront_porch = { 8, 64, 256 },
1217+
.hback_porch = { 8, 64, 256 },
1218+
.hsync_len = { 40, 168, 767 },
1219+
.vactive = { 800, 800, 800 },
1220+
.vfront_porch = { 4, 8, 100 },
1221+
.vback_porch = { 4, 8, 100 },
1222+
.vsync_len = { 8, 16, 223 },
12231223
};
12241224

12251225
static const struct panel_desc auo_g101evn010 = {
1226-
.modes = &auo_g101evn010_mode,
1227-
.num_modes = 1,
1226+
.timings = &auo_g101evn010_timing,
1227+
.num_timings = 1,
12281228
.bpc = 6,
12291229
.size = {
12301230
.width = 216,
12311231
.height = 135,
12321232
},
12331233
.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1234+
.bus_flags = DRM_BUS_FLAG_DE_HIGH,
12341235
.connector_type = DRM_MODE_CONNECTOR_LVDS,
12351236
};
12361237

0 commit comments

Comments
 (0)