[PATCH v3 0/5] Add PLL3 and LCDC_CLKD support for RZ/T2H and RZ/N2H

From: Prabhakar

Date: Mon Jun 15 2026 - 06:51:57 EST


From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

Hi all,

This series adds support for the PLL3 and LCDC_CLKD clocks on Renesas
RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs. These clocks are essential
for the display pipeline, specifically feeding the LCD controller.

Key Changes:
- PLL Reference Flexibility in the RZ/V2H(P) CPG driver
- MSTP Dummy-Read Mechanism
- LCDC implementation in the RZ/T2H CPG driver.

v2->v3:
- Added export.h include in rzv2h-cpg-lib.c.
- In r9a09g077_cpg_lcdc_div_determine_rate() made use of
clk_hw_get_parent_by_index() to ensure we retrieve pll3 as the parent.

v1->v2:
https://lore.kernel.org/all/20260609105924.962573-1-prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx/
- Dropped RZ_V2H_OSC_CLK_IN_MEGA macro in favor of direct use of the
input_fref field with a fallback.
- Updated the doc to specify the default value of input_freq when it is 0.
- Updated commit message for patch 1 and 2 to reflect the new approach.
- Dropped using table based approach in favor of direct conditional checks
on the clock index.
- Added Acked-by and Reviewed-by tags
- Added new patch#4
- Switched to use the new library
- Kconfig now selects CLK_RZV2H_CPG_LIB
- Renamed CPG_PLLEN to CPG_PLL_EN_EN
- Renamed LCDCDIV to LCDC_CLKD
- Changed ctr0/1 in r9a09g077_cpg_pll3_clk_recalc_rate() to use u32

v1: https://lore.kernel.org/all/20260511191910.1945705-1-prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx/

Cheers,
Prabhakar
Lad Prabhakar (5):
clk: renesas: rzv2h-cpg: Use per-SoC PLL reference frequency for
calculations
clk: renesas: cpg-mssr: Implement dedicated MSTP delay logic for
RZ/T2H LCDC and RTC
dt-bindings: clock: renesas,r9a09g077/87: Add LCDC_CLKD clock ID
clk: renesas: rzv2h-cpg: Extract PLL calculation math into a library
clk: renesas: r9a09g077: Add LCDC and PLL3 clock support for RZ/T2H
display pipeline

drivers/clk/renesas/Kconfig | 6 +
drivers/clk/renesas/Makefile | 1 +
drivers/clk/renesas/r9a09g077-cpg.c | 373 +++++++++++++++++-
drivers/clk/renesas/renesas-cpg-mssr.c | 20 +-
drivers/clk/renesas/rzv2h-cpg-lib.c | 217 ++++++++++
drivers/clk/renesas/rzv2h-cpg.c | 186 +--------
.../clock/renesas,r9a09g077-cpg-mssr.h | 1 +
.../clock/renesas,r9a09g087-cpg-mssr.h | 1 +
include/linux/clk/renesas.h | 28 ++
9 files changed, 650 insertions(+), 183 deletions(-)
create mode 100644 drivers/clk/renesas/rzv2h-cpg-lib.c

--
2.54.0