Skip to content

soc: mediatek: add MMDVFS support for MT8196

Echo Zhang linux-arm-kernel linux-clk linux-devicetree linux-mediatek lkml llvm 1 version NAK

Status from this message: NAK, you are messing with us...

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 10 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/7dt-bindings: clock: mediatek: add MT8196 MMDVFS clock IDsinclude/dt-bindings/clock/mediatek,mt8196-mmdvfs.h+74 -01 reply
2/7dt-bindings: soc: mediatek: add MMDVFS bindingDocumentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.yaml Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8196-mmdvfs.yaml+147 -03 replies
3/7soc: mediatek: add MMDVFS core driverdrivers/soc/mediatek/Kconfig drivers/soc/mediatek/Makefile drivers/soc/mediatek/mmdvfs/Makefile +4 more+1446 -02 replies
4/7soc: mediatek: mmdvfs: add VCP backenddrivers/soc/mediatek/mmdvfs/Makefile drivers/soc/mediatek/mmdvfs/mmdvfs-clk.c drivers/soc/mediatek/mmdvfs/mmdvfs-core.c +6 more+1846 -2044 replies
5/7soc: mediatek: mmdvfs: add MT8196 supportdrivers/soc/mediatek/mmdvfs/Makefile drivers/soc/mediatek/mmdvfs/mmdvfs-mt8196.c+638 -00 replies
6/7soc: mediatek: mmdvfs: add read-only status debugdrivers/soc/mediatek/mmdvfs/Makefile drivers/soc/mediatek/mmdvfs/mmdvfs-debug.c+201 -00 replies
7/7MAINTAINERS: add MediaTek MMDVFS entryMAINTAINERS+11 -00 replies

Reviews trailers per patch

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

Read the v1 thread

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