public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@nabladev.com>
To: Ovidiu Panait <ovidiu.panait.rb@renesas.com>
Cc: cip-dev@lists.cip-project.org, pavel@nabladev.com,
	nobuhiro.iwamatsu.x90@mail.toshiba
Subject: Re: [PATCH 6.1.y-cip 18/25] drm: renesas: rz-du: mipi_dsi: Add function pointers for configuring VCLK and mode validation
Date: Fri, 27 Feb 2026 10:57:58 +0100	[thread overview]
Message-ID: <aaFqppNRl3CcWPTv@duo.ucw.cz> (raw)
In-Reply-To: <20260225121003.129467-19-ovidiu.panait.rb@renesas.com>

[-- Attachment #1: Type: text/plain, Size: 1642 bytes --]

Hi!

> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> 
> commit e2944dc6587f39c3eefb15ee607e700314230a0b upstream.
> 
> Introduce `dphy_conf_clks` and `dphy_mode_clk_check` callbacks in
> `rzg2l_mipi_dsi_hw_info` to configure the VCLK and validate
> supported display modes.
> 
> On the RZ/V2H(P) SoC, the DSI PLL dividers need to be as accurate as
> possible. To ensure compatibility with both RZ/G2L and RZ/V2H(P) SoCs,
> function pointers are introduced.
> 
> Modify `rzg2l_mipi_dsi_startup()` to use `dphy_conf_clks` for clock
> configuration and `rzg2l_mipi_dsi_bridge_mode_valid()` to invoke
> `dphy_mode_clk_check` for mode validation.
> 
> This change ensures proper operation across different SoC variants
> by allowing fine-grained control over clock configuration and mode
> validation.

> +++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
> @@ -276,12 +280,39 @@ static void rzg2l_mipi_dsi_dphy_exit(struct rzg2l_mipi_dsi *dsi)
>  	reset_control_assert(dsi->rstc);
>  }
>  
> +static int rzg2l_dphy_conf_clks(struct rzg2l_mipi_dsi *dsi, unsigned long mode_freq,
> +				u64 *hsfreq_millihz)
> +{
> +	unsigned long vclk_rate;
> +	unsigned int bpp;
> +
> +	clk_set_rate(dsi->vclk, mode_freq * KILO);
> +	vclk_rate = clk_get_rate(dsi->vclk);
> +	if (vclk_rate != mode_freq * KILO)
> +		dev_dbg(dsi->dev, "Requested vclk rate %lu, actual %lu mismatch\n",
> +			mode_freq * KILO, vclk_rate);

I believe what the message is trying to say is there's mismatch
between requested and actual rate.

In such case, "-- mismatch" would make it more clear.

Thanks,
								Pavel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2026-02-27  9:58 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25 12:09 [PATCH 6.1.y-cip 00/25] Add RZ/V2H display support Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 01/25] dt-bindings: display: bridge: renesas,dsi: allow properties from dsi-controller Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 02/25] dt-bindings: display: bridge: renesas,dsi: Document RZ/V2H(P) and RZ/V2N Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 03/25] media: dt-bindings: media: renesas,vsp1: Document RZ/V2H(P) Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 04/25] media: dt-bindings: media: renesas,fcp: Document RZ/V2H(P) SoC Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 05/25] dt-bindings: display: renesas,rzg2l-du: Add support for " Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 06/25] clk: renesas: rzv2h: Add instance field to struct pll Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 07/25] clk: renesas: rzv2h: Use GENMASK for PLL fields Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 08/25] clk: renesas: rzv2h: Add support for DSI clocks Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 09/25] clk: renesas: r9a09g057: Add clock and reset entries for DSI and LCDC Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 10/25] drm: renesas: rz-du: mipi_dsi: Simplify HSFREQ calculation Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 11/25] drm: renesas: rz-du: mipi_dsi: Use VCLK for " Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 12/25] drm: renesas: rz-du: mipi_dsi: Add min check for VCLK range Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 13/25] drm: renesas: rz-du: mipi_dsi: Add OF data support Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 14/25] drm: renesas: rz-du: mipi_dsi: Make "rst" reset control optional for RZ/V2H(P) Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 15/25] drm: renesas: rz-du: mipi_dsi: Use mHz for D-PHY frequency calculations Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 16/25] drm: renesas: rz-du: mipi_dsi: Add feature flag for 16BPP support Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 17/25] drm: renesas: rz-du: mipi_dsi: Add dphy_late_init() callback for RZ/V2H(P) Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 18/25] drm: renesas: rz-du: mipi_dsi: Add function pointers for configuring VCLK and mode validation Ovidiu Panait
2026-02-27  9:57   ` Pavel Machek [this message]
2026-02-25 12:09 ` [PATCH 6.1.y-cip 19/25] drm: renesas: rz-du: mipi_dsi: Add LPCLK clock support Ovidiu Panait
2026-02-25 12:09 ` [PATCH 6.1.y-cip 20/25] drm: renesas: rz-du: mipi_dsi: Add support for RZ/V2H(P) SoC Ovidiu Panait
2026-02-27 10:05   ` Pavel Machek
2026-02-25 12:09 ` [PATCH 6.1.y-cip 21/25] drm: renesas: rz-du: " Ovidiu Panait
2026-02-25 12:10 ` [PATCH 6.1.y-cip 22/25] drm: renesas: rz-du: Drop ARCH_RZG2L dependency Ovidiu Panait
2026-02-25 12:10 ` [PATCH 6.1.y-cip 23/25] arm64: dts: renesas: r9a09g057: Add FCPV and VSPD nodes Ovidiu Panait
2026-02-25 12:10 ` [PATCH 6.1.y-cip 24/25] arm64: dts: renesas: r9a09g057: Add DU and DSI nodes Ovidiu Panait
2026-02-25 12:10 ` [PATCH 6.1.y-cip 25/25] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable DU and DSI Ovidiu Panait
2026-02-27 10:08 ` [PATCH 6.1.y-cip 00/25] Add RZ/V2H display support Pavel Machek
2026-03-07 10:37 ` Pavel Machek

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=aaFqppNRl3CcWPTv@duo.ucw.cz \
    --to=pavel@nabladev.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=nobuhiro.iwamatsu.x90@mail.toshiba \
    --cc=ovidiu.panait.rb@renesas.com \
    /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