From: sashiko-bot@kernel.org
To: "Svyatoslav Ryhel" <clamor95@gmail.com>
Cc: robh@kernel.org, dri-devel@lists.freedesktop.org,
conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v1 3/6] dt-bindings: display: tegra: Document 8-bit CPU parallel interface
Date: Wed, 30 Sep 2026 07:15:56 +0000 [thread overview]
Message-ID: <20260930071557.47FE91F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260930070535.47130-4-clamor95@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] dt-bindings: tegra: internal DC engine modeled as standalone bridge
--
commit 01a8f6463a12799df86627d43eafd7a2899a713e
Author: Svyatoslav Ryhel <clamor95@gmail.com>
dt-bindings: display: tegra: Document 8-bit CPU parallel interface
Introduces a device tree binding for the 8-bit CPU parallel MIPI DBI Type B
interface provided by the Tegra20/30 SoCs display controller.
> diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra-8bit-cpu.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra-8bit-cpu.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra-8bit-cpu.yaml
[ ... ]
> +description: The display controller in Tegra20/30 SoCs features an
> + 8-bit SPI interface that closely resembles the MIPI DBI Type B
> + protocol and is referred to as '8-bit CPU'. Each display controller
> + provides two such interfaces, which can be used to send MIPI DCS
> + commands to initialize and control the panel while image data is
> + transmitted via 16/18/24-line RGB.
> +
> +properties:
> + compatible:
> + const: nvidia,tegra-8bit-cpu
[Severity: High]
Does this modeling break Devicetree hardware hierarchy principles? By
defining a separate compatible string and standalone top-level node for what
is fundamentally an internal engine of the display controller, the driver is
forced to traverse the OF graph to its remote endpoint's parent and blindly
cast its drvdata to struct tegra_dc *.
If the Devicetree incorrectly connects this bridge to a non-Tegra DC node,
can the driver perform invalid memory writes and corrupt memory?
> +
> + dc-gpios:
> + description: Data/command selection pin.
> + maxItems: 1
[ ... ]
> + data-gpios:
> + description: Specifies a set of 8 gpio pins used to transfer data.
> + minItems: 8
> + maxItems: 8
> +
> + nvidia,init-sequence:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + description: Device specific set of values used in DC DISP_SPI_INIT_SEQ
> + registers.
[Severity: High]
Does this property confirm the node programs the display controller's
internal registers? Lacking a reg property or a strict parent-child
relationship to map them seems to further indicate this should not be
modeled as a standalone bridge.
> + minItems: 4
> + maxItems: 4
> +
> + panel:
[ ... ]
> + port@1:
> + $ref: /schemas/graph.yaml#/properties/port
> + description: Video port for DBI output (panel or connector).
> +
> + required:
> + - port@0
> + - port@1
> +
> +required:
> + - compatible
> + - ports
[Severity: High]
Should data-gpios and the control GPIOs be marked as required? If the driver
unconditionally accesses priv->data_gpios->ndescs during MIPI DCS
transmission, omitting these bit-banged pins in the device tree allows
incomplete nodes to pass schema validation but causes a NULL pointer
dereference crash at runtime.
> +
> +unevaluatedProperties: false
> +
> +examples:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260930070535.47130-1-clamor95@gmail.com?part=3
next prev parent reply other threads:[~2026-09-30 7:15 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 7:05 [PATCH v1 0/6] drm/tegra: Add support for Tegra20/Tegra30 8-bit CPU interface Svyatoslav Ryhel
2026-09-30 7:05 ` [PATCH v1 1/6] drm/tegra: dc: Expand available registers layouts Svyatoslav Ryhel
2026-09-30 7:15 ` sashiko-bot
2026-09-30 8:34 ` Thierry Reding
2026-09-30 8:55 ` Svyatoslav Ryhel
2026-09-30 7:05 ` [PATCH v1 2/6] drm/tegra: rgb: Parameterize configuration based on bus flags Svyatoslav Ryhel
2026-09-30 7:38 ` sashiko-bot
2026-09-30 7:05 ` [PATCH v1 3/6] dt-bindings: display: tegra: Document 8-bit CPU parallel interface Svyatoslav Ryhel
2026-09-30 7:15 ` sashiko-bot [this message]
2026-09-30 8:47 ` Thierry Reding
2026-09-30 9:00 ` Svyatoslav Ryhel
2026-09-30 10:34 ` Thierry Reding
2026-09-30 10:42 ` Svyatoslav Ryhel
2026-09-30 10:54 ` Thierry Reding
2026-09-30 11:10 ` Svyatoslav Ryhel
2026-09-30 11:41 ` Thierry Reding
2026-09-30 11:47 ` Svyatoslav Ryhel
2026-09-30 9:19 ` Mikko Perttunen
2026-09-30 9:52 ` Svyatoslav Ryhel
2026-09-30 10:50 ` Thierry Reding
2026-09-30 10:56 ` Svyatoslav Ryhel
2026-09-30 11:46 ` Thierry Reding
2026-09-30 11:56 ` Svyatoslav Ryhel
2026-09-30 12:58 ` Thierry Reding
2026-09-30 13:10 ` Svyatoslav Ryhel
2026-09-30 18:03 ` Svyatoslav Ryhel
2026-10-02 5:58 ` Mikko Perttunen
2026-09-30 11:51 ` Rob Herring (Arm)
2026-09-30 7:05 ` [PATCH v1 4/6] drm/tegra: Add support for 8-bit CPU interface Svyatoslav Ryhel
2026-09-30 7:25 ` sashiko-bot
2026-09-30 8:48 ` Thierry Reding
2026-09-30 9:02 ` Svyatoslav Ryhel
2026-09-30 10:39 ` Thierry Reding
2026-09-30 7:05 ` [PATCH v1 5/6] dt-bindings: display: panel: Document Hitachi TX10D07VM0BAA and LG LH400WV3 panels Svyatoslav Ryhel
2026-09-30 7:17 ` sashiko-bot
2026-09-30 7:05 ` [PATCH v1 6/6] drm/panel: Add Hitachi TX10D07VM0BAA and LG LH400WV3-SD04 MIPI DBI panel driver Svyatoslav Ryhel
2026-09-30 7:15 ` sashiko-bot
2026-09-30 9:02 ` Thierry Reding
2026-09-30 9:08 ` Svyatoslav Ryhel
2026-09-30 10:23 ` Thierry Reding
2026-09-30 10:34 ` Svyatoslav Ryhel
2026-09-30 10:43 ` Thierry Reding
2026-09-30 10:48 ` Svyatoslav Ryhel
2026-09-30 10:58 ` Thierry Reding
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=20260930071557.47FE91F000FF@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