Linux Input/HID development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Michał Kopeć" <michal@nozomi.space>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com,
	conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v6 1/3] dt-bindings: input: Add Himax HX83102J touchscreen
Date: Sun, 11 Oct 2026 18:23:00 +0000	[thread overview]
Message-ID: <sashiko-outbox-167375@kernel.org> (raw)
In-Reply-To: <20261011181633.1778969-2-michal@nozomi.space>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: Redundant required shared resources for TDDI chip
- [Low] dt-bindings: Missing maxItems constraint on firmware-name
--

commit 08e7a44d4b27dca463d90889398954bf0cfaff49
Author: Michał Kopeć <michal@nozomi.space>

dt-bindings: input: Add Himax HX83102J touchscreen

This commit adds the device tree binding for the touch function of the
Himax HX83102J, a TDDI controller. The display and touch functions share
analog supplies and reset lines, which power up together with the panel.

> diff --git a/Documentation/devicetree/bindings/input/touchscreen/himax,hx83102j.yaml b/Documentation/devicetree/bindings/input/touchscreen/himax,hx83102j.yaml
> new file mode 100644
> index 0000000000000..f0aca7a6662c9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/touchscreen/himax,hx83102j.yaml
[ ... ]
> +  display-reset-gpios:
> +    maxItems: 1
> +    description:
> +      Reset of the display function, usually driven by the panel. Asserting
> +      it also resets the touch function.
> +
> +  spi-cpha: true
> +
> +  spi-cpol: true
> +
> +  firmware-name:
> +    description: Specify the file name for firmware loading.

[Severity: Low]
Should this include a maxItems constraint? Since dtschema implicitly
evaluates this property as a string array, omitting a constraint like
maxItems: 1 allows device trees providing an array of multiple strings
for the firmware name to silently pass dt_binding_check.

> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - reset-gpios
> +  - panel
> +  - vccd-supply
> +  - vsn-supply
> +  - vsp-supply
> +  - display-reset-gpios

[Severity: Medium]
Since this is a TDDI chip and the driver utilizes the drm_panel_follower API
to coordinate power and reset with the panel, do we need to strictly require
vsn-supply, vsp-supply, and display-reset-gpios in the touchscreen node?

Requiring these alongside the panel phandle forces device tree authors to
duplicate the physical resource definitions (the exact same physical pins
and regulators) in both the panel and touch nodes, which might lead to probe
failures (-EBUSY) if drivers attempt to parse them natively.

Would it be better to remove these shared resources from the required list or
make them optional, deferring resource management entirely to the panel node?

> +
> +unevaluatedProperties: false
[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261011181633.1778969-1-michal@nozomi.space?part=1

  reply	other threads:[~2026-10-11 18:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-11 18:16 [PATCH v6 0/3] HID: Add support for the Himax HX83102J touchscreen Michał Kopeć
2026-10-11 18:16 ` [PATCH v6 1/3] dt-bindings: input: Add " Michał Kopeć
2026-10-11 18:23   ` sashiko-bot [this message]
2026-10-12 19:16   ` Conor Dooley
2026-10-11 18:16 ` [PATCH v6 2/3] HID: Add Himax HX83102J SPI touchscreen driver Michał Kopeć
2026-10-11 18:26   ` sashiko-bot
2026-10-11 23:06   ` Uwe Kleine-König
2026-10-11 18:16 ` [PATCH v6 3/3] arm64: dts: mediatek: mt8188-geralt-ciri: Add the touchscreen Michał Kopeć

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-167375@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=michal@nozomi.space \
    --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