drm/meson: add support for MIPI-DSI transceiver
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 30 May 2023 07:38:13 +0000 (09:38 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 1 Jun 2023 14:10:24 +0000 (16:10 +0200)
commit77d9e1e6b8468f701ab024a060aa9c0339356870
tree1507ad351445e644523632885225c071e4cff2bf
parent42dcf15f901c8222352da31d622b4ee844068f42
drm/meson: add support for MIPI-DSI transceiver

The Amlogic G12A/G12B/SM1 SoCs embeds a Synopsys DW-MIPI-DSI transceiver
(ver 1.21a), with a custom glue managing the IP resets, clock and data
inputs similar to the DW-HDMI Glue on other Amlogic SoCs.

This adds support for the Glue managing the transceiver, mimicing the init
flow provided by Amlogic to setup the ENCL encoder, the glue, the transceiver,
the digital D-PHY and the Analog PHY in the proper way.

An optional "MEAS" clock can be enabled to measure the delay between each
vsync feeding the DW-MIPI-DSI transceiver.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Nicolas Belin <nbelin@baylibre.com>
Tested-by: Nicolas Belin <nbelin@baylibre.com> # on Khadas VIM3 + TS050 Panel
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512-amlogic-v6-4-upstream-dsi-ccf-vim3-v5-12-56eb7a4d5b8e@linaro.org
drivers/gpu/drm/meson/Kconfig
drivers/gpu/drm/meson/Makefile
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c [new file with mode: 0644]
drivers/gpu/drm/meson/meson_dw_mipi_dsi.h [new file with mode: 0644]