linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	Robert Foss <rfoss@kernel.org>,
	 "laurent.pinchart" <laurent.pinchart@ideasonboard.com>,
	Jonas Karlman <jonas@kwiboo.se>,
	 Jernej Skrabec <jernej.skrabec@gmail.com>,
	David Airlie <airlied@gmail.com>,
	 Simona Vetter <simona@ffwll.ch>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	 Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Mauro Carvalho Chehab <mchehab@kernel.org>,
	 Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
	Stephen Boyd <sboyd@kernel.org>,
	 Philipp Zabel <p.zabel@pengutronix.de>,
	 "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	 "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	 "linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	 "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	 "linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
	 Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
	 Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 11/17] drm: renesas: rz-du: mipi_dsi: Add OF data support
Date: Mon, 31 Mar 2025 14:58:45 +0100	[thread overview]
Message-ID: <CA+V-a8v0K_tWA=LnyHDptoBjtgPHSbgwpJp4L1rw4Uv6KC+-JA@mail.gmail.com> (raw)
In-Reply-To: <TY3PR01MB113463B37FE6B1AAE8CF0F51F86AD2@TY3PR01MB11346.jpnprd01.prod.outlook.com>

Hi Biju,

Thank you for the review.

On Mon, Mar 31, 2025 at 1:38 PM Biju Das <biju.das.jz@bp.renesas.com> wrote:
>
> Hi Prabhakar,
>
> Thanks for the patch.
>
> > -----Original Message-----
> > From: Prabhakar <prabhakar.csengg@gmail.com>
> > Sent: 30 March 2025 22:07
> > Subject: [PATCH 11/17] drm: renesas: rz-du: mipi_dsi: Add OF data support
> >
> > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> >
> > In preparation for adding support for the Renesas RZ/V2H(P) SoC, this patch introduces a mechanism to
> > pass SoC-specific information via OF data in the DSI driver. This enables the driver to adapt
> > dynamically to various SoC-specific requirements without hardcoding configurations.
> >
> > The MIPI DSI interface on the RZ/V2H(P) SoC is nearly identical to the one on the RZ/G2L SoC. While
> > the LINK registers are shared between the two SoCs, the D-PHY registers differ. Also the VCLK range
> > differs on both these SoCs. To accommodate these differences `struct rzg2l_mipi_dsi_hw_info` is
> > introduced and as now passed as OF data.
> >
> > These changes lay the groundwork for the upcoming RZ/V2H(P) SoC support by allowing SoC-specific data
> > to be passed through OF.
> >
<snip>
> > +
> >       ret = drm_of_get_data_lanes_count_ep(dsi->dev->of_node, 1, 0, 1, 4);
> >       if (ret < 0)
> >               return dev_err_probe(dsi->dev, ret,
> > @@ -729,10 +750,12 @@ static int rzg2l_mipi_dsi_probe(struct platform_device *pdev)
> >       if (IS_ERR(dsi->vclk))
> >               return PTR_ERR(dsi->vclk);
> >
> > -     dsi->rstc = devm_reset_control_get_exclusive(dsi->dev, "rst");
> > -     if (IS_ERR(dsi->rstc))
> > -             return dev_err_probe(dsi->dev, PTR_ERR(dsi->rstc),
> > -                                  "failed to get rst\n");
> > +     if (dsi->info->has_dphy_rstc) {
> > +             dsi->rstc = devm_reset_control_get_exclusive(dsi->dev, "rst");
>
> Maybe use devm_reset_control_get_optional_exclusive by dropping has_dphy_rstc.
>
As the dtbs_check doesn't enforce this,  `has_dphy_rstc` flag was
added. Recently the same was done for the CRU [0] based on the recent
comment received.

[0] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20250328173032.423322-10-tommaso.merciai.xr@bp.renesas.com/

Cheers,
Prabhakar

  reply	other threads:[~2025-03-31 13:59 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-30 21:06 [PATCH 00/17] Add support for DU and DSI on the Renesas RZ/V2H(P) SoC Prabhakar
2025-03-30 21:06 ` [PATCH 01/17] clk: renesas: rzv2h-cpg: Add support for DSI clocks Prabhakar
2025-03-30 21:06 ` [PATCH 02/17] clk: renesas: r9a09g057: Add clock and reset entries for DSI and LCDC Prabhakar
2025-03-30 21:06 ` [PATCH 03/17] media: dt-bindings: media: renesas,vsp1: Document RZ/V2H(P) Prabhakar
2025-03-31  8:21   ` Krzysztof Kozlowski
2025-03-30 21:07 ` [PATCH 04/17] media: dt-bindings: media: renesas,fcp: Document RZ/V2H(P) SoC Prabhakar
2025-03-31  8:22   ` Krzysztof Kozlowski
2025-03-30 21:07 ` [PATCH 05/17] dt-bindings: display: renesas,rzg2l-du: Add support for " Prabhakar
2025-03-31  8:24   ` Krzysztof Kozlowski
2025-04-08 10:36     ` Lad, Prabhakar
2025-03-30 21:07 ` [PATCH 06/17] dt-bindings: display: bridge: renesas,dsi: " Prabhakar
2025-03-31  8:25   ` Krzysztof Kozlowski
2025-04-04 15:33     ` Lad, Prabhakar
2025-03-30 21:07 ` [PATCH 07/17] drm: renesas: rz-du: " Prabhakar
2025-03-30 21:07 ` [PATCH 08/17] drm: renesas: rz-du: mipi_dsi: Add min check for VCLK range Prabhakar
2025-03-31 12:26   ` Biju Das
2025-03-30 21:07 ` [PATCH 09/17] drm: renesas: rz-du: mipi_dsi: Simplify HSFREQ calculation Prabhakar
2025-03-31 12:28   ` Biju Das
2025-03-30 21:07 ` [PATCH 10/17] drm: renesas: rz-du: mipi_dsi: Use VCLK for " Prabhakar
2025-03-30 21:07 ` [PATCH 11/17] drm: renesas: rz-du: mipi_dsi: Add OF data support Prabhakar
2025-03-31 12:38   ` Biju Das
2025-03-31 13:58     ` Lad, Prabhakar [this message]
2025-03-31 14:14       ` Biju Das
2025-03-31 14:44         ` Lad, Prabhakar
2025-03-31 15:04           ` Biju Das
2025-03-31 15:27             ` Lad, Prabhakar
2025-04-01  5:23               ` Biju Das
2025-03-30 21:07 ` [PATCH 12/17] drm: renesas: rz-du: mipi_dsi: Use mHz for D-PHY frequency calculations Prabhakar
2025-03-30 21:07 ` [PATCH 13/17] drm: renesas: rz-du: mipi_dsi: Add feature flag for 16BPP support Prabhakar
2025-03-31 12:29   ` Geert Uytterhoeven
2025-03-31 14:02     ` Lad, Prabhakar
2025-03-30 21:07 ` [PATCH 14/17] drm: renesas: rz-du: mipi_dsi: Add dphy_late_init() callback for RZ/V2H(P) Prabhakar
2025-03-30 21:07 ` [PATCH 15/17] drm: renesas: rz-du: mipi_dsi: Add function pointers for configuring VCLK and mode validation Prabhakar
2025-03-30 21:07 ` [PATCH 16/17] drm: renesas: rz-du: mipi_dsi: Add support for LPCLK handling Prabhakar
2025-03-31 12:44   ` Biju Das
2025-03-31 14:00     ` Lad, Prabhakar
2025-03-30 21:07 ` [PATCH 17/17] drm: renesas: rz-du: mipi_dsi: Add support for RZ/V2H(P) SoC Prabhakar
2025-04-02 18:27   ` Biju Das
2025-04-04 15:27     ` Lad, Prabhakar
2025-03-31  9:59 ` [PATCH 00/17] Add support for DU and DSI on the Renesas " Geert Uytterhoeven
2025-04-03 11:51 ` Tomi Valkeinen
2025-04-03 13:05   ` Lad, Prabhakar

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='CA+V-a8v0K_tWA=LnyHDptoBjtgPHSbgwpJp4L1rw4Uv6KC+-JA@mail.gmail.com' \
    --to=prabhakar.csengg@gmail.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fabrizio.castro.jz@renesas.com \
    --cc=geert+renesas@glider.be \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=krzk+dt@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mchehab@kernel.org \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=p.zabel@pengutronix.de \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    --cc=sboyd@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;
as well as URLs for NNTP newsgroup(s).