[PATCH 2/2] drm: renesas: rz-du: Set DSI divider based on target MIPI device

Chris Brandt Chris.Brandt at renesas.com
Fri Jul 11 13:37:08 UTC 2025


Hello Sergey,

> > +	/* Report required division ratio setting for the MIPI clock 
> > +dividers
>
>   /* should be on a line of its own (unless you do a networking patch)...

OK.


> > +	 * pllclk/2 = vclk * DSI divider
>
>    Why no spaces around / while there are spaces around *?

I missed that one.
Thank you.

Chris



-----Original Message-----
From: Sergey Shtylyov <sergei.shtylyov at gmail.com> 
Sent: Thursday, July 10, 2025 4:45 AM
To: Chris Brandt <Chris.Brandt at renesas.com>; Geert Uytterhoeven <geert+renesas at glider.be>; Michael Turquette <mturquette at baylibre.com>; Stephen Boyd <sboyd at kernel.org>; Biju Das <biju.das.jz at bp.renesas.com>; Maarten Lankhorst <maarten.lankhorst at linux.intel.com>; Maxime Ripard <mripard at kernel.org>; Thomas Zimmermann <tzimmermann at suse.de>; David Airlie <airlied at gmail.com>; Simona Vetter <simona at ffwll.ch>; Hien Huynh <hien.huynh.px at renesas.com>; Nghia Vo <nghia.vo.zn at renesas.com>; Hugo Villeneuve <hugo at hugovil.com>
Cc: linux-renesas-soc at vger.kernel.org; linux-clk at vger.kernel.org; dri-devel at lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm: renesas: rz-du: Set DSI divider based on target MIPI device

On 7/9/25 11:55 PM, Chris Brandt wrote:

> Before the MIPI DSI clock source can be configured, the target divide 
> ratio needs to be known.
> 
> Signed-off-by: Chris Brandt <chris.brandt at renesas.com>
> ---
>  drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 17 +++++++++++++++++
>  1 file changed, 17 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 4ad0be03a5b4..a8796df43f75 100644
> --- a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
> +++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
[...]
> @@ -666,6 +667,22 @@ static int rzg2l_mipi_dsi_host_attach(struct 
> mipi_dsi_host *host,
>  
>  	drm_bridge_add(&dsi->bridge);
>  
> +	/* Report required division ratio setting for the MIPI clock 
> +dividers

   /* should be on a line of its own (unless you do a networking patch)...

> +	 * Assume the default clock source is FOUTPOSTDIV (PLL/2) being fed to the DSI-PHY, but also
> +	 * the DSI-PHY must be 16x the MIPI-DSI HS clock.
> +	 *
> +	 * pllclk/2 = vclk * DSI divider

   Why no spaces around / while there are spaces around *?

[...]

MBR, Sergey



More information about the dri-devel mailing list