From: sashiko-bot@kernel.org
To: "Echo Zhang" <echo.zhang@mediatek.com>,
devicetree@vger.kernel.org, linux-clk@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/7] dt-bindings: soc: mediatek: add MMDVFS binding
Date: Wed, 25 Nov 2026 06:12:37 +0000 [thread overview]
Message-ID: <sashiko-outbox-232650@kernel.org> (raw)
In-Reply-To: <20261125060037.649659-3-echo.zhang@mediatek.com>
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Low] dt-bindings: soc: mediatek: fixed-length mux-opp-tables lacks
items list
- [Low] dt-bindings: soc: mediatek: redundant word binding in commit
subject
- [Low] dt-bindings: soc: mediatek: undocumented provider nodes in
example
- [Low] dt-bindings: soc: mediatek: #clock-cells ordered after vendor
properties
- [Low] dt-bindings: soc: mediatek: redundant select block and mailing
list maintainer
--
commit 6ff5784de956cad70abff1bec7106c11df1f2345
Author: Echo Zhang <echo.zhang@mediatek.com>
dt-bindings: soc: mediatek: add MMDVFS binding
This commit adds the common MediaTek MMDVFS DT binding schema along with
the MT8196-specific MMDVFS binding for the HWCCF syscon and mux OPP
tables.
> dt-bindings: soc: mediatek: add MMDVFS binding
[Severity: Low]
The "dt-bindings:" prefix already indicates that this patch adds a binding,
so the trailing word "binding" in the subject line is redundant and can be
dropped.
> 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 0000000000000..d65f4c9084cc0
> --- /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@lists.infradead.org>
[ ... ]
> + "#clock-cells":
> + const: 1
> + description:
> + MMDVFS clock specifier. Consumers pass an SoC-specific MMDVFS clock
> + index.
> +
> +required:
> + - mediatek,vcp
> + - "#clock-cells"
[Severity: Low]
Standard properties without vendor prefixes such as "#clock-cells" should
be listed before vendor-specific "mediatek,*" properties in both
properties: and required: (and in the example node in
mediatek,mt8196-mmdvfs.yaml).
> 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 0000000000000..13381c78dbd19
> --- /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@lists.infradead.org>
> +
> +allOf:
> + - $ref: mediatek,mmdvfs.yaml#
> +
> +select:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8196-mmdvfs
> + required:
> + - compatible
[Severity: Low]
Is this explicit select: block needed? dtschema automatically generates an
identical select rule from the compatible property below.
Also, maintainers: in both mediatek,mt8196-mmdvfs.yaml and
mediatek,mmdvfs.yaml lists a mailing list rather than the individual
maintainer(s) responsible for the binding.
> +
> +properties:
> + compatible:
> + enum:
> + - mediatek,mt8196-mmdvfs
> +
> + mediatek,hwccf:
> + $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
> + 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.
[Severity: Low]
Since mediatek,mux-opp-tables has a fixed set of seven ordered entries,
could it define an items: list with a per-entry description for each mux
instead of using minItems/maxItems and enumerating the entries and count in
the description text?
> +
> +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@31800000 {
> + compatible = "mediatek,mt8196-vcp";
> + reg = <0 0x31800000 0 0x100000>;
> + };
> +
> + mm_hwv: syscon@31b00000 {
> + compatible = "mediatek,mt8196-mm-hwv", "syscon";
> + reg = <0 0x31b00000 0 0x6000>;
> + };
> +
> + mmdvfs_opp: opp-table {
> + compatible = "operating-points-v2";
> + opp-0 {
> + opp-hz = /bits/ 64 <100000000>;
> + opp-level = <0>;
> + };
> + };
> +
> + mmdvfs: mmdvfs-mux {
> + 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>;
> + };
> + };
[Severity: Low]
Does this example pass make dt_binding_check?
The remoteproc@31800000 and syscon@31b00000 provider nodes use undocumented
compatibles ("mediatek,mt8196-vcp" and "mediatek,mt8196-mm-hwv"), causing
syscon.yaml validation to fail on syscon@31b00000. Phandles in examples do
not need to be resolvable, so those unrelated provider nodes (and the outer
soc wrapper) can be dropped.
In addition, <dt-bindings/clock/mediatek,mt8196-mmdvfs.h> and the "mmdvfs:"
label on mmdvfs-mux are unused, and DTS coding style requires a blank line
before the opp-0 child node.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125060037.649659-1-echo.zhang@mediatek.com?part=2
next prev parent reply other threads:[~2026-11-25 6:12 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 6:00 [PATCH 0/7] soc: mediatek: add MMDVFS support for MT8196 Echo Zhang
2026-11-25 6:00 ` [PATCH 1/7] dt-bindings: clock: mediatek: add MT8196 MMDVFS clock IDs Echo Zhang
2026-11-25 6:13 ` sashiko-bot
2026-11-25 10:55 ` Krzysztof Kozlowski
2026-11-25 6:00 ` [PATCH 2/7] dt-bindings: soc: mediatek: add MMDVFS binding Echo Zhang
2026-11-25 6:12 ` sashiko-bot [this message]
2026-11-25 8:32 ` Roman Vivchar
2026-11-25 10:58 ` Krzysztof Kozlowski
2026-11-25 11:58 ` Krzysztof Kozlowski
2026-11-27 3:05 ` CK Hu (胡俊光)
2026-11-25 6:00 ` [PATCH 3/7] soc: mediatek: add MMDVFS core driver Echo Zhang
2026-11-25 6:18 ` sashiko-bot
2026-11-25 8:35 ` Roman Vivchar
2026-11-25 10:54 ` Krzysztof Kozlowski
2026-11-25 6:00 ` [PATCH 4/7] soc: mediatek: mmdvfs: add VCP backend Echo Zhang
2026-11-25 6:21 ` sashiko-bot
2026-11-25 8:38 ` Roman Vivchar
2026-11-25 10:59 ` Krzysztof Kozlowski
2026-11-25 11:00 ` Krzysztof Kozlowski
2026-11-25 14:32 ` Ben Grisdale
2026-11-27 2:58 ` Echo Zhang (张玉)
2026-11-25 6:00 ` [PATCH 5/7] soc: mediatek: mmdvfs: add MT8196 support Echo Zhang
2026-11-25 6:15 ` sashiko-bot
2026-11-25 6:00 ` [PATCH 6/7] soc: mediatek: mmdvfs: add read-only status debug Echo Zhang
2026-11-25 6:00 ` [PATCH 7/7] MAINTAINERS: add MediaTek MMDVFS entry Echo Zhang
-- strict thread matches above, loose matches on Subject: below --
2026-11-26 9:13 [PATCH 2/7] dt-bindings: soc: mediatek: add MMDVFS binding Echo Zhang (张玉)
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=sashiko-outbox-232650@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=echo.zhang@mediatek.com \
--cc=linux-clk@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.