From: sashiko-bot@kernel.org
To: "Bhargav Joshi" <j.bhargav.u@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: iommu: ti,omap-iommu: Convert to DT schema
Date: Tue, 07 Jul 2026 20:50:37 +0000 [thread overview]
Message-ID: <20260707205037.9B9811F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260708-ti-omap-iommu-v1-1-48cfc53aaa46@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The `ti,syscon-mmuconfig` property allows an unbounded number of phandle-args pairs instead of exactly one pair.
- [Low] The default value for `ti,#tlb-entries` was lost during the text-to-YAML conversion.
--
--- Patch [1]: [PATCH] dt-bindings: iommu: ti,omap-iommu: Convert to DT schema ---
commit 2b3347ad9c4854330b15c49c45269b76eeec7cd3
Author: Bhargav Joshi <j.bhargav.u@gmail.com>
dt-bindings: iommu: ti,omap-iommu: Convert to DT schema
Convert Texas Instruments OMAP2+ IOMMU from text to DT schema. Make the
'ti,hwmods' property optional and mark it deprecated as it is no longer
used, it is kept to support legacy dtbs.
> diff --git a/Documentation/devicetree/bindings/iommu/ti,omap-iommu.yaml b/Documentation/devicetree/bindings/iommu/ti,omap-iommu.yaml
> new file mode 100644
> index 0000000000000..c23156b9b3126
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iommu/ti,omap-iommu.yaml
> @@ -0,0 +1,112 @@
[ ... ]
> + '#iommu-cells':
> + const: 0
> +
> + ti,#tlb-entries:
> + description: Number of entries in the translation look-aside buffer.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [8, 32]
[Severity: Low]
The original text binding stated "(default: 32)" for this property. Should we
add `default: 32` here to preserve that information in the schema?
> +
> + ti,iommu-bus-err-back:
> + description:
> + Indicates the IOMMU instance supports throwing back a bus error response
> + on MMU faults.
> + type: boolean
> +
> + ti,syscon-mmuconfig:
> + description:
> + Pair of the phandle to the DSP_SYSTEM syscon node that
> + contains the additional control register for enabling the MMU, and the
> + MMU instance number (0-indexed) within the sub-system. The instance number
> + should be 0 for DSP MDMA MMUs and 1 for DSP EDMA MMUs.
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + items:
> + items:
> + - description: phandle to the DSP_SYSTEM syscon node
> + - description: MMU instance number
> + enum: [0, 1]
[Severity: Low]
Does this schema allow an unbounded number of phandle-args pairs?
Without a `maxItems: 1` constraint on the outer property (or using a list
constraint for the outer `items`), could a device tree with multiple pairs
(e.g., `<&sys1 0>, <&sys2 1>`) silently pass validation even though the text
binding implies only a single pair is expected?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260708-ti-omap-iommu-v1-1-48cfc53aaa46@gmail.com?part=1
prev parent reply other threads:[~2026-07-07 20:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 20:43 [PATCH] dt-bindings: iommu: ti,omap-iommu: Convert to DT schema Bhargav Joshi
2026-07-07 20:50 ` 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=20260707205037.9B9811F000E9@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 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.