From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15860606A321 for ; Tue, 24 Nov 2026 08:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=4tymkZVc; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=UURWRjVw DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=CIIxCHmaf4fxrIyFS/BRlR2dhrRZVanUxs4tziQTo54=; b=4tymkZVcZUjWxU 4l55AlwmUHyFFSumM5s4GIBpIP771AMPBHWLL0cIUHrlUbbeYCSrGGHbrbCnYkPOxZmluvIICcxLH i55O+iczYSln3PM0/0Ve6mxk5qwVMZymBI2tZkcEoIcpnta3DHAADhUqomcFX/wf/tERTLtumnzxm sl/h6Q1lx+64Z6FXf5itXhisJWOH+8o7HpiJHPEK/QFtffHpWqwwNyXt64rE73IfAglILWFTM3+E/ feNQKROQyiuE+5Ost/tkppJNQ7lnFmM+/jMD/SmJ0R/tHV22W1+bkfIfKILbh+14RdkZk33E1Sxme Gi/trlWRmn+P88N7HwpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xVlpL-00000005se0-0Izl; Tue, 24 Nov 2026 08:24:35 +0000 Received: from mail-m1602365392.xmail.ntesmail.com ([160.236.53.92]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xVlpF-00000005scg-2qL5; Tue, 24 Nov 2026 08:24:33 +0000 Received: from [127.0.0.1] (unknown [61.154.14.86]) by smtp.qiye.163.com (Hmail) with ESMTP id 55cb96efc; Tue, 24 Nov 2026 16:24:16 +0800 (GMT+08:00) Message-ID: Date: Tue, 24 Nov 2026 16:24:12 +0800 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/2] drm/bridge: add glue driver for T-Head TH1520 DW MIPI DSI To: Icenowy Zheng Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Andy Yan , 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 , Han Gao References: <20261124-th1520-dw-mipi-dsi-v3-0-ffcf2d87971b@iscas.ac.cn> Content-Language: en-US From: Chaoyi Chen In-Reply-To: <20261124-th1520-dw-mipi-dsi-v3-0-ffcf2d87971b@iscas.ac.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-HM-Tid: 0aa20ca7d7d303a7kunmc11de194cd4c3b X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlDSkpOVkgdHx1PSkseQkpJTlYVFA kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlNSlVKTk9VSk9VQ01ZV1kWGg8SFR0UWUFZT0tIVUpLSU 9PT0hVSktLVUpCS0tZBg++ DKIM-Signature: a=rsa-sha256; b=UURWRjVwdo+3l2AULyocD6fSNflb4NLvemODSt3E0BkJ4SDNYTRbIrvF97HUU4K2rtd/SDBnXtHZ+9biRxmmr2VYZUHyx1vjJo4sQNiVBRKlCiF1JgNn+It/uQ2dEKWkUHaT+/LN1vLB/a+9UefWRH0gS3pOe07esi2EjWKgg4A=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=CIIxCHmaf4fxrIyFS/BRlR2dhrRZVanUxs4tziQTo54=; h=date:mime-version:subject:message-id:from; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261124_002430_361884_AB786EE7 X-CRM114-Status: GOOD ( 17.92 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 > --- > 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 -- Best, Chaoyi