在 2026-11-24二的 16:24 +0800,Chaoyi Chen写道: > Hi Icenowy, > > On 11/24/2026 3:56 PM, Icenowy Zheng wrote: > > 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. > > > > Does the DesignWare PHY databook describe about PHY_STOP_WAIT_TIME?
Unfortunately I don't have the databook for this specific PHY, and I don't know whether this field is a PHY-specific value. Thanks, Icenowy > > > Signed-off-by: Icenowy Zheng <[email protected]> > > --- > > Changes in v3: > > - Fixed a remaining `syscon` in the DT binding. > > - Link to v2: > > https://patch.msgid.link/[email protected] > > > > Changes in v2: > > - Changed `syscon` to `thead,vo-syscon` in the DT binding. > > - Dropped the patch moving common PHY write routine to dw-mipi-dsi > > common code. > > - Fixed a few problems pointed out by Sashiko in v1. > > - Link to v1: > > https://patch.msgid.link/[email protected] > > > > --- > > Icenowy Zheng (2): > > dt-bindings: display: bridge: document TH1520 MIPI DSI controller > > drm/bridge: add TH1520 DesignWare MIPI DSI host controller > > > > .../display/bridge/thead,th1520-dw-mipi-dsi.yaml | 103 ++++ > > drivers/gpu/drm/bridge/Kconfig | 12 + > > drivers/gpu/drm/bridge/Makefile | 1 + > > drivers/gpu/drm/bridge/th1520-dw-mipi-dsi.c | 570 > > +++++++++++++++++++++ > > 4 files changed, 686 insertions(+) > > --- > > base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 > > change-id: 20261030-th1520-dw-mipi-dsi-580d5b2792f9 > > > > Best regards, > > -- > > Icenowy Zheng <[email protected]>
