soc: mediatek: add MMDVFS support for MT8196
Status from this message: NAK, you are messing with us...
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | dt-bindings: clock: mediatek: add MT8196 MMDVFS clock IDsinclude/ | +74 | 1 reply | |
| 2/7 | dt-bindings: soc: mediatek: add MMDVFS bindingDocumentation/ Documentation/ | +147 | 3 replies | |
| 3/7 | soc: mediatek: add MMDVFS core driverdrivers/ drivers/ drivers/ +4 more | +1446 | 2 replies | |
| 4/7 | soc: mediatek: mmdvfs: add VCP backenddrivers/ drivers/ drivers/ +6 more | +1846 | 4 replies | |
| 5/7 | soc: mediatek: mmdvfs: add MT8196 supportdrivers/ drivers/ | +638 | 0 replies | |
| 6/7 | soc: mediatek: mmdvfs: add read-only status debugdrivers/ drivers/ | +201 | 0 replies | |
| 7/7 | MAINTAINERS: add MediaTek MMDVFS entryMAINTAINERS | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] soc: mediatek: add MMDVFS support for MT8196
This series adds support for the MediaTek Multimedia Dynamic Voltage and Frequency Scaling (MMDVFS) controller on MT8196. The controller provides virtual clocks for multimedia hardware blocks and coordinates their performance requests with platform voltage resources. The driver aggregates consumer rate requests and programs the MT8196 hardware clock control fabric (HWCCF) voter. Its VCP/MMUP backend coordinates shared memory and IPI communication with firmware.
The series introduces the clock IDs and device tree bindings, followed by the common clock provider, VCP backend and MT8196 topology and voting data. It also adds a read-only debugfs status view and a MAINTAINERS entry.
This series depends on Xiangzhi Tang's MediaTek VCP remoteproc series, which provides the public VCP API used by MMDVFS:
https://lore.kernel.org/r/[email protected]
Patch layout:
1/7: Define the MT8196 MMDVFS clock IDs used by DT consumers. 2/7: Document the common MMDVFS and MT8196 DT bindings. 3/7: Add the common driver, virtual clock provider and vote handling. 4/7: Add the VCP/MMUP shared-memory and IPI backend.
5/7: Add MT8196 topology data and HWCCF voting operations. 6/7: Add a read-only debugfs status view.
7/7: Add the MMDVFS files and contacts to MAINTAINERS.
Validation: the two MMDVFS bindings passed dt_binding_check. Each driver commit built cumulatively with arm64 Clang on top of the VCP dependency. The production changes were also ported to the MT8196 sapphire validation tree, retaining its older VCP API compatibility and separate internal test hooks. Its full package build and board boot passed. The status interface reported initialization with three resource controllers, seven muxes. The user, vote_step and force_step test completed with zero functional failures;
Echo Zhang (7):
dt-bindings: clock: mediatek: add MT8196 MMDVFS clock IDs
dt-bindings: soc: mediatek: add MMDVFS binding
soc: mediatek: add MMDVFS core driver
soc: mediatek: mmdvfs: add VCP backend
soc: mediatek: mmdvfs: add MT8196 support
soc: mediatek: mmdvfs: add read-only status debug
MAINTAINERS: add MediaTek MMDVFS entry
.../soc/mediatek/mediatek,mmdvfs.yaml | 60 + .../soc/mediatek/mediatek,mt8196-mmdvfs.yaml | 87 ++ MAINTAINERS | 11 + drivers/soc/mediatek/Kconfig | 19 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mmdvfs/Makefile | 10 + drivers/soc/mediatek/mmdvfs/mmdvfs-clk.c | 447 +++++++ drivers/soc/mediatek/mmdvfs/mmdvfs-core.c | 651 ++++++++++ drivers/soc/mediatek/mmdvfs/mmdvfs-debug.c | 200 +++ drivers/soc/mediatek/mmdvfs/mmdvfs-internal.h | 361 ++++++ drivers/soc/mediatek/mmdvfs/mmdvfs-mt8196.c | 637 ++++++++++ drivers/soc/mediatek/mmdvfs/mmdvfs-up-priv.h | 57 + drivers/soc/mediatek/mmdvfs/mmdvfs-up.c | 275 +++++ .../soc/mediatek/mmdvfs/mmdvfs-vcp-memory.h | 104 ++ drivers/soc/mediatek/mmdvfs/mmdvfs-vcp.c | 1075 +++++++++++++++++ .../clock/mediatek,mt8196-mmdvfs.h | 74 ++ include/soc/mediatek/mmdvfs.h | 90 ++ 17 files changed, 4159 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.yaml create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8196-mmdvfs.yaml create mode 100644 drivers/soc/mediatek/mmdvfs/Makefile create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-clk.c create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-core.c create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-debug.c create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-internal.h create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-mt8196.c create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-up-priv.h create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-up.c create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-vcp-memory.h create mode 100644 drivers/soc/mediatek/mmdvfs/mmdvfs-vcp.c create mode 100644 include/dt-bindings/clock/mediatek,mt8196-mmdvfs.h create mode 100644 include/soc/mediatek/mmdvfs.h
Signature · 1 line
2.45.2