Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bhargav Joshi" <j.bhargav.u@gmail.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] dt-bindings: arm: ti,omap-mpu: Convert to DT schema
Date: Tue, 18 Aug 2026 18:09:54 +0000	[thread overview]
Message-ID: <20260818180954.CC5081F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260818-ti-mpu-v1-1-5b1c71a34669@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `sram` property in the DT schema is missing a `maxItems: 1` constraint, allowing an unbounded number of phandles.
--

--- Patch [1]: [PATCH] dt-bindings: arm: ti,omap-mpu: Convert to DT schema ---
commit 999724263c1ab03e517bff5216bcbf149a14a6a9
Author: Bhargav Joshi <j.bhargav.u@gmail.com>
Date:   Tue Aug 18 17:59:51 2026 +0000

dt-bindings: arm: ti,omap-mpu: Convert to DT schema

Convert TI OMAP Main Processor Unit MPU text to DT schema. This conversion
marks ti,hwmods as deprecated and preserves the existing pm-sram property
name to maintain backward compatibility.

> diff --git a/Documentation/devicetree/bindings/arm/ti/ti,omap-mpu.yaml b/Documentation/devicetree/bindings/arm/ti/ti,omap-mpu.yaml
> new file mode 100644
> index 0000000000000..abd8c64e8e9f7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/ti/ti,omap-mpu.yaml
> @@ -0,0 +1,58 @@

[ ... ]

> +  ti,hwmods:
> +    $ref: /schemas/types.yaml#/definitions/string
> +    description: Name of the hwmod associated with the MPU
> +    const: mpu
> +    deprecated: true
> +
> +  sram:
> +    description: ocmcram node
> +

[Severity: Low]
Does the sram property need a maxItems: 1 constraint here?

Without it, the device tree schema validator can allow an unbounded number of
phandles to be specified. Since the original binding indicated a single phandle
for the ocmcram node, adding maxItems: 1 would ensure dtbs_check correctly
rejects invalid device trees with multiple sram phandles.

> +  pm-sram:
> +    $ref: /schemas/types.yaml#/definitions/phandle-array

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260818-ti-mpu-v1-1-5b1c71a34669@gmail.com?part=1

      reply	other threads:[~2026-08-18 18:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18 17:59 [PATCH] dt-bindings: arm: ti,omap-mpu: Convert to DT schema Bhargav Joshi
2026-08-18 18:09 ` 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=20260818180954.CC5081F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=j.bhargav.u@gmail.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