From: sashiko-bot@kernel.org
To: "Markus Stockhausen" <markus.stockhausen@gmx.de>
Cc: krzk+dt@kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: i2c: Add i2c-shared-gpio
Date: Tue, 12 May 2026 20:59:32 +0000 [thread overview]
Message-ID: <20260512205932.E5B7EC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511162528.84508-2-markus.stockhausen@gmx.de>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The `minimum` and `maximum` constraints on the child node's `reg` property are structurally invalid and will be silently ignored during schema validation.
- [Medium] The compatible string in the commit message does not match the actual code implementation.
--
commit 5af80521617a83464e505c8a8c5b9d9829717a38
Author: Markus Stockhausen <markus.stockhausen@gmx.de>
dt-bindings: i2c: Add i2c-shared-gpio
This commit documents the driver for bitbanged GPIO I2C buses with shared
SCL lines.
> dt-bindings: i2c: Add i2c-shared-gpio
This isn't a bug, but the commit subject and description refer to the
binding as i2c-shared-gpio, whereas the actual compatible string and file
name introduced in the patch use i2c-gpio-shared.
> diff --git a/Documentation/devicetree/bindings/i2c/i2c-gpio-shared.yaml b/Documentation/devicetree/bindings/i2c/i2c-gpio-shared.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/i2c-gpio-shared.yaml
[ ... ]
> + properties:
> + reg:
> + items:
> + - minimum: 0
> + maximum: 31
Will these minimum and maximum constraints be silently ignored during schema
validation?
Because dt-schema decodes standard properties like reg internally as a matrix
(an array of arrays), applying JSON Schema numeric constraints inside an items
list evaluates them against an array instance instead of a numeric integer.
Since JSON Schema ignores numeric constraints on non-numeric types,
out-of-bounds reg values might silently pass schema validation.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260511162528.84508-1-markus.stockhausen@gmx.de?part=1
next prev parent reply other threads:[~2026-05-12 20:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 16:25 [PATCH v2 0/2] i2c: Add i2c-shared-gpio driver Markus Stockhausen
2026-05-11 16:25 ` [PATCH v2 1/2] dt-bindings: i2c: Add i2c-shared-gpio Markus Stockhausen
2026-05-11 17:36 ` Rob Herring (Arm)
2026-05-12 20:59 ` sashiko-bot [this message]
2026-05-11 16:25 ` [PATCH v2 2/2] i2c: Add driver for gpio based busses with shared SCL Markus Stockhausen
2026-05-12 21:44 ` sashiko-bot
2026-05-12 11:00 ` [PATCH v2 0/2] i2c: Add i2c-shared-gpio driver Bartosz Golaszewski
2026-05-13 5:33 ` AW: " markus.stockhausen
2026-05-13 7:12 ` Wolfram Sang
2026-05-13 7:26 ` Bartosz Golaszewski
2026-05-13 7:47 ` Wolfram Sang
2026-05-13 7:50 ` Bartosz Golaszewski
2026-05-13 12:11 ` Rob Herring
2026-05-13 12:25 ` AW: " markus.stockhausen
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=20260512205932.E5B7EC2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=markus.stockhausen@gmx.de \
--cc=robh@kernel.org \
--cc=sashiko@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