[PATCH v2 0/6] Add Amlogic S7 clock controllers

From: Carlo Caione

Date: Fri Nov 20 2026 - 08:12:06 EST


This series adds the clock controllers of the Amlogic S7 SoC family
(S905Y5, S805X3): the PLL clock controller and the peripherals clock
controller.

The peripherals controller is close to the S4 one. Two changes to the
common code come with the PLL controller: clk-pll handles PLLs without
a pre-divider and PLLs with an active-low reset, like the HDMI PLL.

---
Changes in v2:
- Drop the SCMI clock IDs patch: the IDs move to the DT series and the
binding examples use raw SCMI clock cells (Conor, Jerome)
- Use exclusive or for the active-low reset (Jerome)
- Use absolute addresses in the binding examples (Conor)
- Rename the HIFI PLL to HIFI0, as in the datasheet (Jerome)
- Model div0p5 of the GP0, HIFI0 and HIFI1 PLLs as a read-only divider
instead of a fixed /2 (Jerome)
- Swap the VCO and div0p5 clock IDs of each PLL, so the VCO init runs
before the div0p5 divider reads its register (Jerome)
- Drop CLK_MESON_PLL_NOINIT_ENABLED from the HIFI0 and HIFI1 PLLs (Jerome)
- Declare one clock per line in the fclk macros and drop the default
GP0 frac_max (Jerome)
- Clarify the fclk_en and HDMIPLL_CTRL2 comments (Jerome)
- Say why PWM H and J are read-only (Jerome)
- Fold the video and eth_rmii clocks with the composite helpers and
local macros (Jerome)
- Add Conor's Acked-by and Jerome's Reviewed-by
- Link to v1: https://patch.msgid.link/20261106-upstream-s7-clk-v1-0-7d501d62621f@xxxxxxxxxxxx

---
Carlo Caione (6):
clk: meson: pll: Support PLLs without a pre-divider
clk: meson: pll: Support active-low resets
dt-bindings: clock: Add Amlogic S7 PLL clock controller
clk: amlogic: Add S7 PLL clock controller driver
dt-bindings: clock: Add Amlogic S7 peripherals clock controller
clk: amlogic: Add S7 peripherals clock controller driver

.../clock/amlogic,s7-peripherals-clkc.yaml | 125 ++
.../bindings/clock/amlogic,s7-pll-clkc.yaml | 71 +
drivers/clk/meson/Kconfig | 30 +
drivers/clk/meson/Makefile | 2 +
drivers/clk/meson/clk-pll.c | 51 +-
drivers/clk/meson/clk-pll.h | 1 +
drivers/clk/meson/s7-peripherals.c | 1637 ++++++++++++++++++++
drivers/clk/meson/s7-pll.c | 696 +++++++++
.../clock/amlogic,s7-peripherals-clkc.h | 245 +++
include/dt-bindings/clock/amlogic,s7-pll-clkc.h | 42 +
10 files changed, 2885 insertions(+), 15 deletions(-)
---
base-commit: 363f97a1ce635b86be7fd263d56a040fbd87bdbb
change-id: 20261026-upstream-s7-clk-3fbe6f33652d

Best regards,
--
Carlo Caione <ccaione@xxxxxxxxxxxx>