All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Shaunak Datar" <shaunakkdatar@gmail.com>
Cc: devicetree@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org,
	conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH] dt-bindings: mfd: atmel,at91sam9260-smc: Convert to DT schema
Date: Fri, 04 Dec 2026 21:41:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-250708@kernel.org> (raw)
In-Reply-To: <20261204213115.366227-1-shaunakkdatar@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: mfd: list clocks before interrupts in
  at91sam9260-smc schema
- [Low] dt-bindings: mfd: require HSMC properties for sama5d2/sama5d3
  SMC variants
--

commit d92963d3fbeffd353c3324e4b88214ffe84f51da
Author: Shaunak Datar <shaunakkdatar@gmail.com>

dt-bindings: mfd: atmel,at91sam9260-smc: Convert to DT schema

This patch converts the legacy Atmel SMC text binding to DT schema YAML
and documents the HSMC properties and child node used on SAMA5 SoCs.

> diff --git a/Documentation/devicetree/bindings/mfd/atmel,at91sam9260-smc.yaml b/Documentation/devicetree/bindings/mfd/atmel,at91sam9260-smc.yaml
> new file mode 100644
> index 0000000000000..1c439b7081e03
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/atmel,at91sam9260-smc.yaml
> @@ -0,0 +1,105 @@

[ ... ]

> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1

[Severity: Low]
Should clocks be listed before interrupts here, in the allOf block, and
in the smc@ffffc000 example?

DT binding schemas and DTS examples follow the canonical order of
compatible, reg, clocks, interrupts.

[ ... ]

> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: atmel,at91sam9260-smc
> +    then:
> +      properties:
> +        interrupts: false
> +        clocks: false
> +        "#address-cells": false
> +        "#size-cells": false
> +        ranges: false
> +      patternProperties:
> +        "^ecc-engine@[0-9a-f]+$": false

[Severity: Low]
Should this allOf conditional include an else branch requiring clocks,
interrupts, #address-cells, #size-cells, and ranges for the SAMA5
variants?

Without it, atmel,sama5d2-smc and atmel,sama5d3-smc nodes missing these
properties still pass dtbs_check, even though they require simple-mfd and
atmel_hsmc_nand_controller_init() fails probe with -ENXIO if the
interrupt is absent.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204213115.366227-1-shaunakkdatar@gmail.com?part=1

  reply	other threads:[~2026-12-04 21:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 21:31 [PATCH] dt-bindings: mfd: atmel,at91sam9260-smc: Convert to DT schema Shaunak Datar
2026-12-04 21:41 ` sashiko-bot [this message]
2026-12-05 14:21 ` Krzysztof Kozlowski

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-250708@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=shaunakkdatar@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 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.