Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bhargav Joshi" <j.bhargav.u@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 2/3] dt-bindings: bus: ti,omap3-l3-smx: Convert to DT schema
Date: Thu, 12 Nov 2026 18:08:54 +0000	[thread overview]
Message-ID: <sashiko-outbox-211666@kernel.org> (raw)
In-Reply-To: <20261112-ti-l3-noc-v3-2-7281b1af8030@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: bus: ti,omap3-l3-smx: non-canonical property order
  and example
--

commit 1d6cabb054788aa85ea27e9a6e910d618ff518a6
Author: Bhargav Joshi <j.bhargav.u@gmail.com>

dt-bindings: bus: ti,omap3-l3-smx: Convert to DT schema

This commit splits the TI OMAP3 L3 SMX interconnect binding out of
Documentation/devicetree/bindings/arm/omap/l3-noc.txt and converts it to a DT
schema under Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml.

> diff --git a/Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml b/Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml
> new file mode 100644
> index 0000000000000..11f0ebb0cdfc2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml

[ ... ]

> +properties:
> +  compatible:
> +    items:
> +      - const: ti,omap3-l3-smx
> +      - const: simple-bus
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    items:
> +      - description: l3-dbg-irq
> +      - description: l3-app-irq
> +
> +  ti,hwmods:
> +    description: hwmod names for each domain.
> +    $ref: /schemas/types.yaml#/definitions/string
> +    const: l3_main
> +    deprecated: true
> +
> +  "#address-cells":
> +    const: 1
> +
> +  "#size-cells":
> +    const: 1
> +
> +  ranges: true
> +
> +patternProperties:
> +  "^.*@[0-9a-f]+$":
> +    type: object
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - "#address-cells"
> +  - "#size-cells"
> +  - ranges
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    l3-noc@68000000 {
> +        compatible = "ti,omap3-l3-smx", "simple-bus";
> +        reg = <0x68000000 0x10000>;
> +        #address-cells = <1>;
> +        #size-cells = <1>;
> +        ranges;
> +        interrupts = <9>, <10>;
> +        ti,hwmods = "l3_main";
> +    };

[Severity: Low]
Does the example pass scripts/dtc/dt-check-style --mode=strict?

Placing ranges after #address-cells and #size-cells in the example triggers a
[property-order] warning from scripts/dtc/dt-check-style --mode=strict, as
Documentation/devicetree/bindings/dts-coding-style.rst orders properties as
compatible, reg, ranges, standard/common properties, and then vendor-specific
properties.  Per Documentation/devicetree/bindings/writing-schema.rst, the
properties and required sections should follow this same order (moving ranges
right after reg, and moving the vendor-specific ti,hwmods to the end of
properties).

Also, in the example, should the node name be a generic name such as
bus@68000000 (instead of l3-noc@68000000, which refers to the OMAP4+ Arteris
NoC) and omit the deprecated ti,hwmods property?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261112-ti-l3-noc-v3-0-7281b1af8030@gmail.com?part=2

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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12 17:51 [PATCH v3 0/3] dt-bindings: bus: omap-l3: Convert to DT schema Bhargav Joshi
2026-11-12 17:51 ` [PATCH v3 1/3] ARM: dts: omap36xx: Add unit address to ABB regulator node Bhargav Joshi
2026-11-12 17:51 ` [PATCH v3 2/3] dt-bindings: bus: ti,omap3-l3-smx: Convert to DT schema Bhargav Joshi
2026-11-12 18:08   ` sashiko-bot [this message]
2026-11-12 17:51 ` [PATCH v3 3/3] dt-bindings: bus: ti,omap-l3-noc: " Bhargav Joshi

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-211666@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