Skip to content

clk: amlogic: Introduce A9 PLL and CCU driver support

Chuan Liu b4-sent linux-amlogic linux-clk linux-devicetree lkml oe-kbuild-all 1 version NAK

Status from this message: NAK

Get series with b4
b4 am [email protected] change-id 20260130-a9_clock_driver-ddd90357848c

Versions newest first

  1. v1 Latest13 patches 15 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/13dt-bindings: clock: Add Amlogic A9 standardized model clock control unitsDocumentation/devicetree/bindings/clock/amlogic,a9-model-ccu.yaml+435 -03 replies
2/13dt-bindings: clock: Add Amlogic A9 PLL controllersDocumentation/devicetree/bindings/clock/amlogic,a9-pll.yaml+134 -00 replies
3/13dt-bindings: clock: Add Amlogic A9 misc clock control unitsDocumentation/devicetree/bindings/clock/amlogic,a9-misc-ccu.yaml include/dt-bindings/clock/amlogic,a9-misc-ccu.h+576 -01 reply
4/13clk: amlogic: Add basic clock driverdrivers/clk/Kconfig drivers/clk/Makefile drivers/clk/amlogic/Kconfig +5 more+458 -07 replies
5/13clk: amlogic: Add composite clock driverdrivers/clk/amlogic/Makefile drivers/clk/amlogic/clk-composite.c drivers/clk/amlogic/clk-composite.h +2 more+309 -01 reply
6/13clk: amlogic: Add noglitch clock driverdrivers/clk/amlogic/Makefile drivers/clk/amlogic/clk-noglitch.c drivers/clk/amlogic/clk-noglitch.h +2 more+620 -02 replies
7/13clk: amlogic: Add duandiv clock driverdrivers/clk/amlogic/Makefile drivers/clk/amlogic/clk-dualdiv.c drivers/clk/amlogic/clk-dualdiv.h +2 more+395 -00 replies
8/13clk: amlogic: Add PLL driverdrivers/clk/amlogic/Makefile drivers/clk/amlogic/clk-pll.c drivers/clk/amlogic/clk-pll.h +2 more+747 -00 replies
9/13clk: amlogic: Add DT-based clock registration functionsdrivers/clk/amlogic/clk.c drivers/clk/amlogic/clk.h+323 -10 replies
10/13clk: amlogic: Add A9 standardized model clock control units driverdrivers/clk/amlogic/Kconfig drivers/clk/amlogic/Makefile drivers/clk/amlogic/a9-model-ccu.c+487 -00 replies
11/13clk: amlogic: Add A9 PLL controllers driverdrivers/clk/amlogic/Kconfig drivers/clk/amlogic/Makefile drivers/clk/amlogic/a9-pll.c+160 -00 replies
12/13clk: amlogic: Add A9 misc clock control units driverdrivers/clk/amlogic/Kconfig drivers/clk/amlogic/Makefile drivers/clk/amlogic/a9-misc-ccu.c+975 -00 replies
13/13clk: amlogic: Add support for building as combined kernel moduledrivers/clk/amlogic/Kconfig drivers/clk/amlogic/Makefile drivers/clk/amlogic/a9-misc-ccu.c +4 more+138 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] clk: amlogic: Introduce A9 PLL and CCU driver support

This patch adds driver support for Phase-Locked Loop (PLL) controllers and Clock Control Units (CCUs) in A9 SoC family.

In the A9 SoC architecture, PLLs and clock control units are implemented as standardized hardware instances to reduce unnecessary differentiation across individual units.

All A9 PLLs and CCUs are exposed as device tree nodes, providing an accurate representation of the SoC's internal clock hardware structure.

These drivers are designed for reuse in subsequent SoC generations, guaranteeing code inheritance and maximizing reusability.

Makefile rules compile A9 PLL and CCU drivers into clk-amlogic.o (see drivers/clk/amlogic/Makefile), simplifying deployment and enhancing load efficiency (single insmod for kernel module).

Since the foundational A9 DTS hasn't been upstreamed yet, I'm temporarily pushing the PLL/CCU DTS files to github for driver comprehension [1]. These patches will be included in a later release after the base A9 DTS is merged.

[1] https://github.com/torvalds/linux/commit/d6a82e4cce675fa5146c5f638c2a926c1c8cb1d9

---
Chuan Liu (13):
dt-bindings: clock: Add Amlogic A9 standardized model clock control units
dt-bindings: clock: Add Amlogic A9 PLL controllers
dt-bindings: clock: Add Amlogic A9 misc clock control units
clk: amlogic: Add basic clock driver
clk: amlogic: Add composite clock driver
clk: amlogic: Add noglitch clock driver
clk: amlogic: Add duandiv clock driver
clk: amlogic: Add PLL driver
clk: amlogic: Add DT-based clock registration functions
clk: amlogic: Add A9 standardized model clock control units driver
clk: amlogic: Add A9 PLL controllers driver
clk: amlogic: Add A9 misc clock control units driver
clk: amlogic: Add support for building as combined kernel module

 .../bindings/clock/amlogic,a9-misc-ccu.yaml        | 523 +++++++++++
 .../bindings/clock/amlogic,a9-model-ccu.yaml       | 435 +++++++++
 .../devicetree/bindings/clock/amlogic,a9-pll.yaml  | 134 +++
 drivers/clk/Kconfig                                |   1 +
 drivers/clk/Makefile                               |   1 +
 drivers/clk/amlogic/Kconfig                        |  52 ++
 drivers/clk/amlogic/Makefile                       |  23 +
 drivers/clk/amlogic/a9-misc-ccu.c                  | 970 +++++++++++++++++++++
 drivers/clk/amlogic/a9-model-ccu.c                 | 475 ++++++++++
 drivers/clk/amlogic/a9-pll.c                       | 156 ++++
 drivers/clk/amlogic/clk-basic.c                    | 219 +++++
 drivers/clk/amlogic/clk-basic.h                    |  39 +
 drivers/clk/amlogic/clk-composite.c                | 280 ++++++
 drivers/clk/amlogic/clk-composite.h                |  20 +
 drivers/clk/amlogic/clk-dualdiv.c                  | 365 ++++++++
 drivers/clk/amlogic/clk-dualdiv.h                  |  27 +
 drivers/clk/amlogic/clk-module.c                   |  42 +
 drivers/clk/amlogic/clk-module.h                   |  53 ++
 drivers/clk/amlogic/clk-noglitch.c                 | 584 +++++++++++++
 drivers/clk/amlogic/clk-noglitch.h                 |  29 +
 drivers/clk/amlogic/clk-pll.c                      | 701 +++++++++++++++
 drivers/clk/amlogic/clk-pll.h                      |  43 +
 drivers/clk/amlogic/clk.c                          | 464 ++++++++++
 drivers/clk/amlogic/clk.h                          |  56 ++
 include/dt-bindings/clock/amlogic,a9-misc-ccu.h    |  53 ++
 25 files changed, 5745 insertions(+)

---
base-commit: 4d310797262f0ddf129e76c2aad2b950adaf1fda
change-id: 20260130-a9_clock_driver-ddd90357848c

Best regards,

Signature · 1 line
Chuan Liu <[email protected]>