From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
To: Biju <biju.das.au@gmail.com>
Cc: Biju Das <biju.das.jz@bp.renesas.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>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Magnus Damm <magnus.damm@gmail.com>,
dri-devel@lists.freedesktop.org,
linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH v3 05/13] drm: renesas: rzg2l_mipi_dsi: Add RZ/G3L MIPI DSI support
Date: Thu, 27 Aug 2026 11:54:12 +0200 [thread overview]
Message-ID: <apAJRBTNAPW4ZOeO@tom-desktop> (raw)
In-Reply-To: <20260826174854.199139-6-biju.das.jz@bp.renesas.com>
Hi Biju,
Thanks for your patch.
On Wed, Aug 26, 2026 at 06:48:39PM +0100, Biju wrote:
> From: Biju Das <biju.das.jz@bp.renesas.com>
>
> Add support for the MIPI DSI controller found on the Renesas RZ/G3L
> (R9A08G046) SoC. The D-PHY global timing table of RZ/G3L SoC different
> compared to the other SoCs. Introduce a dedicated D-PHY global timing
> table rzg3l_mipi_dsi_global_timings and wire it up via a new
> rzg3l_mipi_dsi_info hw_info variant for RZ/G3L SoC.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> v1->v2:
> * Moved set duty cycle to DU encoder.
> v1->v2:
> * Replaced syscon_field->pwrrdy in struct rzg3l_mipi_dsi_info.
> ---
> .../gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 117 ++++++++++++++++++
> 1 file changed, 117 insertions(+)
>
> diff --git a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
> index 7df5f4a4161b..88ec0612d529 100644
> --- a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
> +++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
> @@ -226,6 +226,107 @@ static const struct rzg2l_mipi_dsi_timings rzg2l_mipi_dsi_global_timings[] = {
> },
> };
>
> +static const struct rzg2l_mipi_dsi_timings rzg3l_mipi_dsi_global_timings[] = {
> + {
> + .hsfreq_max = 100000000,
> + .t_init = 79801,
> + .tclk_prepare = 10,
> + .ths_prepare = 18,
> + .tclk_zero = 35,
> + .tclk_pre = 13,
> + .tclk_post = 94,
> + .tclk_trail = 10,
> + .ths_zero = 16,
> + .ths_trail = 22,
> + .ths_exit = 15,
> + .tlpx = 9,
Ok
> + },
> + {
> + .hsfreq_max = 150000000,
> + .t_init = 79801,
> + .tclk_prepare = 10,
> + .ths_prepare = 16,
> + .tclk_zero = 35,
> + .tclk_pre = 13,
> + .tclk_post = 94,
> + .tclk_trail = 10,
> + .ths_zero = 16,
> + .ths_trail = 15,
> + .ths_exit = 15,
> + .tlpx = 9,
Ok
> + },
> + {
> + .hsfreq_max = 250000000,
> + .t_init = 79801,
> + .tclk_prepare = 10,
> + .ths_prepare = 13,
> + .tclk_zero = 35,
> + .tclk_pre = 13,
> + .tclk_post = 58,
> + .tclk_trail = 8,
> + .ths_zero = 16,
> + .ths_trail = 10,
> + .ths_exit = 15,
> + .tlpx = 9,
Ok
> + },
> + {
> + .hsfreq_max = 400000000,
> + .t_init = 79801,
> + .tclk_prepare = 10,
> + .ths_prepare = 12,
> + .tclk_zero = 35,
> + .tclk_pre = 4,
> + .tclk_post = 58,
> + .tclk_trail = 7,
> + .ths_zero = 16,
> + .ths_trail = 9,
> + .ths_exit = 15,
> + .tlpx = 9,
Ok
> + },
> + {
> + .hsfreq_max = 600000000,
> + .t_init = 79801,
> + .tclk_prepare = 10,
> + .ths_prepare = 11,
> + .tclk_zero = 35,
> + .tclk_pre = 4,
> + .tclk_post = 35,
> + .tclk_trail = 5,
> + .ths_zero = 16,
> + .ths_trail = 6,
> + .ths_exit = 15,
> + .tlpx = 9,
Ok
> + },
> + {
> + .hsfreq_max = 1000000000,
> + .t_init = 79801,
> + .tclk_prepare = 10,
> + .ths_prepare = 11,
> + .tclk_zero = 35,
> + .tclk_pre = 4,
> + .tclk_post = 35,
> + .tclk_trail = 5,
> + .ths_zero = 16,
> + .ths_trail = 6,
> + .ths_exit = 15,
> + .tlpx = 9,
Ok
> + },
> + {
> + .hsfreq_max = 1500000000,
> + .t_init = 79801,
> + .tclk_prepare = 10,
> + .ths_prepare = 11,
> + .tclk_zero = 35,
> + .tclk_pre = 4,
> + .tclk_post = 35,
> + .tclk_trail = 4,
> + .ths_zero = 16,
> + .ths_trail = 5,
> + .ths_exit = 15,
> + .tlpx = 9,
Ok
> + },
> +};
This is aligned with:
9.5 MIPI DSI Interface (DSI)
Table 9.5-4 (Recommended Setting Values of the DSI D-PHY Timing
Register)
Of the the RZ/G3L reference manual.
> +
> /**
> * struct rzv2h_mipi_dsi_timings - Timing parameter table structure
> *
> @@ -1580,7 +1681,23 @@ static const struct rzg2l_mipi_dsi_hw_info rzg2l_mipi_dsi_info = {
> .activation_dly = 1000,
> };
>
> +static const struct rzg2l_mipi_dsi_hw_info rzg3l_mipi_dsi_info = {
> + .dphy_init = rzg2l_mipi_dsi_dphy_init,
> + .dphy_exit = rzg2l_mipi_dsi_dphy_exit,
> + .dphy_conf_clks = rzg2l_dphy_conf_clks,
> + .dsi_global_timings = rzg3l_mipi_dsi_global_timings,
> + .num_dsi_global_timings = ARRAY_SIZE(rzg3l_mipi_dsi_global_timings),
> + .link_reg_offset = 0x10000,
> + .dphyctrl0_init_val = DSIDPHYCTRL0_CMN_MASTER_EN | DSIDPHYCTRL0_EN_BGR,
> + .min_dclk = 5440,
> + .max_dclk = 187500,
> + .activation_dly = 100,
> + .features = RZ_MIPI_DSI_FEATURE_16BPP,
> + .pwrrdy = true,
> +};
> +
> static const struct of_device_id rzg2l_mipi_dsi_of_table[] = {
> + { .compatible = "renesas,r9a08g046-mipi-dsi", .data = &rzg3l_mipi_dsi_info, },
Looks good to me.
Reviewed-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Kind regards,
Tommaso
> { .compatible = "renesas,r9a09g057-mipi-dsi", .data = &rzv2h_mipi_dsi_info, },
> { .compatible = "renesas,rzg2l-mipi-dsi", .data = &rzg2l_mipi_dsi_info, },
> { /* sentinel */ }
> --
> 2.43.0
>
next prev parent reply other threads:[~2026-08-27 9:54 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 17:48 [PATCH v3 00/13] Add support for DU, LVDS and DSI on the Renesas RZ/G3L SoC Biju
2026-08-26 17:48 ` [PATCH v3 01/13] drm: renesas: rzg2l_mipi_dsi: Add dphyctrl0_init_val to hw_info Biju
2026-08-26 17:48 ` [PATCH v3 02/13] drm: renesas: rzg2l_mipi_dsi: Add activation_dly " Biju
2026-08-26 17:48 ` [PATCH v3 03/13] drm: renesas: rzg2l_mipi_dsi: Move global timings into hardware info struct Biju
2026-08-27 9:59 ` Tommaso Merciai
2026-08-26 17:48 ` [PATCH v3 04/13] drm: renesas: rzg2l_mipi_dsi: Add support for DSI PWRRDY Biju
2026-08-27 10:28 ` Tommaso Merciai
2026-08-28 7:48 ` Biju Das
2026-08-26 17:48 ` [PATCH v3 05/13] drm: renesas: rzg2l_mipi_dsi: Add RZ/G3L MIPI DSI support Biju
2026-08-27 9:54 ` Tommaso Merciai [this message]
2026-08-26 17:48 ` [PATCH v3 06/13] drm: renesas: rz-du: Add RZ/G3L (R9A08G046) DU support Biju
2026-08-27 8:12 ` Tommaso Merciai
2026-08-27 9:33 ` Tommaso Merciai
2026-08-28 7:53 ` Biju Das
2026-08-26 17:48 ` [PATCH v3 07/13] drm: renesas: rz-du: Add support for RZ/G3L LVDS encoder Biju
2026-08-31 9:16 ` Philipp Zabel
2026-09-29 14:29 ` Biju Das
2026-08-26 17:48 ` [PATCH v3 08/13] arm64: dts: renesas: r9a08g046: Add fcpvd node Biju
2026-08-27 10:35 ` Tommaso Merciai
2026-09-08 13:04 ` Geert Uytterhoeven
2026-08-26 17:48 ` [PATCH v3 09/13] arm64: dts: renesas: r9a08g046: Add vspd node Biju
2026-08-27 10:39 ` Tommaso Merciai
2026-09-08 13:04 ` Geert Uytterhoeven
2026-08-26 17:48 ` [PATCH v3 10/13] arm64: dts: renesas: r9a08g046: Add DU and DSI nodes Biju
2026-08-27 12:58 ` Tommaso Merciai
2026-09-08 13:04 ` Geert Uytterhoeven
2026-08-26 17:48 ` [PATCH v3 11/13] arm64: dts: renesas: r9a08g046: Add LVDS node Biju
2026-08-27 13:32 ` Tommaso Merciai
2026-09-08 13:05 ` Geert Uytterhoeven
2026-08-26 17:48 ` [PATCH v3 12/13] arm64: dts: renesas: Add DSI overlay for RZ/G3L SMARC EVK with ADV7535 Biju
2026-09-08 13:25 ` Geert Uytterhoeven
2026-09-29 17:24 ` Biju Das
2026-08-26 17:48 ` [PATCH v3 13/13] arm64: dts: renesas: Add LVDS overlay for RZ/G3L SMARC EVK with ITE6263 Biju
2026-09-08 13:31 ` Geert Uytterhoeven
2026-09-09 2:57 ` Biju Das
2026-09-09 7:43 ` Geert Uytterhoeven
2026-09-09 8:06 ` Biju Das
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=apAJRBTNAPW4ZOeO@tom-desktop \
--to=tommaso.merciai.xr@bp.renesas.com \
--cc=airlied@gmail.com \
--cc=biju.das.au@gmail.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert+renesas@glider.be \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=magnus.damm@gmail.com \
--cc=mripard@kernel.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.