[PATCH v2 0/4] Add support for MT8189 clock/power controller

irving.ch.lin
2025-09-12T12:05:28Z

These patches add support for the clock and power controllers
of MediaTek's new SoC, MT8189. With these changes,
other modules can easily manage clock and power resources
using standard Linux APIs, such as the Common Clock Framework (CCF)
and pm_runtime on MT8189 platform.

Irving-ch Lin (4):
dt-bindings: clock: mediatek: Add MT8189 clock definitions
dt-bindings: power: mediatek: Add MT8189 power domain definitions
clk: mediatek: Add clock drivers for MT8189 SoC
pmdomain: mediatek: Add power domain driver for MT8189 SoC

.../bindings/clock/mediatek,mt8189-clock.yaml | 89 ++
.../clock/mediatek,mt8189-sys-clock.yaml | 58 +
.../mediatek,mt8189-power-controller.yaml | 88 ++
drivers/clk/mediatek/Kconfig | 146 +++
drivers/clk/mediatek/Makefile | 14 +
drivers/clk/mediatek/clk-mt8189-apmixedsys.c | 135 +++
drivers/clk/mediatek/clk-mt8189-bus.c | 289 +++++
drivers/clk/mediatek/clk-mt8189-cam.c | 131 ++
drivers/clk/mediatek/clk-mt8189-dbgao.c | 115 ++
drivers/clk/mediatek/clk-mt8189-dvfsrc.c | 61 +
drivers/clk/mediatek/clk-mt8189-iic.c | 149 +++
drivers/clk/mediatek/clk-mt8189-img.c | 122 ++
drivers/clk/mediatek/clk-mt8189-mdpsys.c | 100 ++
drivers/clk/mediatek/clk-mt8189-mfg.c | 56 +
drivers/clk/mediatek/clk-mt8189-mmsys.c | 233 ++++
drivers/clk/mediatek/clk-mt8189-scp.c | 92 ++
drivers/clk/mediatek/clk-mt8189-topckgen.c | 1057 +++++++++++++++++
drivers/clk/mediatek/clk-mt8189-ufs.c | 106 ++
drivers/clk/mediatek/clk-mt8189-vcodec.c | 119 ++
drivers/clk/mediatek/clk-mt8189-vlpcfg.c | 145 +++
drivers/clk/mediatek/clk-mt8189-vlpckgen.c | 280 +++++
drivers/clk/mediatek/clk-mux.c | 4 +
drivers/pmdomain/mediatek/mt8189-scpsys.h | 75 ++
drivers/pmdomain/mediatek/mtk-scpsys.c | 967 ++++++++++++++-
.../dt-bindings/clock/mediatek,mt8189-clk.h | 580 +++++++++
.../dt-bindings/power/mediatek,mt8189-power.h | 38 +
26 files changed, 5206 insertions(+), 43 deletions(-)
create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8189-clock.yaml
create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8189-sys-clock.yaml
create mode 100644 Documentation/devicetree/bindings/power/mediatek,mt8189-power-controller.yaml
create mode 100644 drivers/clk/mediatek/clk-mt8189-apmixedsys.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-bus.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-cam.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-dbgao.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-dvfsrc.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-iic.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-img.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-mdpsys.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-mfg.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-mmsys.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-scp.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-topckgen.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-ufs.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-vcodec.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-vlpcfg.c
create mode 100644 drivers/clk/mediatek/clk-mt8189-vlpckgen.c
create mode 100644 drivers/pmdomain/mediatek/mt8189-scpsys.h
create mode 100644 include/dt-bindings/clock/mediatek,mt8189-clk.h
create mode 100644 include/dt-bindings/power/mediatek,mt8189-power.h

--
2.45.2