public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: tomm.merciai@gmail.com, linux-renesas-soc@vger.kernel.org,
	biju.das.jz@bp.renesas.com,
	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>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH 06/22] clk: renesas: r9a09g047: Add support for SMUX2_DSI{0,1}_CLK
Date: Tue, 13 Jan 2026 14:51:07 +0100	[thread overview]
Message-ID: <aWZNy7MmeO-obgYr@tom-desktop> (raw)
In-Reply-To: <CAMuHMdVpgnCXVzuZ7ZJQ8dy4Yae=zse3pq=r-g3frymbSVRpVg@mail.gmail.com>

Hi Geert,
Thanks for your review.

On Fri, Jan 09, 2026 at 07:38:40PM +0100, Geert Uytterhoeven wrote:
> Hi Tommaso,
> 
> On Wed, 26 Nov 2025 at 15:10, Tommaso Merciai
> <tommaso.merciai.xr@bp.renesas.com> wrote:
> > Add support for the SMUX2_DSI0_CLK and SMUX2_DSI1_CLK clock muxes
> > present on the r9a09g047 SoC.
> >
> > These muxes select between CDIV7_DSI{0,1}_CLK and CSDIV_2to16_PLLDSI{0,1}
> > using the CPG_SSEL3 register (SELCTL0 and SELCTL1 bits).
> >
> > According to the hardware manual, when LVDS0 or LVDS1 outputs are used,
> > SELCTL0 or SELCTL1 must be set accordingly.
> >
> > Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> 
> Thanks for your patch!
> 
> > --- a/drivers/clk/renesas/r9a09g047-cpg.c
> > +++ b/drivers/clk/renesas/r9a09g047-cpg.c
> > @@ -64,6 +64,8 @@ enum clk_ids {
> >         CLK_SMUX2_GBE0_RXCLK,
> >         CLK_SMUX2_GBE1_TXCLK,
> >         CLK_SMUX2_GBE1_RXCLK,
> > +       CLK_SMUX2_DSI0_CLK,
> > +       CLK_SMUX2_DSI1_CLK,
> 
> Please move these up, before CLK_SMUX2_GBE0_TXCLK.

Ack.

> 
> >         CLK_PLLDTY_DIV16,
> >         CLK_PLLVDO_CRU0,
> >         CLK_PLLVDO_GPU,
> > @@ -143,6 +145,8 @@ RZG3E_CPG_PLL_DSI1_LIMITS(rzg3e_cpg_pll_dsi1_limits);
> >  #define PLLDSI1                PLL_PACK_LIMITS(0x160, 1, 1, &rzg3e_cpg_pll_dsi1_limits)
> >
> >  /* Mux clock tables */
> > +static const char * const smux2_dsi0_clk[] = { ".plldsi0_div7", ".plldsi0_csdiv" };
> > +static const char * const smux2_dsi1_clk[] = { ".plldsi1_div7", ".plldsi1_csdiv" };
> >  static const char * const smux2_gbe0_rxclk[] = { ".plleth_gbe0", "et0_rxclk" };
> >  static const char * const smux2_gbe0_txclk[] = { ".plleth_gbe0", "et0_txclk" };
> >  static const char * const smux2_gbe1_rxclk[] = { ".plleth_gbe1", "et1_rxclk" };
> > @@ -218,6 +222,10 @@ static const struct cpg_core_clk r9a09g047_core_clks[] __initconst = {
> >                        CSDIV1_DIVCTL3, dtable_2_16_plldsi),
> >         DEF_FIXED(".plldsi0_div7", CLK_PLLDSI0_DIV7, CLK_PLLDSI0, 1, 7),
> >         DEF_FIXED(".plldsi1_div7", CLK_PLLDSI1_DIV7, CLK_PLLDSI1, 1, 7),
> > +       DEF_PLLDSI_SMUX(".smux2_dsi0_clk", CLK_SMUX2_DSI0_CLK,
> > +                       SSEL3_SELCTL0, smux2_dsi0_clk),
> > +       DEF_PLLDSI_SMUX(".smux2_dsi1_clk", CLK_SMUX2_DSI1_CLK,
> > +                       SSEL3_SELCTL1, smux2_dsi1_clk),
> 
> Why can't these use the existing DEF_SMUX()?

Same comment of [0].

Kind Regards,
Tommaso

[0] https://patchwork.kernel.org/comment/26730109/

> >
> >         /* Core Clocks */
> >         DEF_FIXED("sys_0_pclk", R9A09G047_SYS_0_PCLK, CLK_QEXTAL, 1, 1),
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds

  reply	other threads:[~2026-01-13 13:51 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-26 14:07 [PATCH 00/22] Add support for DU and DSI on the Renesas RZ/G3E SoC Tommaso Merciai
2025-11-26 14:07 ` [PATCH 01/22] clk: renesas: rzv2h: Add PLLDSI clk mux support Tommaso Merciai
2026-01-09 18:27   ` Geert Uytterhoeven
2026-01-12  8:12     ` Tommaso Merciai
2026-01-14 13:07       ` Geert Uytterhoeven
2026-01-23 15:52         ` Tommaso Merciai
2026-01-14 12:59   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 02/22] clk: renesas: r9a09g047: Add CLK_PLLETH_LPCLK support Tommaso Merciai
2026-01-09 18:27   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 03/22] clk: renesas: r9a09g047: Add CLK_PLLDSI{0,1} clocks Tommaso Merciai
2026-01-09 18:35   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 04/22] clk: renesas: r9a09g047: Add CLK_PLLDSI{0,1}_DIV7 clocks Tommaso Merciai
2026-01-09 18:36   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 05/22] clk: renesas: r9a09g047: Add CLK_PLLDSI{0,1}_CSDIV clocks Tommaso Merciai
2026-01-09 18:37   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 06/22] clk: renesas: r9a09g047: Add support for SMUX2_DSI{0,1}_CLK Tommaso Merciai
2026-01-09 18:38   ` Geert Uytterhoeven
2026-01-13 13:51     ` Tommaso Merciai [this message]
2025-11-26 14:07 ` [PATCH 07/22] clk: renesas: r9a09g047: Add support for DSI clocks and resets Tommaso Merciai
2026-01-09 18:39   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 08/22] clk: renesas: r9a09g047: Add support for LCDC{0,1} " Tommaso Merciai
2026-01-09 18:39   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 09/22] dt-bindings: display: bridge: renesas,dsi: Add support for RZ/G3E SoC Tommaso Merciai
2025-11-30  8:24   ` Krzysztof Kozlowski
2026-01-09 16:06     ` Tommaso Merciai
2026-01-09 16:22       ` Geert Uytterhoeven
2026-01-09 17:36         ` Tommaso Merciai
2026-01-09 17:59           ` Geert Uytterhoeven
2026-01-12 11:17             ` Tommaso Merciai
2026-01-12 11:35               ` Geert Uytterhoeven
2026-01-12 11:59                 ` Tommaso Merciai
2026-01-12 13:33                   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 10/22] dt-bindings: display: renesas,rzg2l-du: " Tommaso Merciai
2025-12-03  8:23   ` Krzysztof Kozlowski
2025-12-03 13:41     ` Tommaso Merciai
2026-01-14 12:37       ` Geert Uytterhoeven
2026-01-15  7:48         ` Biju Das
2026-01-15  8:24           ` Geert Uytterhoeven
2026-01-15 10:10             ` Biju Das
2026-01-15 10:22               ` Geert Uytterhoeven
2026-01-15 10:34                 ` Biju Das
2026-01-15 10:51                   ` Geert Uytterhoeven
2026-01-09 15:59   ` Tommaso Merciai
2025-11-26 14:07 ` [PATCH 11/22] drm: renesas: rz-du: mipi_dsi: Add out_port to OF data Tommaso Merciai
2025-11-26 14:07 ` [PATCH 12/22] drm: renesas: rz-du: mipi_dsi: Add RZ_MIPI_DSI_FEATURE_GPO0R feature Tommaso Merciai
2025-11-26 14:07 ` [PATCH 13/22] drm: renesas: rz-du: mipi_dsi: Add support for RZ/G3E Tommaso Merciai
2025-11-26 14:07 ` [PATCH 14/22] drm: renesas: rz-du: Add RZ/G3E support Tommaso Merciai
2026-01-14  9:58   ` Tommaso Merciai
2025-11-26 14:07 ` [PATCH 15/22] media: dt-bindings: media: renesas,vsp1: Document RZ/G3E Tommaso Merciai
2025-12-03  8:25   ` Krzysztof Kozlowski
2026-01-14 15:10   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 16/22] media: dt-bindings: media: renesas,fcp: Document RZ/G3E SoC Tommaso Merciai
2025-12-03  8:26   ` Krzysztof Kozlowski
2026-01-14 15:11   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 17/22] arm64: dts: renesas: r9a09g047: Add fcpvd0 node Tommaso Merciai
2026-01-14 15:12   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 18/22] arm64: dts: renesas: r9a09g047: Add vspd0 node Tommaso Merciai
2026-01-14 15:15   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 19/22] arm64: dts: renesas: r9a09g047: Add fcpvd1 node Tommaso Merciai
2026-01-14 15:14   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 20/22] arm64: dts: renesas: r9a09g047: Add vspd1 node Tommaso Merciai
2026-01-14 15:16   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 21/22] arm64: dts: renesas: r9a09g047: Add DU{0,1} and DSI nodes Tommaso Merciai
2026-01-14 15:23   ` Geert Uytterhoeven
2025-11-26 14:07 ` [PATCH 22/22] arm64: dts: renesas: r9a09g047e57-smarc: Enable DU1 and DSI support Tommaso Merciai
2025-11-29 15:33 ` [PATCH 00/22] Add support for DU and DSI on the Renesas RZ/G3E SoC 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=aWZNy7MmeO-obgYr@tom-desktop \
    --to=tommaso.merciai.xr@bp.renesas.com \
    --cc=Laurent.pinchart@ideasonboard.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=dri-devel@lists.freedesktop.org \
    --cc=geert@linux-m68k.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=krzk+dt@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --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=mturquette@baylibre.com \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tomm.merciai@gmail.com \
    --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