From: Biju Das <biju.das.jz@bp.renesas.com>
To: biju.das.au <biju.das.au@gmail.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
magnus.damm <magnus.damm@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,
biju.das.au <biju.das.au@gmail.com>
Subject: RE: [PATCH v3 06/10] clk: renesas: Add support for RZ/G3L SoC
Date: Tue, 17 Feb 2026 11:13:27 +0000 [thread overview]
Message-ID: <TY3PR01MB11346C1B39DEE4A11270FFAE4866DA@TY3PR01MB11346.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <20260203103031.247435-7-biju.das.jz@bp.renesas.com>
Hi All,
> -----Original Message-----
> From: Biju <biju.das.au@gmail.com>
> Sent: 03 February 2026 10:30
> Subject: [PATCH v3 06/10] clk: renesas: Add support for RZ/G3L SoC
>
> From: Biju Das <biju.das.jz@bp.renesas.com>
>
> The clock structure for RZ/G3L is almost identical to RZ/G3S SoC with more IP blocks such as LCDC,
> CRU, LVDS and GPU.
>
> Add minimal clock and reset entries required to boot the system on Renesas RZ/G3L SMARC EVK and binds
> it with the RZ/G2L CPG core driver.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> v2->v3:
> * No change.
> v1->v2:
> * Added CLK_ETH{0,1}_TXC_TX_CLK_IN and CLK_ETH{0,1}_RXC_RX_CLK_IN clocks.
> * Dropped R9A08G046_IA55_PCLK from critical clock list.
> ---
> drivers/clk/renesas/Kconfig | 7 +-
> drivers/clk/renesas/Makefile | 1 +
> drivers/clk/renesas/r9a08g046-cpg.c | 144 ++++++++++++++++++++++++++++
> drivers/clk/renesas/rzg2l-cpg.c | 6 ++
> drivers/clk/renesas/rzg2l-cpg.h | 1 +
> 5 files changed, 158 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/renesas/r9a08g046-
> cpg.c
>
> diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig index
> 6a5a04664990..0203ecbb3882 100644
> --- a/drivers/clk/renesas/Kconfig
> +++ b/drivers/clk/renesas/Kconfig
> @@ -39,6 +39,7 @@ config CLK_RENESAS
> select CLK_R9A07G044 if ARCH_R9A07G044
> select CLK_R9A07G054 if ARCH_R9A07G054
> select CLK_R9A08G045 if ARCH_R9A08G045
> + select CLK_R9A08G046 if ARCH_R9A08G046
> select CLK_R9A09G011 if ARCH_R9A09G011
> select CLK_R9A09G047 if ARCH_R9A09G047
> select CLK_R9A09G056 if ARCH_R9A09G056 @@ -194,6 +195,10 @@ config CLK_R9A08G045
> bool "RZ/G3S clock support" if COMPILE_TEST
> select CLK_RZG2L
>
> +config CLK_R9A08G046
> + bool "RZ/G3L clock support" if COMPILE_TEST
> + select CLK_RZG2L
> +
> config CLK_R9A09G011
> bool "RZ/V2M clock support" if COMPILE_TEST
> select CLK_RZG2L
> @@ -250,7 +255,7 @@ config CLK_RCAR_USB2_CLOCK_SEL
> This is a driver for R-Car USB2 clock selector
>
> config CLK_RZG2L
> - bool "RZ/{G2L,G2UL,G3S,V2L} family clock support" if COMPILE_TEST
> + bool "RZ/{G2{L,UL},G3{S,L},V2L} family clock support" if COMPILE_TEST
> select RESET_CONTROLLER
>
> config CLK_RZV2H
> diff --git a/drivers/clk/renesas/Makefile b/drivers/clk/renesas/Makefile index
> d28eb276a153..bd2bed91ab29 100644
> --- a/drivers/clk/renesas/Makefile
> +++ b/drivers/clk/renesas/Makefile
> @@ -36,6 +36,7 @@ obj-$(CONFIG_CLK_R9A07G043) += r9a07g043-cpg.o
> obj-$(CONFIG_CLK_R9A07G044) += r9a07g044-cpg.o
> obj-$(CONFIG_CLK_R9A07G054) += r9a07g044-cpg.o
> obj-$(CONFIG_CLK_R9A08G045) += r9a08g045-cpg.o
> +obj-$(CONFIG_CLK_R9A08G046) += r9a08g046-cpg.o
> obj-$(CONFIG_CLK_R9A09G011) += r9a09g011-cpg.o
> obj-$(CONFIG_CLK_R9A09G047) += r9a09g047-cpg.o
> obj-$(CONFIG_CLK_R9A09G056) += r9a09g056-cpg.o
> diff --git a/drivers/clk/renesas/r9a08g046-cpg.c b/drivers/clk/renesas/r9a08g046-cpg.c
> new file mode 100644
> index 000000000000..d77934872cf4
> --- /dev/null
> +++ b/drivers/clk/renesas/r9a08g046-cpg.c
> @@ -0,0 +1,144 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * RZ/G3L CPG driver
> + *
> + * Copyright (C) 2026 Renesas Electronics Corp.
> + */
> +
> +#include <linux/clk-provider.h>
> +#include <linux/device.h>
> +#include <linux/init.h>
> +#include <linux/kernel.h>
> +
> +#include <dt-bindings/clock/r9a08g046-cpg.h>
> +
> +#include "rzg2l-cpg.h"
> +
> +/* RZ/G3L Specific registers. */
> +#define G3L_CPG_PL2_DDIV (0x204)
> +#define G3L_CPG_PL3_DDIV (0x208)
> +#define G3L_CLKDIVSTATUS (0x280)
> +
> +/* RZ/G3L Specific division configuration. */
> +#define G3L_DIVPL2A DDIV_PACK(G3L_CPG_PL2_DDIV, 0, 2)
> +#define G3L_DIVPL2B DDIV_PACK(G3L_CPG_PL2_DDIV, 4, 2)
> +#define G3L_DIVPL3A DDIV_PACK(G3L_CPG_PL3_DDIV, 0, 2)
> +
> +/* RZ/G3L Clock status configuration. */
> +#define G3L_DIVPL2A_STS DDIV_PACK(G3L_CLKDIVSTATUS, 4, 1)
> +#define G3L_DIVPL2B_STS DDIV_PACK(G3L_CLKDIVSTATUS, 5, 1)
> +#define G3L_DIVPL3A_STS DDIV_PACK(G3L_CLKDIVSTATUS, 8, 1)
> +
> +enum clk_ids {
> + /* Core Clock Outputs exported to DT */
> + LAST_DT_CORE_CLK = R9A08G046_CLK_P4_DIV2,
> +
> + /* External Input Clocks */
> + CLK_EXTAL,
> + CLK_ETH0_TXC_TX_CLK_IN,
> + CLK_ETH0_RXC_RX_CLK_IN,
> + CLK_ETH1_TXC_TX_CLK_IN,
> + CLK_ETH1_RXC_RX_CLK_IN,
> +
> + /* Internal Core Clocks */
> + CLK_PLL2,
> + CLK_PLL2_DIV2,
> + CLK_PLL3,
> + CLK_PLL3_DIV2,
> +
> + /* Module Clocks */
> + MOD_CLK_BASE,
> +};
> +
> +/* Divider tables */
> +static const struct clk_div_table dtable_4_128[] = {
> + { 0, 4 },
> + { 1, 2 },
Typo 2->8
Cheers,
Biju
next prev parent reply other threads:[~2026-02-17 11:13 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-03 10:30 [PATCH v3 00/10] Add support for Renesas RZ/G3L SoC and SMARC-EVK platform Biju
2026-02-03 10:30 ` [PATCH v3 01/10] dt-bindings: dma: rz-dmac: Document RZ/G3L SoC Biju
2026-03-04 8:21 ` Geert Uytterhoeven
2026-03-04 14:02 ` Biju Das
2026-02-03 10:30 ` [PATCH v3 02/10] dt-bindings: soc: renesas: Document RZ/G3L SoC variants, SMARC SoM and Carrier-II EVK Biju
2026-02-04 18:03 ` Conor Dooley
2026-03-04 8:26 ` Geert Uytterhoeven
2026-02-03 10:30 ` [PATCH v3 03/10] dt-bindings: soc: renesas: renesas,rzg2l-sysc: Document RZ/G3L SoC Biju
2026-03-04 8:36 ` Geert Uytterhoeven
2026-02-03 10:30 ` [PATCH v3 04/10] soc: renesas: rz-sysc: Add SoC identification for " Biju
2026-03-04 8:37 ` Geert Uytterhoeven
2026-02-03 10:30 ` [PATCH v3 05/10] dt-bindings: clock: Document " Biju
2026-02-17 12:03 ` Biju Das
2026-03-05 14:21 ` Geert Uytterhoeven
2026-03-05 15:18 ` Biju Das
2026-03-13 14:05 ` Geert Uytterhoeven
2026-03-13 14:35 ` Biju Das
2026-03-17 16:40 ` Geert Uytterhoeven
2026-02-03 10:30 ` [PATCH v3 06/10] clk: renesas: Add support for " Biju
2026-02-17 11:13 ` Biju Das [this message]
2026-03-05 14:22 ` Geert Uytterhoeven
2026-02-03 10:30 ` [PATCH v3 07/10] arm64: dts: renesas: Add initial DTSI " Biju
2026-03-05 14:54 ` Geert Uytterhoeven
2026-03-05 14:57 ` Geert Uytterhoeven
2026-03-05 16:09 ` Biju Das
2026-03-05 16:57 ` Biju Das
2026-03-06 8:50 ` Geert Uytterhoeven
2026-03-06 9:10 ` Biju Das
2026-03-06 9:25 ` Geert Uytterhoeven
2026-03-06 11:57 ` Biju Das
2026-02-03 10:30 ` [PATCH v3 08/10] arm64: dts: renesas: Add initial support for RZ/G3L SMARC SoM Biju
2026-03-05 14:58 ` Geert Uytterhoeven
2026-02-03 10:30 ` [PATCH v3 09/10] arm64: dts: renesas: renesas-smarc2: Move usb3 nodes to board DTS Biju
2026-03-05 15:00 ` Geert Uytterhoeven
2026-03-05 16:10 ` Biju Das
2026-02-03 10:30 ` [PATCH v3 10/10] arm64: dts: renesas: Add initial device tree for RZ/G3L SMARC EVK board Biju
2026-03-05 15:02 ` Geert Uytterhoeven
2026-02-25 11:24 ` (subset) [PATCH v3 00/10] Add support for Renesas RZ/G3L SoC and SMARC-EVK platform Vinod Koul
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=TY3PR01MB11346C1B39DEE4A11270FFAE4866DA@TY3PR01MB11346.jpnprd01.prod.outlook.com \
--to=biju.das.jz@bp.renesas.com \
--cc=biju.das.au@gmail.com \
--cc=geert+renesas@glider.be \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mturquette@baylibre.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=sboyd@kernel.org \
/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
all inboxes | Powered by JetHome®