From: sashiko-bot@kernel.org
To: Quchaosheng <quchaosheng000406@163.com>
Cc: robh@kernel.org, dri-devel@lists.freedesktop.org,
conor+dt@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:05:13 +0000 [thread overview]
Message-ID: <sashiko-outbox-165310@kernel.org> (raw)
In-Reply-To: <20261009105412.300338-2-quchaosheng000406@163.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: ti,tpd12s015: missing minItems: 3 constraint for gpios property
--
commit 93e133f1119a3271ab3e48f347188c3580055f0b
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. Document the
two ports it exposes between the HDMI transmitter and the connector, and
add the tpd12s016 as a fallback compatible.
> 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
> @@ -0,0 +1,90 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
[ ... ]
> +properties:
> + compatible:
> + oneOf:
> + - const: ti,tpd12s015
> + - items:
> + - const: ti,tpd12s016
> + - const: ti,tpd12s015
> +
> + 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 gpios property also need a minItems: 3 constraint to prevent
incomplete device trees from passing schema validation?
Since maxItems is 3 and minItems is omitted, the schema compiler defaults
minItems to 1.
The driver ti-tpd12s015.c unconditionally attempts to retrieve the third
pin by its explicit index:
devm_gpiod_get_index(&pdev->dev, NULL, 2, GPIOD_IN)
If a device tree provides 1 or 2 GPIOs, it will pass schema validation but
the driver probe will fail at runtime with -ENOENT.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261009105412.300338-1-quchaosheng000406@163.com?part=1
next prev parent reply other threads:[~2026-10-09 11:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2026-10-09 10:54 ` [PATCH 2/3] ARM: dts: ti/omap: drop the two unused gpios from the igep0050 hdmi encoder Quchaosheng
2026-10-09 10:54 ` [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-09 15:38 ` Rob Herring
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:03 ` 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-165310@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox