All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Evan Zane" <evan.zean@fastmail.com>, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [RFC PATCH 1/3] dt-bindings: arm: novatek: Add NA51089 SoC
Date: Wed, 02 Dec 2026 16:22:23 +0000	[thread overview]
Message-ID: <sashiko-outbox-246203@kernel.org> (raw)
In-Reply-To: <5a6937ccf3c1e10a1dec7e80347545867b66a3b4.1796227386.git.evan.zean@fastmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: arm: novatek: root compatible uses contains
  without board items
--

commit 1ff0d5d16f8c995386e6b5b45a93fb9a6570bdc2
Author: Evan Zane <evan.zean@fastmail.com>

dt-bindings: arm: novatek: Add NA51089 SoC

This commit adds the root-node Device Tree binding schema for the Novatek
NA51089 SoC and its MAINTAINERS entry.

> diff --git a/Documentation/devicetree/bindings/arm/novatek.yaml b/Documentation/devicetree/bindings/arm/novatek.yaml
> new file mode 100644
> index 0000000000000..6a50c5d7b10a8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/novatek.yaml
> @@ -0,0 +1,27 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/arm/novatek.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Novatek NA51089 SoC
> +
> +maintainers:
> +  - Evan Zane <evan.zean@fastmail.com>
> +
> +description:
> +  The Novatek NA51089 SoC combines an ARM Cortex-A9 processor with integrated
> +  peripheral controllers.
> +
> +properties:
> +  $nodename:
> +    const: '/'
> +
> +  compatible:
> +    contains:
> +      const: novatek,na51089

[Severity: Medium]
Should properties.compatible define an ordered items list pairing the
board compatible string(s) with novatek,na51089 instead of using contains?

Using contains only checks that novatek,na51089 appears somewhere in the
root node's compatible list without bounding its length or order.  As a
result, dtbs_check does not validate board compatibles and silently
accepts undocumented board strings, reversed board/SoC ordering, or a bare
SoC compatible on the root node.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796227386.git.evan.zean@fastmail.com?part=1

  reply	other threads:[~2026-12-02 16:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 16:15 [RFC PATCH 0/3] ARM: Add initial support for the Novatek NA51089 SoC Evan Zane
2026-12-02 16:15 ` [RFC PATCH 1/3] dt-bindings: arm: novatek: Add " Evan Zane
2026-12-02 16:22   ` sashiko-bot [this message]
2026-12-02 16:15 ` [RFC PATCH 2/3] arm: novatek: Add NA51089 SoC support Evan Zane
2026-12-02 16:15 ` [RFC PATCH 3/3] arm: dts: novatek: Add NA51089 SoC Evan Zane
2026-12-02 16:22   ` sashiko-bot

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-246203@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=evan.zean@fastmail.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.