OSDN Git Service

drm: bridge: samsung-dsim: Implement support for clock/data polarity swap
authorMarek Vasut <marex@denx.de>
Sun, 14 May 2023 11:46:25 +0000 (08:46 -0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 22 May 2023 13:37:18 +0000 (15:37 +0200)
commit74629c49e66cc6d36c46ac4e3f059780873ceedf
treeeabe74294113b3405b262f8f3baa87958cdca60d
parentec7743c9c48a14aa884d27f2feee1da30810ce0a
drm: bridge: samsung-dsim: Implement support for clock/data polarity swap

Implement support for DSI clock and data lane DN/DP polarity swap by
means of decoding 'lane-polarities' DT property. The controller does
support DN/DP swap of clock lane and all data lanes, the controller
does not support polarity swap of individual data lane bundles, add
a check which verifies all data lanes have the same polarity.

This has been validated on an imx8mm board that actually has the MIPI DSI
clock lanes inverted.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230514114625.98372-2-festevam@gmail.com
drivers/gpu/drm/bridge/samsung-dsim.c
include/drm/bridge/samsung-dsim.h