From: sashiko-bot@kernel.org
To: "Jakub Turek" <jakub.turek@elsta.tech>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 2/2] dt-bindings: display: solomon,ssd1307fb: add SH1107 compatible
Date: Fri, 31 Jul 2026 14:56:53 +0000 [thread overview]
Message-ID: <20260731145653.590471F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260731-feat-sh1107-v2-2-0d2893e44ebd@elsta.tech>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] The fbdev driver ignores the device-specific default dimensions documented in the device tree bindings, falling back to a hardcoded 96x16 for all devices including the newly documented sinowealth,sh1107.
--
--- Patch [2]: [PATCH v2 2/2] dt-bindings: display: solomon,ssd1307fb: add SH1107 compatible ---
commit 6de7ab88b3219b227a8443711b01ecabe4a747f9
Author: Jakub Turek <jakub.turek@elsta.tech>
dt-bindings: display: solomon,ssd1307fb: add SH1107 compatible
This commit updates the device tree documentation to include the
"sinowealth,sh1107" compatible string. It also configures default values for
the display dimensions and clock settings when this compatible is used.
> diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml
> index 153ff86fb4059..6b17a701bbaa5 100644
> --- a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml
> +++ b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml
[ ... ]
> @@ -140,6 +141,22 @@ allOf:
> solomon,dclk-frq:
> default: 5
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: sinowealth,sh1107
> + then:
> + properties:
> + solomon,width:
> + default: 128
> + solomon,height:
> + default: 64
[Severity: High]
This isn't a bug introduced by this patch, but does the fbdev driver actually
respect these default dimensions?
Looking at ssd1307fb_probe() in drivers/video/fbdev/ssd1307fb.c, the driver
appears to hardcode the fallback values to 96x16:
drivers/video/fbdev/ssd1307fb.c:ssd1307fb_probe() {
...
if (device_property_read_u32(dev, "solomon,width", &par->width))
par->width = 96;
if (device_property_read_u32(dev, "solomon,height", &par->height))
par->height = 16;
...
}
If a device tree node for sinowealth,sh1107 is created without the
solomon,width and solomon,height properties, relying on the schema's
defaults, will the driver initialize the display with the hardcoded 96x16
resolution instead?
> + solomon,dclk-div:
> + default: 1
> + solomon,dclk-frq:
> + default: 8
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260731-feat-sh1107-v2-0-0d2893e44ebd@elsta.tech?part=2
prev parent reply other threads:[~2026-07-31 14:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 14:45 [PATCH v2 0/2] fbdev: ssd1307fb: add SH1107 support Jakub Turek
2026-07-31 14:45 ` [PATCH v2 1/2] fbdev: ssd1307fb: add support for Sino Wealth SH1107 controller Jakub Turek
2026-07-31 15:10 ` sashiko-bot
2026-07-31 15:54 ` Helge Deller
2026-07-31 14:45 ` [PATCH v2 2/2] dt-bindings: display: solomon,ssd1307fb: add SH1107 compatible Jakub Turek
2026-07-31 14:56 ` sashiko-bot [this message]
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=20260731145653.590471F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jakub.turek@elsta.tech \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.