Skip to content

Commit cfca58c

Browse files
ventureresearchgregkh
authored andcommitted
drm/panel: simple: Update timings for AUO G101EVN010
[ Upstream commit 7c6fa17 ] 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 <kevinb@ventureresearch.com> Fixes: 4fb8640 ("drm/panel: simple: Add AUO G101EVN010 panel support") Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20250505170256.1385113-1-kevinb@ventureresearch.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20250505170256.1385113-1-kevinb@ventureresearch.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 24e7b1f commit cfca58c

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
@@ -1027,27 +1027,28 @@ static const struct panel_desc auo_g070vvn01 = {
10271027
},
10281028
};
10291029

1030-
static const struct drm_display_mode auo_g101evn010_mode = {
1031-
.clock = 68930,
1032-
.hdisplay = 1280,
1033-
.hsync_start = 1280 + 82,
1034-
.hsync_end = 1280 + 82 + 2,
1035-
.htotal = 1280 + 82 + 2 + 84,
1036-
.vdisplay = 800,
1037-
.vsync_start = 800 + 8,
1038-
.vsync_end = 800 + 8 + 2,
1039-
.vtotal = 800 + 8 + 2 + 6,
1030+
static const struct display_timing auo_g101evn010_timing = {
1031+
.pixelclock = { 64000000, 68930000, 85000000 },
1032+
.hactive = { 1280, 1280, 1280 },
1033+
.hfront_porch = { 8, 64, 256 },
1034+
.hback_porch = { 8, 64, 256 },
1035+
.hsync_len = { 40, 168, 767 },
1036+
.vactive = { 800, 800, 800 },
1037+
.vfront_porch = { 4, 8, 100 },
1038+
.vback_porch = { 4, 8, 100 },
1039+
.vsync_len = { 8, 16, 223 },
10401040
};
10411041

10421042
static const struct panel_desc auo_g101evn010 = {
1043-
.modes = &auo_g101evn010_mode,
1044-
.num_modes = 1,
1043+
.timings = &auo_g101evn010_timing,
1044+
.num_timings = 1,
10451045
.bpc = 6,
10461046
.size = {
10471047
.width = 216,
10481048
.height = 135,
10491049
},
10501050
.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1051+
.bus_flags = DRM_BUS_FLAG_DE_HIGH,
10511052
.connector_type = DRM_MODE_CONNECTOR_LVDS,
10521053
};
10531054

0 commit comments

Comments
 (0)