Re: [PATCH 2/7] dt-bindings: soc: mediatek: add MMDVFS binding

From: Roman Vivchar

Date: Wed Nov 25 2026 - 03:32:38 EST


Hi,

On Wednesday, November 25th, 2026 at 8:01 AM, Echo Zhang <echo.zhang@xxxxxxxxxxxx> wrote:

> Describe the MMDVFS clock provider and its connection to VCP firmware
> in a common binding. Document the optional MMUP shared memory and IPI
> settings used by the firmware backend.
>
> Add an MT8196 binding for the HWCCF syscon and seven mux OPP tables so
> the driver can map clock rate requests to hardware votes.
>
> Signed-off-by: Echo Zhang <echo.zhang@xxxxxxxxxxxx>
> ---
> .../soc/mediatek/mediatek,mmdvfs.yaml | 60 +++++++++++++
> .../soc/mediatek/mediatek,mt8196-mmdvfs.yaml | 87 +++++++++++++++++++
> 2 files changed, 147 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.yaml
> create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8196-mmdvfs.yaml
>
> diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.yaml
> new file mode 100644
> index 000000000000..d65f4c9084cc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.yaml
> @@ -0,0 +1,60 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/mediatek/mediatek,mmdvfs.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MediaTek Multimedia Dynamic Voltage and Frequency Scaling (MMDVFS)
> +
> +maintainers:
> + - MediaTek MMDVFS Team <linux-mediatek@xxxxxxxxxxxxxxxxxxx>

Maintainers should be real people, not a mailing list.

> +
> +description:
> + MediaTek MMDVFS provides dynamic voltage and frequency scaling for multimedia
> + hardware accelerators. The controller exposes virtual clocks that multimedia
> + consumers use through the common clock framework. The driver aggregates
> + consumer rate requests and sends the resulting DVFS votes to the multimedia
> + hardware voter and VCP firmware.
> +
> +select: false
> +
> +properties:
> + mediatek,vcp:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description:
> + Phandle to the MediaTek VCP remote processor used for MMDVFS shared
> + memory, feature registration, notifier, and IPI operations.
> +
> + mediatek,mmup-sram:
> + type: boolean
> + description:
> + Use the MMUP SRAM window for MMDVFS callback records and status data.
> +
> + mediatek,mmup-enable:
> + type: boolean
> + description:
> + Enable the MMUP path for MMDVFS shared memory and IPI handling.
> +
> + mediatek,vcp-ipi-id:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + VCP IPI channel id for MMDVFS. If omitted, the driver uses the platform
> + default.
> +
> + mediatek,mmup-ipi-id:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + MMUP IPI channel id for MMDVFS. If omitted, the driver uses the platform
> + default.
> +
> + "#clock-cells":
> + const: 1
> + description:
> + MMDVFS clock specifier. Consumers pass an SoC-specific MMDVFS clock
> + index.
> +
> +required:
> + - mediatek,vcp
> + - "#clock-cells"
> +
> +additionalProperties: true
> diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8196-mmdvfs.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8196-mmdvfs.yaml
> new file mode 100644
> index 000000000000..13381c78dbd1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8196-mmdvfs.yaml
> @@ -0,0 +1,87 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/mediatek/mediatek,mt8196-mmdvfs.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MediaTek MT8196 Multimedia Dynamic Voltage and Frequency Scaling

Why there's mediatek,mmdvfs.yaml file if this exists?

> +
> +maintainers:
> + - MediaTek MMDVFS Team <linux-mediatek@xxxxxxxxxxxxxxxxxxx>
> +
> +allOf:
> + - $ref: mediatek,mmdvfs.yaml#
> +
> +select:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8196-mmdvfs
> + required:
> + - compatible

Drop. select is automatically inferred from the compatible.

Best regards,
Roman