Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Svyatoslav Ryhel" <clamor95@gmail.com>
Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 3/7] dt-bindings: display: tegra: Document 8-bit CPU parallel interface
Date: Sun, 04 Oct 2026 16:41:42 +0000	[thread overview]
Message-ID: <20261004164143.145811F00898@smtp.kernel.org> (raw)
In-Reply-To: <20261004163114.181800-4-clamor95@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] dt-bindings: required 'compatible' property is undefined in tegra-dbi schema
- [Medium] dt-bindings: invalid example root node causes validation failure
- [Medium] dt-bindings: missing generational constraint for dbi interface
--

commit 9f9bbe3a4b81a4564064134d8bb28bd826d68aac
Author: Svyatoslav Ryhel <clamor95@gmail.com>

dt-bindings: display: tegra: Document 8-bit CPU parallel interface

Document 8-bit CPU parallel MIPI DBI Type B interface provided by
Tegra20/30 SoCs display controller.

> diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra-dbi.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra-dbi.yaml
> new file mode 100644
> index 0000000000000..184c33d436308
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra-dbi.yaml
[ ... ]
> +properties:
> +  dc-gpios:
> +    description: Data/command selection pin.

[Severity: Medium]
The properties block completely omits a definition for the required
compatible property.

Because unevaluatedProperties is set to false, wouldn't providing the
compatible property fail validation since it is undefined in this block?

[ ... ]
> +required:
> +  - compatible
> +  - dc-gpios

[Severity: Medium]
This incorrectly requires the compatible property for the dbi node.

Since it is required here, wouldn't omitting it also fail validation,
making it impossible to satisfy the schema?

[ ... ]
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +
> +    dc@54200000 {
> +        reg = <0x54200000 0x00040000>;
> +
> +        dbi {

[Severity: Medium]
Is the example rooted at the parent dc node instead of the dbi node, causing
dt-schema to apply the dbi schema to the parent node and fail?

Since the schema lacks a select or top-level compatible constraint, dt-schema
will automatically evaluate the example's root node against this schema.

Because the dc node contains properties like reg and dbi that are not defined
in the schema, and lacks required properties, won't this cause a schema
validation error?

> diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml
> index 69be95afd5627..bb280f8dbfc7c 100644
> --- a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml
> +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml
[ ... ]
> @@ -76,6 +76,9 @@ properties:
>      $ref: /schemas/types.yaml#/definitions/phandle-array
>      description: A list of phandles of outputs that this display controller can drive.
>  
> +  dbi:
> +    $ref: /schemas/display/tegra/nvidia,tegra-dbi.yaml#
> +

[Severity: Medium]
Does this unconditionally allow the dbi node for all Tegra DC variants,
violating the hardware constraint?

The commit message explicitly states the 8-bit CPU (MIPI DBI) interface is a
feature of Tegra20/30 SoCs. Since nvidia,tegra20-dc.yaml covers later
generations, should this be conditionally constrained to Tegra20 and Tegra30
using an allOf -> if block?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261004163114.181800-1-clamor95@gmail.com?part=3

  reply	other threads:[~2026-10-04 16:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-04 16:31 [PATCH v2 0/7] drm/tegra: Add support for Tegra20/Tegra30 8-bit CPU interface Svyatoslav Ryhel
2026-10-04 16:31 ` [PATCH v2 1/7] drm/tegra: dc: Expand available registers layouts Svyatoslav Ryhel
2026-10-04 16:31 ` [PATCH v2 2/7] drm/tegra: rgb: Parameterize configuration based on bus flags Svyatoslav Ryhel
2026-10-04 16:41   ` sashiko-bot
2026-10-04 16:31 ` [PATCH v2 3/7] dt-bindings: display: tegra: Document 8-bit CPU parallel interface Svyatoslav Ryhel
2026-10-04 16:41   ` sashiko-bot [this message]
2026-10-05 13:30   ` Rob Herring (Arm)
2026-10-04 16:31 ` [PATCH v2 4/7] drm/tegra: Add support for 8-bit CPU interface Svyatoslav Ryhel
2026-10-04 16:44   ` sashiko-bot
2026-10-05 14:29   ` kernel test robot
2026-10-06  3:42   ` kernel test robot
2026-10-04 16:31 ` [PATCH v2 5/7] dt-bindings: display: panel: Document Hitachi TX10D07VM0BAA and LG LH400WV3 panels Svyatoslav Ryhel
2026-10-04 16:31 ` [PATCH v2 6/7] drm/panel: Add Hitachi TX10D07VM0BAA MIPI DBI Type B panel driver Svyatoslav Ryhel
2026-10-04 16:31 ` [PATCH v2 7/7] drm/panel: Add LG LH400WV3-SD04 " Svyatoslav Ryhel

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=20261004164143.145811F00898@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=clamor95@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.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