From: "Echo Zhang (张玉)" <Echo.Zhang@mediatek.com>
To: Roman Vivchar <rva333@protonmail.com>
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Brian Masney" <bmasney+clk@redhat.com>,
"Jerome Brunet" <jbrunet+clk@baylibre.com>,
"Nathan Chancellor" <nathan@kernel.org>,
"Nick Desaulniers" <ndesaulniers@google.com>,
"Bill Wendling" <morbo@google.com>,
"Justin Stitt" <justinstitt@google.com>,
"MMDVFS Team" <linux-mediatek@lists.infradead.org>,
"Kyrie Wu (吴晗)" <Kyrie.Wu@mediatek.com>,
"Ming-Fan Chen (陳明汎)" <Ming-Fan.Chen@mediatek.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"llvm@lists.linux.dev" <llvm@lists.linux.dev>
Subject: Re: [PATCH 2/7] dt-bindings: soc: mediatek: add MMDVFS binding
Date: Thu, 26 Nov 2026 09:13:07 +0000 [thread overview]
Message-ID: <6c33b0f27fba0d5fb3c200dc9aecd1acebc83efa.camel@mediatek.com> (raw)
On 三, 2026-11-25 at 08:32 +0000, Roman Vivchar wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> Hi,
>
> On Wednesday, November 25th, 2026 at 8:01 AM, Echo Zhang
> <echo.zhang@mediatek.com> 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@mediatek.com>
> > ---
> > .../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.ya
> > ml
> > b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.ya
> > ml
> > new file mode 100644
> > index 000000000000..d65f4c9084cc
> > --- /dev/null
> > +++
> > b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mmdvfs.ya
> > ml
> > @@ -0,0 +1,60 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id:
> > https://urldefense.com/v3/__http://devicetree.org/schemas/soc/mediatek/mediatek,mmdvfs.yaml*__;Iw!!CTRNKA9wMg0ARbw!n7lWIzlOD5PGrwBV4ZmwXlYbDgI7RQI1BH_918VY_uKaFBB9d7yW3-iSfObuTmgmJZMABRAWn1txHv2p-im9$
> > +$schema:
> > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!n7lWIzlOD5PGrwBV4ZmwXlYbDgI7RQI1BH_918VY_uKaFBB9d7yW3-iSfObuTmgmJZMABRAWn1txHm-gjpPT$
> > +
> > +title: MediaTek Multimedia Dynamic Voltage and Frequency Scaling
> > (MMDVFS)
> > +
> > +maintainers:
> > + - MediaTek MMDVFS Team <linux-mediatek@lists.infradead.org>
>
> 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:
> > https://urldefense.com/v3/__http://devicetree.org/schemas/soc/mediatek/mediatek,mt8196-mmdvfs.yaml*__;Iw!!CTRNKA9wMg0ARbw!n7lWIzlOD5PGrwBV4ZmwXlYbDgI7RQI1BH_918VY_uKaFBB9d7yW3-iSfObuTmgmJZMABRAWn1txHvsHrX-1$
> > +$schema:
> > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!n7lWIzlOD5PGrwBV4ZmwXlYbDgI7RQI1BH_918VY_uKaFBB9d7yW3-iSfObuTmgmJZMABRAWn1txHm-gjpPT$
> > +
> > +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@lists.infradead.org>
> > +
> > +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
Hi Roman,
Thank you for the review. I will replace the mailing list in the
maintainers fields with an individual maintainer in v2.
I added the common schema for properties that might be shared by future
SoCs, but this series only supports MT8196. That split is premature. I
will revisit the DT representation in light of the other binding
feedback and, if a separate binding remains justified, use a single
schema for this series. I will also drop the explicit select block;
the compatible already provides it.
Thanks,
Echo
next reply other threads:[~2026-11-26 9:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 9:13 Echo Zhang (张玉) [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-25 6:00 [PATCH 0/7] soc: mediatek: add MMDVFS support for MT8196 Echo Zhang
2026-11-25 6:00 ` [PATCH 2/7] dt-bindings: soc: mediatek: add MMDVFS binding Echo Zhang
2026-11-25 6:12 ` sashiko-bot
2026-11-25 8:32 ` Roman Vivchar
2026-11-25 10:58 ` Krzysztof Kozlowski
2026-11-25 11:58 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6c33b0f27fba0d5fb3c200dc9aecd1acebc83efa.camel@mediatek.com \
--to=echo.zhang@mediatek.com \
--cc=Kyrie.Wu@mediatek.com \
--cc=Ming-Fan.Chen@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=justinstitt@google.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=matthias.bgg@gmail.com \
--cc=morbo@google.com \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=robh@kernel.org \
--cc=rva333@protonmail.com \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox