Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Adam Azuddin" <azuddinadam@gmail.com>
Cc: dri-devel@lists.freedesktop.org, robh@kernel.org,
	devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 1/2] dt-bindings: display: panel: Add RAiO RA8875 display controller
Date: Mon, 12 Oct 2026 06:57:07 +0000	[thread overview]
Message-ID: <sashiko-outbox-167756@kernel.org> (raw)
In-Reply-To: <20261012064518.3497285-2-azuddinadam@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] dt-bindings: spi-peripheral-props.yaml restricts reg to 256, breaking parallel/I2C buses
- [Medium] dt-bindings: missing dc-gpios breaks schema validation for legacy DTs
- [Medium] dt-bindings: display: panel: raio,ra8875: missing interrupts property for INT# pin
--

commit 770e5c23771cd9005f8ced2e1ea873a2b2042967
Author: Adam Azuddin <azuddinadam@gmail.com>

dt-bindings: display: panel: Add RAiO RA8875 display controller

The RA8875 is an SPI-connected TFT display controller by RAiO
Technology Inc. It supports display resolutions of up to 800x480.

Add YAML binding schema for the RA8875 controller, along with
the raio vendor prefix for RAiO Technology Inc.

> diff --git a/Documentation/devicetree/bindings/display/panel/raio,ra8875.yaml b/Documentation/devicetree/bindings/display/panel/raio,ra8875.yaml
> new file mode 100644
> index 0000000000000..86777e2cec57a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/raio,ra8875.yaml
> @@ -0,0 +1,77 @@
[ ... ]
> +description:
> +  The RA8875 is a TFT LCD controller for panels up to 800x480 pixels.
> +  It can be connected to the controller via 8080/6800 parallel interface,
> +  SPI or I2C.
> +
> +allOf:
> +  - $ref: panel-common.yaml#
> +  - $ref: /schemas/spi/spi-peripheral-props.yaml#

[Severity: Medium]
Since the description mentions the device can be connected via 8080/6800
parallel interface or I2C, does unconditionally including the SPI peripheral
properties here break non-SPI bindings?

The spi-peripheral-props.yaml schema restricts the elements of the reg
property to a maximum value of 256. For parallel memory-mapped interfaces,
the reg property typically holds a full physical address which violates this
constraint, causing device tree validation to fail.

Could this inclusion be made conditional based on the bus type instead?

[ ... ]
> +required:
> +  - compatible
> +  - reg
> +  - display-timings
> +  - vdd-supply
> +
> +unevaluatedProperties: false

[Severity: Medium]
Will this break validation for existing device trees that include the dc-gpios
property?

The legacy fbtft driver strictly required this property for the raio,ra8875
device and would abort probe without it:

drivers/staging/fbtft/fbtft-core.c:fbtft_verify_gpios() {
    ...
    if (pdata->display.buswidth != 9 &&  par->startbyte == 0 &&
        !par->gpio.dc) {
        dev_err(par->info->device,
            "Missing info about 'dc' gpio. Aborting.\n");
        return -EINVAL;
    }
    ...
}

Because existing device trees in the wild must contain this property to work
with the legacy driver, omitting it here while setting unevaluatedProperties
to false will cause them to fail validation.

[Severity: Medium]
Does this schema omission prevent describing the hardware accurately when the
INT# pin is connected?

The RA8875 hardware features a dedicated INT# pin to signal events from its
built-in touchscreen and keypad controllers. Omitting the interrupts property
while setting unevaluatedProperties to false means valid device trees
specifying this interrupt routing will be rejected.

Should the interrupts property be added to allow full hardware description,
even if the current DRM driver does not consume it?

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

  reply	other threads:[~2026-10-12  6:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-12  6:45 [PATCH v4 0/2] drm/tiny: Add RAiO RA8875 display controller driver support Adam Azuddin
2026-10-12  6:45 ` [PATCH v4 1/2] dt-bindings: display: panel: Add RAiO RA8875 display controller Adam Azuddin
2026-10-12  6:57   ` sashiko-bot [this message]
2026-10-13  7:33   ` Krzysztof Kozlowski
2026-10-12  6:45 ` [PATCH v4 2/2] drm/tiny: Add RAiO RA8875 display controller driver Adam Azuddin
2026-10-12  7:00   ` 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-167756@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=azuddinadam@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