mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chaoyi Chen <chaoyi.chen@rock-chips.com>
To: ZhuXiangyu <1194781887@qq.com>
Cc: Sandy Huang <hjc@rock-chips.com>,
	Heiko Stuebner <heiko@sntech.de>, Andy Yan <andyshrk@163.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>,
	dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] drm/rockchip: dsi: enable RK3506 PHY data lanes in GRF
Date: Mon, 23 Nov 2026 09:12:42 +0800	[thread overview]
Message-ID: <04e31b87-e766-4fb8-a361-0e92b1ab12ae@rock-chips.com> (raw)
In-Reply-To: <tencent_C4C715C962613597F98212938F8940633306@qq.com>

On 11/22/2026 1:10 AM, ZhuXiangyu wrote:
> rk3506_chip_data currently only clears the turnaround, force-rx, and
> force-tx-stop fields in RK3506_SYS_GRF_SOC_CON6. As a result, the DSI
> PHY data lanes remain disabled unless the bootloader happens to enable
> them.
> 
> Set RK3506_DSI_PHY_ENABLE_LANE0 and RK3506_DSI_PHY_ENABLE_LANE1 in
> lanecfg1 so the data lanes are reliably enabled by the driver.
> 
> Tested on an RK3506B board: the panel receives the low-power init
> sequence and the framebuffer console displays properly.
> 
> Fixes: cabeacc7eadc ("drm/rockchip: dsi: Add support for rk3506")
> Signed-off-by: Xiangyu Zhu <1194781887@qq.com>
> ---
> Changes in v2:
> - Split out from the combined drm/phy patch into a standalone drm
>   subsystem patch per Heiko's review.
> - Limit recipients to drm and Rockchip maintainers/lists.
> - Fix Signed-off-by author name formatting.
> 
>  drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
> index 30d6f83c..116cc140 100644
> --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
> +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
> @@ -199,6 +199,8 @@
>  
>  #define RK3506_SYS_GRF_SOC_CON6		0x0018
>  #define RK3506_DSI_FORCETXSTOPMODE	(0xf << 4)
> +#define RK3506_DSI_PHY_ENABLE_LANE1	BIT(9)
> +#define RK3506_DSI_PHY_ENABLE_LANE0	BIT(8)
>  #define RK3506_DSI_TURNDISABLE		BIT(2)
>  #define RK3506_DSI_FORCERXMODE		BIT(0)
>  
> @@ -1727,7 +1729,9 @@ static const struct rockchip_dw_dsi_chip_data rk3506_chip_data[] = {
>  		.lanecfg1_grf_reg = RK3506_SYS_GRF_SOC_CON6,
>  		.lanecfg1 = (FIELD_PREP_WM16_CONST(RK3506_DSI_TURNDISABLE, 0) |
>  			     FIELD_PREP_WM16_CONST(RK3506_DSI_FORCERXMODE, 0) |
> -			     FIELD_PREP_WM16_CONST(RK3506_DSI_FORCETXSTOPMODE, 0)),
> +			     FIELD_PREP_WM16_CONST(RK3506_DSI_FORCETXSTOPMODE, 0) |
> +			     FIELD_PREP_WM16_CONST(RK3506_DSI_PHY_ENABLE_LANE0, 1) |
> +			     FIELD_PREP_WM16_CONST(RK3506_DSI_PHY_ENABLE_LANE1, 1)),
>  		.max_data_lanes = 2,
>  		.max_bit_rate_per_lane = 1500000000UL,
>  		.dphy_get_timing = dw_mipi_dsi_phy_px30_get_timing,

Reviewed-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>

-- 
Best, 
Chaoyi


      reply	other threads:[~2026-11-23  1:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 17:10 ZhuXiangyu
2026-11-23  1:12 ` Chaoyi Chen [this message]

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=04e31b87-e766-4fb8-a361-0e92b1ab12ae@rock-chips.com \
    --to=chaoyi.chen@rock-chips.com \
    --cc=1194781887@qq.com \
    --cc=airlied@gmail.com \
    --cc=andyshrk@163.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /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®