From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH v6 1/3] dt-bindings: input: touchscreen: st,stmfts: Introduce STM FTS5
Date: Sun, 06 Sep 2026 16:40:16 +0000 [thread overview]
Message-ID: <20260906164016.773C01F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260906-stmfts5-v6-1-50fbf6af8718@ixit.cz>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The `if` condition matching the `compatible` property against `st,stmfts5` incorrectly uses `const` instead of `contains: const`, breaking the conditional logic and improperly forbidding `mode-switch-gpios` for the new variant.
- [Medium] The patch contains undocumented modifications to the existing `st,stmfts` device tree example and file structure.
--
commit b15460ebf5a9b2a2c1695b3d9fb6f5007a3c46e1
Author: David Heidelberg <david@ixit.cz>
dt-bindings: input: touchscreen: st,stmfts: Introduce STM FTS5
Introduce more recent STM FTS5 touchscreen support.
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml
> index 64c4f24ea3dd0..3de4bc5cd3f78 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml
> +++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml
[ ... ]
> @@ -51,6 +54,17 @@ required:
> - interrupts
> - vdd-supply
>
> +allOf:
> + - $ref: touchscreen.yaml#
> + - if:
> + not:
> + properties:
> + compatible:
> + const: st,stmfts5
[Severity: Medium]
In Device Tree json-schema representation, the compatible property evaluates
as an array of strings. Does this use of const: instead of contains: const:
incorrectly compare the array to a single string?
Since the comparison would always evaluate to false, the not condition negates
this to true, which means the then clause is always applied. This appears to
incorrectly enforce mode-switch-gpios: false for all devices, breaking the
schema validation for the new st,stmfts5 variant.
> + then:
> + properties:
> + mode-switch-gpios: false
> +
> unevaluatedProperties: false
>
> examples:
> @@ -64,10 +78,9 @@ examples:
> touchscreen@49 {
> compatible = "st,stmfts";
> reg = <0x49>;
> - interrupt-parent = <&gpa1>;
> - interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
> - touchscreen-size-x = <1599>;
> - touchscreen-size-y = <2559>;
> + interrupts-extended = <&gpa1 1 IRQ_TYPE_LEVEL_LOW>;
> + touchscreen-size-x = <1600>;
> + touchscreen-size-y = <2560>;
[Severity: Medium]
Are these modifications to the existing st,stmfts example and the earlier
restructuring of the allOf block missing from the commit message?
The commit message explicitly states only that it introduces STM FTS5
touchscreen support. While migrating to interrupts-extended and changing the
touchscreen size might be valid cleanups, they are undocumented side-effects
and likely should be explicitly mentioned in the commit message to justify
the changes.
> touch-key-connected;
> avdd-supply = <&ldo30_reg>;
> vdd-supply = <&ldo31_reg>;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260906-stmfts5-v6-0-50fbf6af8718@ixit.cz?part=1
next prev parent reply other threads:[~2026-09-06 16:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-06 16:33 [PATCH v6 0/3] Input: support for STM FTS5 David Heidelberg via B4 Relay
2026-09-06 16:33 ` [PATCH v6 1/3] dt-bindings: input: touchscreen: st,stmfts: Introduce " David Heidelberg via B4 Relay
2026-09-06 16:40 ` sashiko-bot [this message]
2026-09-06 16:33 ` [PATCH v6 2/3] Input: stmfts - support FTS5 David Heidelberg via B4 Relay
2026-09-06 16:47 ` sashiko-bot
2026-09-06 16:33 ` [PATCH v6 3/3] arm64: dts: qcom: sdm845-google: Add STM FTS touchscreen support David Heidelberg via B4 Relay
2026-09-06 16:45 ` [PATCH v6 0/3] Input: support for STM FTS5 David Heidelberg
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=20260906164016.773C01F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--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