From: sashiko-bot@kernel.org
To: "Markus Probst" <markus.probst@posteo.de>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org,
linux-rtc@vger.kernel.org,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
robh@kernel.org
Subject: Re: [PATCH v8 1/6] dt-bindings: rtc: Add pinctrl for S35390A
Date: Mon, 31 Aug 2026 19:52:35 +0000 [thread overview]
Message-ID: <20260831195235.6C4931F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260831-rtc_s35390a_int1-v8-1-dac1dc86ce1f@posteo.de>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] DT binding schema strictly requires 2 items for `interrupt-names` even when only 1 interrupt is defined.
- [Medium] Incorrect use of `additionalProperties: false` alongside `$ref` breaks dt-schema validation and inheritance.
--
commit b7c0d2bd5acb5ccb26e8865062b4b49889e6cf5d
Author: Markus Probst <markus.probst@posteo.de>
dt-bindings: rtc: Add pinctrl for S35390A
This commit moves the devicetree bindings for the sii,s35390a RTC into
its own dedicated schema file. It also adds the necessary properties to
configure individual pins via pinctrl, allowing the interrupt signal to
be used for wakeup alarms.
> diff --git a/Documentation/devicetree/bindings/rtc/sii,s35390a.yaml b/Documentation/devicetree/bindings/rtc/sii,s35390a.yaml
> new file mode 100644
> index 0000000000000..dfe632c4b2c85
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/sii,s35390a.yaml
[ ... ]
> + interrupts:
> + minItems: 1
> + maxItems: 2
> + description: Supports up to 2 interrupt lines via the INT1 and INT2 pins.
> +
> + interrupt-names:
> + items:
> + - const: int1
> + - const: int2
[Severity: Medium]
Since the interrupts property allows minItems: 1, does interrupt-names
also need minItems: 1? Without it, the implicit minimum is exactly 2 items,
which will cause schema validation to fail for valid device trees that only
configure a single interrupt (e.g., INT1) and specify
interrupt-names = "int1";.
[ ... ]
> +patternProperties:
> + "^pins":
> + type: object
> + additionalProperties: false
> +
> + patternProperties:
> + "-pins$":
> + type: object
> + additionalProperties: false
> +
> + allOf:
> + - $ref: /schemas/pinctrl/pinmux-node.yaml#
[Severity: Medium]
Should unevaluatedProperties: false be used here instead of
additionalProperties: false? Using additionalProperties: false alongside a
$ref to another schema strictly rejects any properties not explicitly
listed in this block, which breaks the evaluation of inherited properties
from pinmux-node.yaml as well as generic dt-schema internal properties
like phandle or $nodename.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260831-rtc_s35390a_int1-v8-0-dac1dc86ce1f@posteo.de?part=1
next prev parent reply other threads:[~2026-08-31 19:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 17:42 [PATCH v8 0/6] rtc: s35390a: Allow use of output pin for interrupt signal 1 for wakealarm Markus Probst
2026-08-31 17:42 ` [PATCH v8 1/6] dt-bindings: rtc: Add pinctrl for S35390A Markus Probst
2026-08-31 19:52 ` sashiko-bot [this message]
2026-08-31 19:54 ` Markus Probst
2026-09-01 10:05 ` Krzysztof Kozlowski
2026-09-01 13:28 ` Markus Probst
2026-09-03 9:35 ` Krzysztof Kozlowski
2026-08-31 17:42 ` [PATCH v8 2/6] rtc: s35390a: Add missing newline to dev_err Markus Probst
2026-08-31 19:57 ` sashiko-bot
2026-08-31 17:42 ` [PATCH v8 3/6] rtc: s35390a: Fix alarm not disabling Markus Probst
2026-08-31 20:14 ` sashiko-bot
2026-08-31 17:42 ` [PATCH v8 4/6] rtc: s35390a: Read 24-hour mode on access Markus Probst
2026-08-31 20:24 ` sashiko-bot
2026-08-31 17:42 ` [PATCH v8 5/6] rtc: s35390a: Add pinctrl Markus Probst
2026-08-31 21:00 ` sashiko-bot
2026-08-31 17:42 ` [PATCH v8 6/6] rtc: s35390a: Add synology quirk Markus Probst
2026-08-31 21:06 ` 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=20260831195235.6C4931F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=markus.probst@posteo.de \
--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