]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: renesas: r9a09g077: Add PCLKL core clock
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 17 Jun 2025 15:57:56 +0000 (16:57 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 19 Jun 2025 18:19:05 +0000 (20:19 +0200)
Add the Peripheral Module Clock L (PCLKL) for the RZ/T2H (R9A09G077)
SoC.  PCLKL is sourced from PLL1 and runs at 62.5MHz.  It is used by
various low-speed peripherals such as IIC and WDT.

Also update LAST_DT_CORE_CLK to reflect the addition of PCLKL, ensuring
correct enumeration of core clocks exposed to DT.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250617155757.149597-4-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a09g077-cpg.c

index 206816a2df23a0f16627b036d7dc9b0c3dbc25a5..b83ef933ae0fb2dc67552641d9e8aec025858775 100644 (file)
@@ -66,7 +66,7 @@ enum rzt2h_clk_types {
 
 enum clk_ids {
        /* Core Clock Outputs exported to DT */
-       LAST_DT_CORE_CLK = R9A09G077_CLK_PCLKM,
+       LAST_DT_CORE_CLK = R9A09G077_CLK_PCLKL,
 
        /* External Input Clocks */
        CLK_EXTAL,
@@ -140,6 +140,7 @@ static const struct cpg_core_clk r9a09g077_core_clks[] __initconst = {
                dtable_1_2),
        DEF_FIXED("PCLKGPTL", R9A09G077_CLK_PCLKGPTL, CLK_SEL_CLK_PLL1, 2, 1),
        DEF_FIXED("PCLKM", R9A09G077_CLK_PCLKM, CLK_SEL_CLK_PLL1, 8, 1),
+       DEF_FIXED("PCLKL", R9A09G077_CLK_PCLKL, CLK_SEL_CLK_PLL1, 16, 1),
 };
 
 static const struct mssr_mod_clk r9a09g077_mod_clks[] __initconst = {