[PATCH v3 00/21] Add support for MT8189 clock/power controller

irving.ch.lin
2025-11-06T12:43:45Z

changes since v3:
- Add power-controller dt-schema to mediatek,power-controller.yaml.
- Separates clock commit to small parts (by sub-system).
- Change to mtk-pm-domains for new MTK pm framework.

changes since v2:
- Fix dt-schema checking fails
- Merge dt-binding files and dt-schema files into one patch.
- Add vendor information to dt-binding file name.
- Remove NR define in dt-binding header.
- Add struct member description.

This series 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 (21):
dt-bindings: clock: mediatek: Add MT8189 clock definitions
dt-bindings: power: mediatek: Add MT8189 power domain definitions
clk: mediatek: fix mfg mux issue
clk: mediatek: Add MT8189 apmixedsys clock support
clk: mediatek: Add MT8189 topckgen clock support
clk: mediatek: Add MT8189 vlpckgen clock support
clk: mediatek: Add MT8189 vlpcfg clock support
clk: mediatek: Add MT8189 bus clock support
clk: mediatek: Add MT8189 cam clock support
clk: mediatek: Add MT8189 dbgao clock support
clk: mediatek: Add MT8189 dvfsrc clock support
clk: mediatek: Add MT8189 i2c clock support
clk: mediatek: Add MT8189 img clock support
clk: mediatek: Add MT8189 mdp clock support
clk: mediatek: Add MT8189 mfg clock support
clk: mediatek: Add MT8189 mmsys clock support
clk: mediatek: Add MT8189 scp clock support
clk: mediatek: Add MT8189 ufs clock support
clk: mediatek: Add MT8189 vcodec clock support
pmdomain: mediatek: Add bus protect control flow for MT8189
pmdomain: mediatek: Add power domain driver for MT8189 SoC

.../bindings/clock/mediatek,mt8189-clock.yaml | 90 ++
.../clock/mediatek,mt8189-sys-clock.yaml | 58 +
.../power/mediatek,power-controller.yaml | 1 +
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 | 238 ++++
drivers/clk/mediatek/clk-mt8189-cam.c | 123 ++
drivers/clk/mediatek/clk-mt8189-dbgao.c | 115 ++
drivers/clk/mediatek/clk-mt8189-dispsys.c | 211 ++++
drivers/clk/mediatek/clk-mt8189-dvfsrc.c | 57 +
drivers/clk/mediatek/clk-mt8189-iic.c | 139 +++
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-scp.c | 84 ++
drivers/clk/mediatek/clk-mt8189-topckgen.c | 1018 +++++++++++++++++
drivers/clk/mediatek/clk-mt8189-ufs.c | 100 ++
drivers/clk/mediatek/clk-mt8189-vcodec.c | 108 ++
drivers/clk/mediatek/clk-mt8189-vlpcfg.c | 121 ++
drivers/clk/mediatek/clk-mt8189-vlpckgen.c | 278 +++++
drivers/clk/mediatek/clk-mux.c | 4 +
drivers/pmdomain/mediatek/mt8189-pm-domains.h | 485 ++++++++
drivers/pmdomain/mediatek/mtk-pm-domains.c | 36 +-
drivers/pmdomain/mediatek/mtk-pm-domains.h | 5 +
.../dt-bindings/clock/mediatek,mt8189-clk.h | 580 ++++++++++
.../dt-bindings/power/mediatek,mt8189-power.h | 38 +
27 files changed, 4457 insertions(+), 5 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 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-dispsys.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-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-pm-domains.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