From: sashiko-bot@kernel.org
To: "Cyril Hrubis" <chrubis@suse.cz>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: display: sitronix,st75256: Add DT schema
Date: Sun, 06 Dec 2026 13:29:59 +0000 [thread overview]
Message-ID: <sashiko-outbox-252446@kernel.org> (raw)
In-Reply-To: <20261206131330.1754178-2-chrubis@suse.cz>
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] dt-bindings: sitronix,st75256: raw register value in
sitronix,vop
- [Medium] dt-bindings: sitronix,st75256: driver-derived portrait axes
and 160-line cap
- [Medium] dt-bindings: sitronix,st75256: unspecified defaults and scale
in gray-levels
- [Low] dt-bindings: display: commit message cites nonexistent ST75156
controller
- [Low] dt-bindings: display: sitronix,st75256: redundant panel-common
properties
--
commit b5f4d738753e02b2804aea36991971dc76f3065b
Author: Cyril Hrubis <metan@ucw.cz>
dt-bindings: display: sitronix,st75256: Add DT schema
This commit adds a Devicetree binding schema for the Sitronix ST75256
monochrome and 4-level grayscale SPI LCD controller.
> The panel is described the same way as for the Sitronix ST75156 and
> ST7571 controllers, the resolution with panel-timing and the physical
> size with width-mm and height-mm.
[Severity: Low]
This isn't a bug, but there is no Sitronix ST75156 binding in the tree;
this looks like a typo for ST7567 (sitronix,st7567.yaml). Unlike
ST7567 and ST7571, this binding also swaps the axes into portrait
orientation, which would be worth noting here if that convention stays.
> diff --git a/Documentation/devicetree/bindings/display/sitronix,st75256.yaml b/Documentation/devicetree/bindings/display/sitronix,st75256.yaml
> new file mode 100644
> index 0000000000000..a4486507f774c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/sitronix,st75256.yaml
[ ... ]
> + reset-gpios:
> + maxItems: 1
> +
> + dc-gpios:
> + maxItems: 1
> + description: Data/command selection (A0) line.
> +
> + backlight: true
> + width-mm: true
> + height-mm: true
[Severity: Low]
Are reset-gpios, backlight, width-mm, and height-mm redundant here?
Because this schema references panel/panel-common.yaml# and uses
unevaluatedProperties: false, all four (including maxItems: 1 on
reset-gpios) are already inherited. They can be dropped from
properties: while keeping reset-gpios, width-mm, and height-mm required.
> + panel-timing:
> + description:
> + Only hactive and vactive are used and describe the panel resolution.
> + The hactive has to be a multiple of 8 up to 160, the vactive up to
> + 256. The remaining timings are not applicable and should be zero.
[Severity: Medium]
Should the binding describe the hardware's native axes and 162-line
limit instead of a driver-specific portrait layout and 160-line cap?
The description mandates portrait orientation (width along common lines,
height along segment lines), swapping width-mm/height-mm and
hactive/vactive relative to landscape panels like JLX256128 and sibling
Sitronix bindings (ST7567 and ST7571 map hactive to segment columns).
Capping hactive in prose to a multiple of 8 up to 160 also excludes
valid 161-162 common-line panels and leaves the resolution bounds
unenforced by dtschema. Scan-order and byte-alignment constraints
belong in the driver rather than the DT ABI.
> + sitronix,vop:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 0x55
> + maximum: 0x168
> + description:
> + LCD operating voltage (contrast) setting, V0 = 3.6V + vop * 0.04V. The
> + optimal value depends on the panel. It is added to the panel specific
> + offset programmed into the controller OTP by the panel manufacturer.
[Severity: Medium]
Should sitronix,vop use standard voltage units (-microvolt) instead of
a raw controller register value?
Exposing a raw register encoding locks controller arithmetic into the
DT ABI instead of using standard units per writing-bindings.rst.
Because 3.6V is an exact multiple of 0.04V, sitronix,vop-microvolt
(7000000 to 18000000, multipleOf: 40000) maps one-to-one to the
register without rounding error.
> + sitronix,gray-levels:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + items:
> + - description: Light gray level
> + maximum: 0x1f
> + - description: Dark gray level
> + maximum: 0x1f
> + description:
> + Gray levels used in the 4-level grayscale mode. If not present, values
> + calibrated for the JLX256128 and JLX256160 panels are used.
[Severity: Medium]
Does sitronix,gray-levels leave the default values and the 0x00..0x1f
scale direction unspecified?
A generic controller binding shouldn't rely on undisclosed defaults
calibrated for two third-party panels, and without stating whether 0x00
is lightest or darkest, DTS authors can easily invert the two levels
without reading the driver.
Specifying explicit numeric defaults and the scale polarity would make
the ABI self-contained.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206131330.1754178-1-chrubis@suse.cz?part=1
next prev parent reply other threads:[~2026-12-06 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 13:13 [PATCH v1 0/2] Add support for Sitronix ST75256 LCD panels Cyril Hrubis
2026-12-06 13:13 ` [PATCH v1 1/2] dt-bindings: display: sitronix,st75256: Add DT schema Cyril Hrubis
2026-12-06 13:29 ` sashiko-bot [this message]
2026-12-06 13:13 ` [PATCH v1 2/2] drm/sitronix: Add driver for Sitronix ST75256 LCD panels Cyril Hrubis
2026-12-06 13:35 ` 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-252446@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=chrubis@suse.cz \
--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