From: sashiko-bot@kernel.org
To: "Bhargav Joshi" <j.bhargav.u@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/2] dt-bindings: spi: ti,davinci-spi: convert to DT schema
Date: Sun, 16 Aug 2026 22:05:22 +0000 [thread overview]
Message-ID: <20260816220522.DD05A1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260817-ti-davinci-spi-v3-2-23844cfb5e6a@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `if` condition matching `compatible` uses a scalar `const: ti,keystone-spi`, which is invalid for an array and will silently fail to match, bypassing the conditional `power-domains` requirement.
--
--- Patch [2]: [PATCH v3 2/2] dt-bindings: spi: ti,davinci-spi: convert to DT schema ---
commit a5efe9443825ce2f7c099e64bba8a83549fd7607
Author: Bhargav Joshi <j.bhargav.u@gmail.com>
dt-bindings: spi: ti,davinci-spi: convert to DT schema
This commit converts the TI DaVinci/Keystone SPI controller binding from text
format to DT schema. It also creates a separate schema for peripheral
properties, adds missing dmas and dma-names properties, and introduces
constraints for the ti,spi-wdelay property.
> diff --git a/Documentation/devicetree/bindings/spi/ti,davinci-spi.yaml b/Documentation/devicetree/bindings/spi/ti,davinci-spi.yaml
> new file mode 100644
> index 0000000000000..5bf74f3ca588f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/ti,davinci-spi.yaml
[ ... ]
> +allOf:
> + - $ref: spi-controller.yaml#
> + - if:
> + properties:
> + compatible:
> + const: ti,keystone-spi
[Severity: Medium]
Will this condition correctly match the compatible string? Since the
compatible property is represented as a JSON array during evaluation, using a
scalar const match will fail silently.
As a result, device trees missing the mandatory power-domains property for
Keystone 2 66AK2G SoCs will pass validation without errors. Should this be
updated to use contains: const: ti,keystone-spi instead?
> + then:
> + required:
> + - power-domains
> +
> +unevaluatedProperties: false
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260817-ti-davinci-spi-v3-0-23844cfb5e6a@gmail.com?part=2
next prev parent reply other threads:[~2026-08-16 22:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-16 21:55 [PATCH v3 0/2] spi: davinci: Convert bindings to DT schema and clean up DTS Bhargav Joshi
2026-08-16 21:55 ` [PATCH v3 1/2] ARM: dts: ti: keystone-k2l: Rename ti,davinci-spi-num-cs to num-cs Bhargav Joshi
2026-08-16 21:55 ` [PATCH v3 2/2] dt-bindings: spi: ti,davinci-spi: convert to DT schema Bhargav Joshi
2026-08-16 22:05 ` sashiko-bot [this message]
2026-08-17 16:33 ` Mark Brown
2026-08-31 13:33 ` Rob Herring
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=20260816220522.DD05A1F000E9@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.