[PATCH 0/3] drm/bridge: add glue driver for T-Head TH1520 DW MIPI DSI
Icenowy Zheng
zhengxingda at iscas.ac.cn
Fri Oct 30 00:47:48 PDT 2026
T-Head TH1520 contains a DesignWare MIPI DSI host controller paired with
an internal DesignWare PHY, as a similar design (but with a different
PHY) with the Rockchip DW MIPI DSI.
The functionality to write to the PHY is shared between these two
implementations of DW MIPI DSI, so it's extracted from the Rockchip
driver to the common code. (The same sequence could be seen in the
HiSilicon Kirin DRM driver, but that one hasn't been converted to common
DW MIPI DSI.)
Tested on a Lichee Console 4A (with a Mingjun MJ070BI30IA2 panel) with
further pending DT patches.
One question remains: I have to copy the extra lane bandwidth headroom
from the Rockchip driver, otherwise the Mingjun panel cannot keep sync
to the display signal; from my testing, changing the hardcoded
PHY_STOP_WAIT_TIME from 0x20 to 0x2 (which is written by the vendor
driver) can also make this panel to work w/o the extra headroom. I want
some advice on whether to keep the extra headroom or changing the common
code to make the PHY_STOP_WAIT_TIME parameter adjustable.
Signed-off-by: Icenowy Zheng <zhengxingda at iscas.ac.cn>
---
Icenowy Zheng (3):
dt-bindings: display: bridge: document TH1520 MIPI DSI controller
drm/bridge: dw-mipi-dsi: add PHY write function
drm/bridge: add TH1520 DesignWare MIPI DSI host controller
.../display/bridge/thead,th1520-dw-mipi-dsi.yaml | 102 ++++
drivers/gpu/drm/bridge/Kconfig | 10 +
drivers/gpu/drm/bridge/Makefile | 1 +
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 21 +
drivers/gpu/drm/bridge/th1520-dw-mipi-dsi.c | 530 +++++++++++++++++++++
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 86 ++--
include/drm/bridge/dw_mipi_dsi.h | 3 +
7 files changed, 700 insertions(+), 53 deletions(-)
---
base-commit: c03c1a14507dfaf8b856c2608f9ac216021fc222
change-id: 20261030-th1520-dw-mipi-dsi-580d5b2792f9
Best regards,
--
Icenowy Zheng <zhengxingda at iscas.ac.cn>
More information about the linux-arm-kernel
mailing list