From: sashiko-bot@kernel.org
To: "Paul Cercueil" <paul.cercueil@bootlin.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 1/2] dt-bindings: mailbox: add Marvell MHU
Date: Thu, 03 Dec 2026 16:37:06 +0000 [thread overview]
Message-ID: <sashiko-outbox-248207@kernel.org> (raw)
In-Reply-To: <20261203161314.150563-1-paul.cercueil@bootlin.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] dt-bindings: mailbox: marvell,mhu omits PCI device schema and
conventions
- [Low] dt-bindings: mailbox: marvell,mhu uses family compatibles and
unverified ABI
- [Low] dt-bindings: mailbox: marvell,mhu description refers to driver
and omits CN10K
--
commit 9c1dee079be27e44e0bc7f34f389ec1d5a82dbab
Author: George Cherian <gcherian@marvell.com>
dt-bindings: mailbox: add Marvell MHU
This commit adds a Devicetree binding schema and MAINTAINERS entry for
the Marvell Message Handling Unit mailbox controller.
> diff --git a/Documentation/devicetree/bindings/mailbox/marvell,mhu.yaml b/Documentation/devicetree/bindings/mailbox/marvell,mhu.yaml
> new file mode 100644
> index 0000000000000..d32a02b8442ad
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mailbox/marvell,mhu.yaml
[ ... ]
> + This driver exposes AP-SCP Message Handling Unit to the system, providing
> + the mailbox communication mechanism to the system, with the intention
> + of plugging into the SCMI framework. It is designed to work with Marvell
> + OcteonTX and OcteonTX2-based platforms.
> + The mailbox has no other usage than SCMI communication. In case of
> + configurations running without SCMI support it should be disabled.
[Severity: Low]
Should this description focus on the hardware block rather than driver
behavior and OS policy? writing-bindings.rst asks bindings not to refer
to device drivers or OS configuration.
Both this description and the commit message also omit CN10/CN10K, even
though marvell,cn10-mhu is listed under compatible.
[ ... ]
> +properties:
> + compatible:
> + oneOf:
> + - const: marvell,octeontx-mhu
> + - items:
> + - enum:
> + - marvell,octeontx2-mhu
> + - marvell,cn10-mhu
> + - const: marvell,octeontx-mhu
[Severity: Low]
Should these compatible strings name specific SoC models rather than
entire SoC families? writing-bindings.rst prohibits device-family names
in compatible strings (compare marvell,cn9670-wdt and
marvell,cn10624-wdt in marvell,cn10624-wdt.yaml).
Are marvell,octeontx2-mhu and marvell,cn10-mhu confirmed to be
programming-interface compatible with marvell,octeontx-mhu? The v5
changelog says they are "basically the same thing, or maybe even the
exact same thing", but fallbacks require confirmed compatibility.
[ ... ]
> +additionalProperties: false
> +
> +examples:
> + - |
> + ecam {
> + #address-cells = <3>;
> + #size-cells = <2>;
> +
> + mailbox@1c,0 {
> + compatible = "marvell,octeontx2-mhu", "marvell,octeontx-mhu";
> + reg = <0xe000 0x0 0x0 0 0>;
> + #mbox-cells = <1>;
> + };
> + };
[Severity: Medium]
Since this is a PCI ECAM endpoint device (5-cell PCI reg and @1c,0 unit
address, matching PCI_VDEVICE(CAVIUM, 0xa067) in the driver), should
this schema reference /schemas/pci/pci-device.yaml# via allOf and use
unevaluatedProperties: false instead of additionalProperties: false?
Keeping additionalProperties: false without pci-device.yaml# causes
dtbs_check to reject standard PCI device properties such as
assigned-addresses and skips PCI reg validation.
Should compatible also include the standard IEEE 1275 PCI compatible
pci177d,a067, as other in-tree PCI endpoint bindings such as
nxp,ptp-netc.yaml and fsl,enetc.yaml do?
In the example, naming the parent node ecam and omitting
device_type = "pci" prevents dtc's check_pci_bridge() and
check_pci_device_reg() from validating the example node; PCI bridge
nodes should be named pci or pcie with device_type = "pci".
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203161314.150563-1-paul.cercueil@bootlin.com?part=1
prev parent reply other threads:[~2026-12-03 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 16:13 [PATCH v6 1/2] dt-bindings: mailbox: add Marvell MHU Paul Cercueil
2026-12-03 16:13 ` [PATCH v6 2/2] mailbox: marvell-mhu: add Marvell MHU driver Paul Cercueil
2026-12-03 16:37 ` sashiko-bot [this message]
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-248207@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=paul.cercueil@bootlin.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox