drm/bridge: tc358767: give VSDELAY some positive value
authorDavid Jander <david@protonic.nl>
Fri, 21 Jul 2023 16:53:28 +0000 (18:53 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 21 Jul 2023 19:29:52 +0000 (21:29 +0200)
commit85a241cb128ac449b301d5b7da16a7c11f5fc094
treed9f290827157211b6b5423e7b020d7f26ad95212
parent63fbe9db8127409d1f2eb7b92034204c21905f1c
drm/bridge: tc358767: give VSDELAY some positive value

The documentation is not clear about how this delay works.
Empirical tests have shown that with a VSDELAY of 0, the first
scanline is not properly formatted in the output stream when
DSI->DP mode is used. The calculation spreadsheets from Toshiba
seem to always make this value equal to the HFP + 10 for DSI->DP
use-case. For DSI->DPI this value should be > 2 and for DPI->DP
it seems to always be 0x64.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Marek Vasut <marex@denx.de> # TC9595
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230721165328.3968759-2-l.stach@pengutronix.de
drivers/gpu/drm/bridge/tc358767.c