From: sashiko-bot@kernel.org
To: "Petar Stepanovic" <pstepanovic@axiado.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: gpio: Add Axiado SGPIO controller
Date: Wed, 29 Jul 2026 07:10:41 +0000 [thread overview]
Message-ID: <20260729071041.68CEB1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260729-axiado-ax3000-sgpio-controller-v2-1-976f4ed11438@axiado.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Schema Validation Logic Bug: The `if` condition for `axiado,ax3000-sgpio` incorrectly uses `const` instead of `contains: const`.
--
--- Patch [1]: [PATCH v2 1/2] dt-bindings: gpio: Add Axiado SGPIO controller ---
commit f6cc693f3d06f8cf16f8579009218084ca514b3e
Author: Petar Stepanovic <pstepanovic@axiado.com>
dt-bindings: gpio: Add Axiado SGPIO controller
This commit adds a Devicetree binding for the SGPIO controller found on the
Axiado AX3000 and AX3005 SoCs. The controller operates as a shift-based
interface to multiplex multiple GPIO signals over a small set of physical lines.
> diff --git a/Documentation/devicetree/bindings/gpio/axiado,sgpio.yaml b/Documentation/devicetree/bindings/gpio/axiado,sgpio.yaml
> new file mode 100644
> index 0000000000000..448f01c367dc1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/axiado,sgpio.yaml
[ ... ]
> +allOf:
> + - if:
> + properties:
> + compatible:
> + const: axiado,ax3000-sgpio
[Severity: Medium]
Does this condition correctly match the compatible string?
Since the compatible property is evaluated as an array of strings in the
device tree, using const to match directly against a scalar string will always
evaluate to false.
Because this condition always fails, it allows invalid device tree
configurations to silently pass validation since the ngpios constraint for the
axiado,ax3000-sgpio variant will not be enforced during a dt_binding_check.
Would it be better to use contains: const: axiado,ax3000-sgpio instead?
> + then:
> + properties:
> + ngpios:
> + const: 128
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260729-axiado-ax3000-sgpio-controller-v2-0-976f4ed11438@axiado.com?part=1
next prev parent reply other threads:[~2026-07-29 7:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 7:02 [PATCH v2 0/2] gpio: add support for Axiado SGPIO controller Petar Stepanovic
2026-07-29 7:02 ` [PATCH v2 1/2] dt-bindings: gpio: Add " Petar Stepanovic
2026-07-29 7:10 ` sashiko-bot [this message]
2026-07-29 8:03 ` Krzysztof Kozlowski
2026-07-29 7:02 ` [PATCH v2 2/2] gpio: axiado: add SGPIO controller support Petar Stepanovic
2026-07-29 7:14 ` 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=20260729071041.68CEB1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=pstepanovic@axiado.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