Devicetree
 help / color / mirror / Atom feed
From: "Alim Akhtar" <alim.akhtar@samsung.com>
To: "'Peter Griffin'" <peter.griffin@linaro.org>,
	"'Raghav Sharma'" <raghav.s@samsung.com>
Cc: <krzk@kernel.org>, <s.nawrocki@samsung.com>,
	<cw00.choi@samsung.com>, <sboyd@kernel.org>,
	<bmasney+clk@redhat.com>, <jbrunet+clk@baylibre.com>,
	<robh@kernel.org>, <conor+dt@kernel.org>,
	<linux-samsung-soc@vger.kernel.org>, <linux-clk@vger.kernel.org>,
	<devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <is.gandhi@samsung.com>,
	<ts.amit@samsung.com>, <pokala.reddy@samsung.com>
Subject: RE: [PATCH v3 08/14 RESEND] clk: samsung: exynos8855: add block peris clock support
Date: Thu, 26 Nov 2026 23:05:18 +0530	[thread overview]
Message-ID: <000101dd7dcc$835c0830$8a141890$@samsung.com> (raw)
In-Reply-To: <CADrjBPrzHP_97OgAYacJKKqeCcp9FURoi6=Dmopk6nisTdEbdA@mail.gmail.com>



> -----Original Message-----
> From: Peter Griffin <peter.griffin@linaro.org>
> Sent: Friday, November 13, 2026 6:24 PM
> To: Raghav Sharma <raghav.s@samsung.com>
> Cc: krzk@kernel.org; s.nawrocki@samsung.com; cw00.choi@samsung.com;
> alim.akhtar@samsung.com; sboyd@kernel.org; bmasney+clk@redhat.com;
> jbrunet+clk@baylibre.com; robh@kernel.org; conor+dt@kernel.org; linux-
> samsung-soc@vger.kernel.org; linux-clk@vger.kernel.org;
> devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
> kernel@vger.kernel.org; is.gandhi@samsung.com; ts.amit@samsung.com;
> pokala.reddy@samsung.com
> Subject: Re: [PATCH v3 08/14 RESEND] clk: samsung: exynos8855: add block
> peris clock support
> 
> Hi Raghav,
> 
> On Fri, 13 Nov 2026 at 10:54, Raghav Sharma <raghav.s@samsung.com>
> wrote:
> >
> > Register compatible and cmu_info data to support clocks.
> > CMU_PERIS, this provides clocks for PERIS
> >
> > Co-developed-by: Alim Akhtar <alim.akhtar@samsung.com>
> > Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> > Signed-off-by: Raghav Sharma <raghav.s@samsung.com>
> > ---
> >  drivers/clk/samsung/clk-exynos8855.c | 97
> > ++++++++++++++++++++++++++++
> >  1 file changed, 97 insertions(+)
> >
> > diff --git a/drivers/clk/samsung/clk-exynos8855.c
> > b/drivers/clk/samsung/clk-exynos8855.c
> > index dcf58f2459b0..12b5ae54b560 100644
> > --- a/drivers/clk/samsung/clk-exynos8855.c
> > +++ b/drivers/clk/samsung/clk-exynos8855.c
> > @@ -18,7 +18,9 @@
> >  /* NOTE: Must be equal to the last clock ID increased by one */
> >  #define CLKS_NR_TOP                     (CLKCMU_DOUT_G3D_HTU + 1)
> >  #define CLKS_NR_PERIC                   (CLK_GOUT_USI_PERIC + 1)
> > +#define CLKS_NR_PERIS                   (CLK_GOUT_WDT1_PERIS + 1)
> >
> > +#define EXYNOS8855_PERIS_GATE_DBG_OFFSET      0x2004
> >  #define EXYNOS8855_PERIC_GATE_DBG_OFFSET      0x2024
> >  #define EXYNOS8855_TOP_GATE_DBG_OFFSET      0x20A0
> >
> > @@ -1092,6 +1094,98 @@ static const struct samsung_cmu_info
> peric_cmu_info __initconst = {
> >         .memclk_offset          = EXYNOS8855_MEMCLK_OFFSET,
> >  };
> >
> > +/* ---- CMU_PERIS
> > +--------------------------------------------------------- */
> > +
> > +/* Register Offset definitions for CMU_PERIS (0x10030000) */
> > +#define CMU_PERIS_PLL_CON0_MUX_CLKCMU_PERIS_NOC_USER
> 0x600
> > +#define CMU_PERIS_CLK_CON_MUX_CLK_PERIS_GIC                    0x1000
> > +#define CMU_PERIS_PLL_CON0_MUX_CLK_PERIS_GIC_USER
> 0x610
> > +#define CMU_PERIS_CLK_CON_DIV_CLK_PERIS_NOCP                   0x1800
> > +#define CMU_PERIS_CLK_CON_DIV_CLK_PERIS_OTP                    0x1804
> > +#define
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_CMU_PERIS_IPCLKPORT_PCLK
> 0x201c
> > +#define
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_SYSREG_PERIS_IPCLKPORT_P
> CLK  0x2040
> > +#define
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_WDT0_IPCLKPORT_PCLK
> 0x2048
> > +#define
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_WDT1_IPCLKPORT_PCLK
> 0x204c
> > +#define CMU_PERIS_CONTROLLER_OPTION0_CMU_CTRL                  0x800
> > +
> > +static const unsigned long peris_clk_regs[] __initconst = {
> > +       CMU_PERIS_PLL_CON0_MUX_CLKCMU_PERIS_NOC_USER,
> > +       CMU_PERIS_CLK_CON_MUX_CLK_PERIS_GIC,
> > +       CMU_PERIS_PLL_CON0_MUX_CLK_PERIS_GIC_USER,
> > +       CMU_PERIS_CLK_CON_DIV_CLK_PERIS_NOCP,
> > +       CMU_PERIS_CLK_CON_DIV_CLK_PERIS_OTP,
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_CMU_PERIS_IPCLKPORT_PCLK,
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_SYSREG_PERIS_IPCLKPORT_P
> CLK,
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_WDT0_IPCLKPORT_PCLK,
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_WDT1_IPCLKPORT_PCLK,
> > +       CMU_PERIS_CONTROLLER_OPTION0_CMU_CTRL,
> > +};
> 
> Same comment about preserving register state from the bootloader when
> powering off/on PERIS block.
> 
> > +
> > +/* List of parent clocks for Muxes in CMU_PERIS */
> > +PNAME(mout_clkcmu_peris_noc_user_p) = { "oscclk",
> > +"dout_clkcmu_peris_noc" };
> > +PNAME(mout_clk_peris_gic_p) = { "oscclk",
> > +"mout_clkcmu_peris_gic_user" };
> > +PNAME(mout_clkcmu_peris_gic_user_p) = { "oscclk",
> > +"dout_clkcmu_peris_gic" };
> > +
> > +static const struct samsung_mux_clock peris_mux_clks[] __initconst = {
> > +       MUX(CLK_MOUT_PERIS_NOC_USER, "mout_clkcmu_peris_noc_user",
> > +           mout_clkcmu_peris_noc_user_p,
> CMU_PERIS_PLL_CON0_MUX_CLKCMU_PERIS_NOC_USER, 4, 1),
> > +       MUX(CLK_MOUT_PERIS_GIC, "mout_clk_peris_gic",
> > +           mout_clk_peris_gic_p,
> CMU_PERIS_CLK_CON_MUX_CLK_PERIS_GIC, 0, 1),
> > +       MUX(CLK_MOUT_PERIS_GIC_USER, "mout_clkcmu_peris_gic_user",
> > +           mout_clkcmu_peris_gic_user_p,
> > +CMU_PERIS_PLL_CON0_MUX_CLK_PERIS_GIC_USER, 4, 1), };
> > +
> > +static const struct samsung_div_clock peris_div_clks[] __initconst = {
> > +       DIV(CLK_DOUT_PERIS_NOCP, "dout_clkcmu_peris_nocp",
> > +           "mout_clkcmu_peris_noc_user",
> CMU_PERIS_CLK_CON_DIV_CLK_PERIS_NOCP,
> > +           0, 4),
> > +       DIV(CLK_DOUT_PERIS_OTP, "dout_clkcmu_peris_otp",
> > +           "oscclk", CMU_PERIS_CLK_CON_DIV_CLK_PERIS_OTP,
> > +           0, 4),
> > +};
> > +
> > +static const struct samsung_gate_clock peris_gate_clks[] __initconst = {
> > +       GATE(CLK_GOUT_CMU_PERIS, "gout_cmu_peris",
> > +            "dout_clkcmu_peris_nocp",
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_CMU_PERIS_IPCLKPORT_PCLK,
> > +            21, 0, 0),
> > +       GATE(CLK_GOUT_SYSREG_PERIS, "gout_sysreg_peris",
> > +            "dout_clkcmu_peris_nocp",
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_SYSREG_PERIS_IPCLKPORT_P
> CLK,
> > +            21, 0, 0),
> > +       GATE(CLK_GOUT_WDT0_PERIS, "gout_wdt0_peris",
> > +            "dout_clkcmu_peris_nocp",
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_WDT0_IPCLKPORT_PCLK,
> > +            21, 0, 0),
> > +       GATE(CLK_GOUT_WDT1_PERIS, "gout_wdt1_peris",
> > +            "dout_clkcmu_peris_nocp",
> > +
> CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_WDT1_IPCLKPORT_PCLK,
> > +            21, 0, 0),
> 
> The Linux clock name strings look wrong here. It looks like you've generally
> followed the clk-gs101 clock name mangling in this series so it should be
> "gout_<block-name>_<IP-clock-name>, but you have "gout_IP-
> clock_name>-<block-name>". I know there is some "name diversity" in-tree
> for various SoCs, but with new SoCs using auto clocks I would like to keep the
> naming scheme following a similar style to clk-gs101.
> 
> Also I guess with auto clocks now enabled from the start you may never
> need to expose all the CMU bus clocks, but I worry a bit you may have
> mangled the names here a bit too much. If you do need to expose extra
> gates you might get name collisions. For example in clk-gs101 we have both
> 
> gout_apm_apm_usi0_uart_ipclk
> gout_apm_apm_usi0_uart_pclk
> 
> So we kept the _pclk suffix in the Linux name to avoid a name collision.
> 
Thanks for review, will change to gout_<block-name>_<IP-clock-name> convention 
> Thanks,
> 
> Peter


  reply	other threads:[~2026-11-26 17:35 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261113104829epcas5p13695795bc337b89816b05eec610a0dba@epcas5p1.samsung.com>
2026-11-13 11:05 ` [PATCH v3 00/14 RESEND] Add clock support for Exynos8855 SoC Raghav Sharma
2026-11-13 11:05   ` [PATCH v3 01/14 RESEND] dt-bindings: soc: samsung: Exynos8855 SYSREG compatibles Raghav Sharma
2026-11-13 10:57     ` Peter Griffin
2026-11-16 10:01     ` (subset) " Krzysztof Kozlowski
2026-11-13 11:06   ` [PATCH v3 02/14 RESEND] dt-bindings: clock: exynos8855: add top & peric clock definitions Raghav Sharma
2026-11-13 11:01     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 03/14 RESEND] dt-bindings: clock: exynos8855: add peris " Raghav Sharma
2026-11-13 11:25     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 04/14 RESEND] dt-bindings: clock: exynos8855: add hsi " Raghav Sharma
2026-11-13 11:02     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 05/14 RESEND] dt-bindings: clock: exynos8855: add usb " Raghav Sharma
2026-11-13 11:03     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 06/14 RESEND] clk: samsung: clk-pll: Add support for pll_4313 Raghav Sharma
2026-11-13 12:27     ` Peter Griffin
2026-11-19  3:52       ` Alim Akhtar
2026-11-20 11:07         ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 07/14 RESEND] clk: samsung: exynos8855: add block top and peric clock support Raghav Sharma
2026-11-13 11:24     ` sashiko-bot
2026-11-13 12:06     ` Peter Griffin
2026-11-26 15:43       ` Alim Akhtar
2026-11-13 11:06   ` [PATCH v3 08/14 RESEND] clk: samsung: exynos8855: add block peris " Raghav Sharma
2026-11-13 12:54     ` Peter Griffin
2026-11-26 17:35       ` Alim Akhtar [this message]
2026-11-13 11:06   ` [PATCH v3 09/14 RESEND] clk: samsung: exynos8855: add block hsi " Raghav Sharma
2026-11-13 11:06   ` [PATCH v3 10/14 RESEND] clk: samsung: exynos8855: add block usb " Raghav Sharma
2026-11-13 13:03     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 11/14 RESEND] arm64: dts: exynos8855: add cmu_top & cmu_peric clock DT nodes Raghav Sharma
2026-11-13 12:59     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 12/14 RESEND] arm64: dts: exynos8855: add cmu_peris " Raghav Sharma
2026-11-13 13:00     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 13/14 RESEND] arm64: dts: exynos8855: add cmu_hsi " Raghav Sharma
2026-11-13 13:01     ` Peter Griffin
2026-11-13 11:06   ` [PATCH v3 14/14 RESEND] arm64: dts: exynos8855: add cmu_usb " Raghav Sharma
2026-11-13 13:01     ` Peter Griffin
2026-11-16 10:01   ` (subset) [PATCH v3 00/14 RESEND] Add clock support for Exynos8855 SoC Krzysztof Kozlowski
2026-11-16 10:02   ` Krzysztof Kozlowski
2026-11-16 18:06     ` Peter Griffin
2026-11-18  8:23       ` Krzysztof Kozlowski

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='000101dd7dcc$835c0830$8a141890$@samsung.com' \
    --to=alim.akhtar@samsung.com \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=is.gandhi@samsung.com \
    --cc=jbrunet+clk@baylibre.com \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=pokala.reddy@samsung.com \
    --cc=raghav.s@samsung.com \
    --cc=robh@kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=sboyd@kernel.org \
    --cc=ts.amit@samsung.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