From: Heiko Stuebner <heiko@sntech.de>
To: robh@kernel.org, WeiHao Li <cn.liweihao@gmail.com>
Cc: hjc@rock-chips.com, andy.yan@rock-chips.com,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-clk@vger.kernel.org,
WeiHao Li <cn.liweihao@gmail.com>
Subject: Re: [PATCH v1 1/7] drm/rockchip: dsi: Add support for RK3368
Date: Wed, 03 Sep 2025 14:07:50 +0200 [thread overview]
Message-ID: <42028191.XM6RcZxFsP@phil> (raw)
In-Reply-To: <20250831104855.45883-2-cn.liweihao@gmail.com>
Hi,
Am Sonntag, 31. August 2025, 12:48:49 Mitteleuropäische Sommerzeit schrieb WeiHao Li:
> RK3368 has DesignWare MIPI DSI controller and an external inno D-PHY.
>
> Signed-off-by: WeiHao Li <cn.liweihao@gmail.com>
as a general remark, this patch will likely need to wait for 6.18-rc1,
because a big update of the HIWORD_MASK macros was merged [0].
So introducing a new user now would cause havok :-) .
Also when sending a v2, please base it on top of that changeset, or
just take linux-next [1] as a base.
Also in a separate patch, please add the needed rk3368 entry to the
devicetree binding [2], this will pacify the bot that checked your
devicetree changes :-) .
Please also make sure that relevant additions to the lists below
are made (the binding contains specific settings for some controllers
furter below) .
Heiko
[0] https://lore.kernel.org/linux-rockchip/20250825-byeword-update-v3-0-947b841cdb29@collabora.com/
[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml
> ---
> .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 20 +++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
> index 3398160ad..5d76e3e04 100644
> --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
> +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
> @@ -162,6 +162,11 @@
> #define RK3288_DSI0_LCDC_SEL BIT(6)
> #define RK3288_DSI1_LCDC_SEL BIT(9)
>
> +#define RK3368_GRF_SOC_CON7 0x41c
> +#define RK3368_DSI_FORCETXSTOPMODE (0xf << 7)
> +#define RK3368_DSI_FORCERXMODE BIT(6)
> +#define RK3368_DSI_TURNDISABLE BIT(5)
> +
> #define RK3399_GRF_SOC_CON20 0x6250
> #define RK3399_DSI0_LCDC_SEL BIT(0)
> #define RK3399_DSI1_LCDC_SEL BIT(4)
> @@ -1530,6 +1535,18 @@ static const struct rockchip_dw_dsi_chip_data rk3288_chip_data[] = {
> { /* sentinel */ }
> };
>
> +static const struct rockchip_dw_dsi_chip_data rk3368_chip_data[] = {
> + {
> + .reg = 0xff960000,
> + .lanecfg1_grf_reg = RK3368_GRF_SOC_CON7,
> + .lanecfg1 = HIWORD_UPDATE(0, RK3368_DSI_TURNDISABLE |
> + RK3368_DSI_FORCETXSTOPMODE |
> + RK3368_DSI_FORCERXMODE),
> + .max_data_lanes = 4,
> + },
> + { /* sentinel */ }
> +};
> +
> static int rk3399_dphy_tx1rx1_init(struct phy *phy)
> {
> struct dw_mipi_dsi_rockchip *dsi = phy_get_drvdata(phy);
> @@ -1693,6 +1710,9 @@ static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {
> }, {
> .compatible = "rockchip,rk3288-mipi-dsi",
> .data = &rk3288_chip_data,
> + }, {
> + .compatible = "rockchip,rk3368-mipi-dsi",
> + .data = &rk3368_chip_data,
> }, {
> .compatible = "rockchip,rk3399-mipi-dsi",
> .data = &rk3399_chip_data,
>
next prev parent reply other threads:[~2025-09-03 12:07 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-31 10:48 [PATCH v1 0/7] drm/rockchip: Add MIPI DSI support for RK3368 WeiHao Li
2025-08-31 10:48 ` [PATCH v1 1/7] drm/rockchip: dsi: Add " WeiHao Li
2025-09-03 12:07 ` Heiko Stuebner [this message]
2025-09-03 13:37 ` 李维豪
2025-08-31 10:48 ` [PATCH v1 2/7] drm/rockchip: vop: add lut_size for RK3368 vop_data WeiHao Li
2025-09-03 12:16 ` Heiko Stuebner
2025-08-31 10:48 ` [PATCH v1 3/7] dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M WeiHao Li
2025-08-31 15:00 ` Heiko Stübner
2025-09-01 0:17 ` 李维豪
2025-09-02 6:49 ` Heiko Stuebner
2025-09-03 13:22 ` 李维豪
2025-09-01 21:32 ` Rob Herring (Arm)
2025-08-31 10:48 ` [PATCH v1 4/7] clk: rockchip: use clock ids for SCLK_MIPIDSI_24M on rk3368 WeiHao Li
2025-08-31 10:48 ` [PATCH v1 5/7] ARM: dts: rockchip: Add display subsystem for RK3368 WeiHao Li
2025-08-31 15:04 ` Heiko Stübner
2025-09-01 0:20 ` 李维豪
2025-08-31 10:48 ` [PATCH v1 6/7] ARM: dts: rockchip: Add D-PHY " WeiHao Li
2025-08-31 15:06 ` Heiko Stübner
2025-09-01 0:33 ` 李维豪
2025-08-31 10:48 ` [PATCH v1 7/7] ARM: dts: rockchip: Add DSI " WeiHao Li
2025-08-31 15:09 ` [PATCH v1 0/7] drm/rockchip: Add MIPI DSI support " Heiko Stübner
2025-09-01 0:46 ` 李维豪
2025-09-02 13:17 ` Rob Herring (Arm)
2025-09-03 12:19 ` (subset) " Heiko Stuebner
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=42028191.XM6RcZxFsP@phil \
--to=heiko@sntech.de \
--cc=andy.yan@rock-chips.com \
--cc=cn.liweihao@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=hjc@rock-chips.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).