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

Krzysztof Kozlowski krzk at kernel.org
Wed Nov 25 02:58:04 PST 2026


On 25/11/2026 07:00, Echo Zhang wrote:
> +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

What?

> +
> +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
> +
> +maintainers:
> +  - MediaTek MMDVFS Team <linux-mediatek at lists.infradead.org>
> +
> +allOf:
> +  - $ref: mediatek,mmdvfs.yaml#

What?

> +
> +select:
> +  properties:
> +    compatible:
> +      contains:
> +        enum:
> +          - mediatek,mt8196-mmdvfs
> +  required:
> +    - compatible

What?

> +
> +properties:
> +  compatible:
> +    enum:
> +      - mediatek,mt8196-mmdvfs
> +
> +  mediatek,hwccf:

clock control is via clocks, no?


> +    $ref: /schemas/types.yaml#/definitions/phandle
> +    description:
> +      Phandle to the MT8196 multimedia hardware clock control fabric syscon
> +      used for AP-side hardware votes.
> +
> +  mediatek,mux-opp-tables:
> +    $ref: /schemas/types.yaml#/definitions/phandle-array

NAK, you are messing with us...

> +    minItems: 7
> +    maxItems: 7
> +    description: |
> +      OPP tables for the seven MT8196 MMDVFS muxes, in this order:
> +      display, MDP, SMI, VENC, VDEC, IMG, CAM. MDP and MML share
> +      the MDP mux. Each OPP entry must have opp-hz and opp-level.
> +
> +required:
> +  - compatible
> +  - mediatek,hwccf
> +  - mediatek,mux-opp-tables
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/clock/mediatek,mt8196-mmdvfs.h>
> +
> +    soc {
> +        #address-cells = <2>;
> +        #size-cells = <2>;
> +
> +        vcp: remoteproc at 31800000 {
> +            compatible = "mediatek,mt8196-vcp";
> +            reg = <0 0x31800000 0 0x100000>;
> +        };
> +
> +        mm_hwv: syscon at 31b00000 {
> +            compatible = "mediatek,mt8196-mm-hwv", "syscon";
> +            reg = <0 0x31b00000 0 0x6000>;
> +        };
> +

What are all these nodes? Drop.

> +        mmdvfs_opp: opp-table {
> +            compatible = "operating-points-v2";
> +            opp-0 {
> +                opp-hz = /bits/ 64 <100000000>;
> +                opp-level = <0>;
> +            };
> +        };
> +
> +        mmdvfs: mmdvfs-mux {

Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
If you cannot find a name matching your device, please check in kernel
sources for similar cases or you can grow the spec (via pull request to
DT spec repo).

Honestly, not a separate device. You just added it for Linux drivers.

NAK for entire binding.

> +            compatible = "mediatek,mt8196-mmdvfs";
> +            mediatek,vcp = <&vcp>;
> +            mediatek,hwccf = <&mm_hwv>;
> +            mediatek,mux-opp-tables = <&mmdvfs_opp>, <&mmdvfs_opp>,
> +                                      <&mmdvfs_opp>, <&mmdvfs_opp>,
> +                                      <&mmdvfs_opp>, <&mmdvfs_opp>,
> +                                      <&mmdvfs_opp>;
> +            #clock-cells = <1>;
> +        };
> +    };


Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list