mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chaoyi Chen <chaoyi.chen@rock-chips.com>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Cc: "Andrzej Hajda" <andrzej.hajda@intel.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Robert Foss" <rfoss@kernel.org>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Sandy Huang" <hjc@rock-chips.com>,
	"Heiko Stübner" <heiko@sntech.de>, "Andy Yan" <andyshrk@163.com>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-riscv@lists.infradead.org, "Icneowy Zheng" <uwu@icenowy.me>,
	"Han Gao" <gaohan@iscas.ac.cn>
Subject: Re: [PATCH v3 0/2] drm/bridge: add glue driver for T-Head TH1520 DW MIPI DSI
Date: Tue, 24 Nov 2026 16:24:12 +0800	[thread overview]
Message-ID: <c89271be-85f9-41ba-9c19-c78743d212c8@rock-chips.com> (raw)
In-Reply-To: <20261124-th1520-dw-mipi-dsi-v3-0-ffcf2d87971b@iscas.ac.cn>

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?
  
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---
> Changes in v3:
> - Fixed a remaining `syscon` in the DT binding.
> - Link to v2: https://patch.msgid.link/20261119-th1520-dw-mipi-dsi-v2-0-9ab5f9808f87@iscas.ac.cn
> 
> 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/20261030-th1520-dw-mipi-dsi-v1-0-753f34fd304f@iscas.ac.cn
> 
> ---
> 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 <zhengxingda@iscas.ac.cn>

-- 
Best, 
Chaoyi

  parent reply	other threads:[~2026-11-24  8:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  7:56 Icenowy Zheng
2026-11-24  7:56 ` [PATCH v3 1/2] dt-bindings: display: bridge: document TH1520 MIPI DSI controller Icenowy Zheng
2026-11-24  7:56 ` [PATCH v3 2/2] drm/bridge: add TH1520 DesignWare MIPI DSI host controller Icenowy Zheng
2026-11-24  8:29   ` Chaoyi Chen
2026-11-24  8:34     ` Icenowy Zheng
2026-11-24  8:44       ` Chaoyi Chen
2026-11-24  8:24 ` Chaoyi Chen [this message]
2026-11-24  8:39   ` [PATCH v3 0/2] drm/bridge: add glue driver for T-Head TH1520 DW MIPI DSI Icenowy Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c89271be-85f9-41ba-9c19-c78743d212c8@rock-chips.com \
    --to=chaoyi.chen@rock-chips.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=andyshrk@163.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gaohan@iscas.ac.cn \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    --cc=uwu@icenowy.me \
    --cc=zhengxingda@iscas.ac.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®