Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Xing Loong" <xing.xl.loong@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 2/3] dt-bindings: firmware: add mbedtee,tee binding
Date: Thu, 02 Jul 2026 15:21:33 +0000	[thread overview]
Message-ID: <20260702152133.86C7B1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260702151115.544016-3-xing.xl.loong@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The `memory-region-names` property incorrectly defines `items` as an object instead of an array of schemas.
- [Low] The provided DT binding examples contain malformed root-level nodes that will cause `dt_binding_check` to fail.
--

commit 5f6618bd551455752fa4251daab79dbc393c89d6
Author: Xing Loong <xing.xl.loong@gmail.com>

dt-bindings: firmware: add mbedtee,tee binding

This commit introduces a new device tree binding for MbedTEE, a Trusted
Execution Environment for embedded systems. It supports both ARM/AArch64
using SMC and RISC-V using IMSIC configurations, communicating via shared
memory ring buffers.

> diff --git a/Documentation/devicetree/bindings/firmware/mbedtee,tee.yaml b/Documentation/devicetree/bindings/firmware/mbedtee,tee.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/firmware/mbedtee,tee.yaml

[ ... ]

> +  memory-region-names:
> +    minItems: 2
> +    maxItems: 3
> +    items:
> +      enum:
> +        - t2r-ring
> +        - t2r-shm
> +        - r2t-ring

[Severity: Low]
Does this items definition violate the dt-schema constraints for properties
ending in -names?

dt-schema typically requires an array of schemas for items to enforce strict
sequence order, rather than an enum object. This could cause make
dt_binding_check to fail against the core meta-schema.

[ ... ]

> +examples:
> +  - |
> +    /* ARM TrustZone (SMC) */
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +    firmware {
> +      mbedtee {
> +        compatible = "mbedtee,tee";
> +        interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
> +        memory-region = <&mbedtee_t2r_ring>, <&mbedtee_t2r_shm>;
> +        memory-region-names = "t2r-ring", "t2r-shm";
> +      };
> +    };
> +
> +    /* memory-region phandle targets */
> +    mbedtee_t2r_ring: t2r-ring {};
> +    mbedtee_t2r_shm: t2r-shm {};

[Severity: Low]
Will placing these memory region nodes at the root level instead of inside a
reserved-memory node cause dt_binding_check to reject the example?

The root node schema typically rejects arbitrary children lacking compatible
strings.

[ ... ]

> +    /* msi-parent phandle target */
> +    imsic: imsic {
> +      msi-controller;
> +      #msi-cells = <0>;
> +    };

[Severity: Low]
Can this dummy node cause schema validation failures?

It lacks a compatible string and is placed directly at the root level, which
dt-schema usually flags as malformed.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260702151115.544016-1-xing.xl.loong@gmail.com?part=2

  reply	other threads:[~2026-07-02 15:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-01 13:25 [PATCH 0/3] tee: add MbedTEE driver Xing Loong
2026-07-01 13:25 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add mbedtee Xing Loong
2026-07-01 13:25 ` [PATCH 2/3] dt-bindings: firmware: add mbedtee,rpc binding Xing Loong
2026-07-01 13:32   ` sashiko-bot
2026-07-01 14:05   ` Krzysztof Kozlowski
2026-07-01 16:39   ` Rob Herring (Arm)
2026-07-01 13:25 ` [PATCH 3/3] tee: add MbedTEE driver Xing Loong
2026-07-01 13:42   ` sashiko-bot
2026-07-02 15:11 ` [PATCH v2 0/3] " Xing Loong
2026-07-02 15:11   ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add mbedtee Xing Loong
2026-07-02 15:11   ` [PATCH v2 2/3] dt-bindings: firmware: add mbedtee,tee binding Xing Loong
2026-07-02 15:21     ` sashiko-bot [this message]
2026-07-02 15:27     ` Krzysztof Kozlowski
2026-07-02 15:11   ` [PATCH v2 3/3] tee: add MbedTEE driver Xing Loong
2026-07-02 15:32     ` sashiko-bot

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=20260702152133.86C7B1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=xing.xl.loong@gmail.com \
    /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