drm/bridge: tc358775: Get bridge data lanes instead of the DSI host lanes
authorTony Lindgren <tony@atomide.com>
Sun, 25 Feb 2024 06:19:35 +0000 (08:19 +0200)
committerRobert Foss <rfoss@kernel.org>
Tue, 23 Apr 2024 15:32:58 +0000 (17:32 +0200)
commit005102727d9e5b6fe3e84fb82b9a1880b0844f22
tree3de22c119766435bb65e536a04799bf39c5dcbe8
parent733daaebe2504e0261f5249d11f4796d0614539d
drm/bridge: tc358775: Get bridge data lanes instead of the DSI host lanes

The current code assumes the data-lanes property is configured on the
DSI host side instead of the bridge side, and assumes DSI host endpoint 1.

Let's standardize on what the other bridge drivers are doing and parse the
data-lanes property for the bridge. Only if data-lanes property is not found,
let's be nice and also check the DSI host for old dtb in use and warn.

And as Dmitry pointed out, the lanes for the host and the bridge may be
different because the lanes may be swapped on the host side.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240225062008.33191-7-tony@atomide.com
drivers/gpu/drm/bridge/tc358775.c