Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: simple: fix osd070t1718_19ts sync drive edge

The panel datasheet says that the panel samples at falling edge, but
does not say anything about h/v sync signals. Testing shows that if the
sync signals are driven on falling edge, the picture on the panel will
be slightly shifted right.

Setting sync drive edge to the same as data drive edge fixes this issue.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191114093950.4101-4-tomi.valkeinen@ti.com

authored by

Tomi Valkeinen and committed by
Sam Ravnborg
fb0629ee cf650f2c

+2 -1
+2 -1
drivers/gpu/drm/panel/panel-simple.c
··· 2580 2580 .height = 91, 2581 2581 }, 2582 2582 .bus_format = MEDIA_BUS_FMT_RGB888_1X24, 2583 - .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, 2583 + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | 2584 + DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE, 2584 2585 .connector_type = DRM_MODE_CONNECTOR_DPI, 2585 2586 }; 2586 2587