Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "sthho law" <17236081@qq.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: input: touchscreen: st,stmfts: add st,fts
Date: Fri, 04 Dec 2026 07:49:24 +0000	[thread overview]
Message-ID: <sashiko-outbox-249341@kernel.org> (raw)
In-Reply-To: <tencent_24E2E7771214F73657B404816A24822DDE08@qq.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: st,stmfts: generic device-family compatible
  string st,fts
--

commit c6f7ae3dc40b93a6dc1df1428737c87e1e61a263
Author: sthho law <17236081@qq.com>

dt-bindings: input: touchscreen: st,stmfts: add st,fts

This commit adds "st,fts" to the compatible enum in the STMicroelectronics
FingerTip touchscreen binding for panels running FTM5 firmware.

> diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml
> index 64c4f24ea3dd0..c0fd879dda3ab 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml
> +++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml
> @@ -19,7 +19,13 @@ allOf:
>
>  properties:
>    compatible:
> -    const: st,stmfts
> +    enum:
> +      - st,stmfts
> +      - st,fts
> +    description: |
> +      Panels running the FTM4 firmware use "st,stmfts", panels running the
> +      FTM5 firmware use "st,fts".  Both are FingerTip controllers with the
> +      same wiring.

[Severity: Medium]
Should "st,fts" be replaced with a specific controller IC model compatible?

Documentation/devicetree/bindings/writing-bindings.rst requires specific
compatible strings and forbids device-family names.  "st,fts" only names the
FingerTip S family, creating a permanent DT ABI that cannot cleanly separate
specific FTM5 controller variants, hardware quirks, or future generations.

The schema and commit message also distinguish "st,stmfts" and "st,fts" by
firmware generation rather than controller silicon.  In addition, the commit
message states that panels report these compatibles, whereas DT compatibles
are defined by bindings and written in DTS files.

Defining compatible string(s) for the specific ST controller IC model(s)
being supported (with an explicit fallback only when multiple models share
the same programming interface) would avoid locking in a generic family name.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/tencent_24E2E7771214F73657B404816A24822DDE08@qq.com?part=1

  reply	other threads:[~2026-12-04  7:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1796369755.32249.0@17236081.qq.com>
2026-12-04  7:35 ` [PATCH 1/2] dt-bindings: input: touchscreen: st,stmfts: add st,fts sthho law
2026-12-04  7:49   ` sashiko-bot [this message]
2026-12-04  7:35 ` [PATCH 2/2] Input: add STMicroelectronics FTM5 touchscreen driver sthho law
2026-12-04  7:59   ` sashiko-bot
     [not found] <1796370440.32551.0@17236081.qq.com>
2026-12-04  7:47 ` [PATCH 1/2] dt-bindings: input: touchscreen: st,stmfts: add st,fts sthho law
2026-12-04  7:59   ` 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-249341@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=17236081@qq.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@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