All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: Quchaosheng <quchaosheng000406@163.com>
Cc: conor+dt@kernel.org, dri-devel@lists.freedesktop.org,
	robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: display: ti,tpd12s015: Convert to DT schema
Date: Fri, 09 Oct 2026 11:03:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-165306@kernel.org> (raw)
In-Reply-To: <20261009105356.300188-2-quchaosheng000406@163.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: display: ti,tpd12s015: missing minItems: 3 for gpios
--

commit d5e502558b023b930dba87dd54c3fb7121502833
Author: Chaosheng Qu <quchaosheng000406@163.com>

dt-bindings: display: ti,tpd12s015: Convert to DT schema
    
Convert the TPD12S015 HDMI level shifter binding to DT schema, documenting
the ports and compatible fallbacks.

> diff --git a/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.yaml b/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.yaml
> new file mode 100644
> index 0000000000000..1927da3bd7361
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.yaml

[ ... ]

> +  gpios:
> +    description:
> +      The CT CP HPD, LS OE and HPD GPIOs, in that order. The first controls
> +      the level shifter, the second enables the level shifter outputs and
> +      the third reads the hot-plug detect line.
> +    maxItems: 3

[Severity: Low]
Does this property need a minItems: 3 constraint?

If a device tree developer omits the first two optional GPIOs without using
<0> placeholders, the array will have fewer than 3 elements. This will pass
YAML schema validation.

However, the drivers handling this device (both ti-tpd12s015.c and
encoder-tpd12s015.c) unconditionally request the HPD GPIO at index 2 using
devm_gpiod_get_index(&pdev->dev, NULL, 2, GPIOD_IN).

If the array has fewer than 3 elements, the driver probe will immediately
fail at runtime with -ENOENT. Adding minItems: 3 would ensure the dt-schema
validation catches incomplete arrays earlier.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261009105356.300188-1-quchaosheng000406@163.com?part=1

  reply	other threads:[~2026-10-09 11:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-09 10:53 [PATCH 0/3] dt-bindings: display: ti,tpd12s015: convert, and fix what the conversion exposed Quchaosheng
2026-10-09 10:53 ` [PATCH 0/3] dt-bindings: display: ti, tpd12s015: " Quchaosheng
2026-10-09 10:53 ` [PATCH 1/3] dt-bindings: display: ti,tpd12s015: Convert to DT schema Quchaosheng
2026-10-09 11:03   ` sashiko-bot [this message]
2026-10-09 10:53 ` [PATCH 2/3] ARM: dts: ti/omap: drop the two unused gpios from the igep0050 hdmi encoder Quchaosheng
2026-10-09 10:53 ` [PATCH 3/3] ARM: dts: ti/omap: drop unit-address from tpd12s015 endpoints Quchaosheng
  -- strict thread matches above, loose matches on Subject: below --
2026-10-09 10:55 [PATCH 0/3] dt-bindings: display: ti,tpd12s015: convert, and fix what the conversion exposed Quchaosheng
2026-10-09 10:55 ` [PATCH 1/3] dt-bindings: display: ti,tpd12s015: Convert to DT schema Quchaosheng
2026-10-09 11:14   ` sashiko-bot
2026-10-09 14:25   ` Conor Dooley
2026-10-09 14:44     ` Laurent Pinchart
2026-10-09 15:42       ` Conor Dooley
2026-10-09 17:34         ` Rob Herring
2026-10-10  0:48       ` Quchaosheng
2026-10-10  0:48         ` [PATCH 1/3] dt-bindings: display: ti, tpd12s015: " Quchaosheng
2026-10-09 15:38   ` [PATCH 1/3] dt-bindings: display: ti,tpd12s015: " Rob Herring
2026-10-09 10:54 [PATCH 0/3] dt-bindings: display: ti,tpd12s015: convert, and fix what the conversion exposed Quchaosheng
2026-10-09 10:54 ` [PATCH 1/3] dt-bindings: display: ti,tpd12s015: Convert to DT schema Quchaosheng
2026-10-09 11:05   ` sashiko-bot
2026-10-09 10:53 [PATCH 0/3] dt-bindings: display: ti,tpd12s015: convert, and fix what the conversion exposed Quchaosheng
2026-10-09 10:53 ` [PATCH 1/3] dt-bindings: display: ti,tpd12s015: Convert to DT schema Quchaosheng
2026-10-09 11:05   ` 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-165306@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=quchaosheng000406@163.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.