From: sashiko-bot@kernel.org
To: "Markus Probst" <markus.probst@posteo.de>
Cc: linux-rtc@vger.kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, robh@kernel.org,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH v3 1/5] dt-bindings: rtc: Add pinctrl for S35390A
Date: Wed, 05 Aug 2026 20:21:50 +0000 [thread overview]
Message-ID: <20260805202151.3C0C11F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260805-rtc_s35390a_int1-v3-1-e836faba3e25@posteo.de>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] The schema describes a hardware constraint for the 'pmin2' function but fails to enforce it programmatically in the YAML logic.
- [Medium] The patch makes an undocumented, unrelated modification to the MAINTAINERS file by adding a non-existent directory.
- [Medium] The pinctrl child node pattern `-pins$` requires the `function` property but omits the `pins` property from the `required` list.
--
--- Patch [1]: [PATCH v3 1/5] dt-bindings: rtc: Add pinctrl for S35390A ---
commit 7fb91877359a278935b0893edcef6e5ae7d9c6a2
Author: Markus Probst <markus.probst@posteo.de>
dt-bindings: rtc: Add pinctrl for S35390A
Synology NAS devices use the output pin for interrupt signal 1 to wake up
the system. Move devicetree bindings for sii,s35390a into its own file.
Add necessary properties to configure the individual pins via pinctrl,
which allows the interrupt signal 1 to be used for wakeup alarm.
> diff --git a/Documentation/devicetree/bindings/rtc/sii,s35390a.yaml b/Documentation/devicetree/bindings/rtc/sii,s35390a.yaml
> new file mode 100644
> index 0000000000000..0355f17f233a3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/sii,s35390a.yaml
[ ... ]
> + function:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: |
> + Pin function:
> + - ignore: Preserve the previous state.
> + - disable: Disable pin output.
> + - wakeup: Output wakes up the system.
> + - clock: Output clock pulse.
> + - pmin1: Minute periodical output with 50% duty.
> + - pmin2: Minute periodical output L for 7.81 ms.
> + Can only be used with pin int1.
[Severity: Medium]
Could this hardware constraint be enforced programmatically in the YAML schema?
As currently written, a device tree specifying function = "pmin2" for
pins = "int2" would silently pass dt_binding_check validation despite violating
the documented hardware constraints. Should this be enforced using conditional
schema logic?
> + enum:
> + - ignore
> + - disable
> + - wakeup
> + - clock
> + - pmin1
> + - pmin2
> +
> + required:
> + - function
[Severity: Medium]
Should the pins property also be required here?
If a developer creates a pinmux child node specifying a function but omits the
mandatory pins identifier, the incomplete node will silently pass
dt_binding_check validation but fail to configure the hardware correctly in
the driver.
> +
> + additionalProperties: false
> +
> + additionalProperties: false
[ ... ]
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 15011f5752a99..46a19a0873e06 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -22690,6 +22690,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git
> F: Documentation/admin-guide/rtc.rst
> F: Documentation/devicetree/bindings/rtc/
> F: drivers/rtc/
> +F: include/dt-bindings/rtc/
[Severity: Medium]
Is this addition to the MAINTAINERS file intentional?
This introduces an undocumented and unrelated modification adding a directory
that does not actually exist in the kernel tree, which may cause maintainer
scripts to fail or behave unexpectedly.
> F: include/linux/rtc.h
> F: include/linux/rtc/
> F: include/uapi/linux/rtc.h
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260805-rtc_s35390a_int1-v3-0-e836faba3e25@posteo.de?part=1
next prev parent reply other threads:[~2026-08-05 20:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 19:32 [PATCH v3 0/5] rtc: s35390a: Allow use of output pin for interrupt signal 1 for wakealarm Markus Probst
2026-08-05 19:32 ` [PATCH v3 1/5] dt-bindings: rtc: Add pinctrl for S35390A Markus Probst
2026-08-05 20:21 ` sashiko-bot [this message]
2026-08-11 17:05 ` Markus Probst
2026-08-05 20:32 ` Markus Probst
2026-08-07 17:23 ` Linus Walleij
2026-08-11 13:42 ` Markus Probst
2026-08-12 2:08 ` Rob Herring
2026-08-05 19:32 ` [PATCH v3 2/5] rtc: s35390a: Add missing newline to dev_err Markus Probst
2026-08-05 20:30 ` sashiko-bot
2026-08-11 18:03 ` Markus Probst
2026-08-05 19:32 ` [PATCH v3 3/5] rtc: s35390a: Fix alarm not disabling Markus Probst
2026-08-05 20:42 ` sashiko-bot
2026-08-05 19:32 ` [PATCH v3 4/5] rtc: s35390a: Add pinctrl Markus Probst
2026-08-05 20:51 ` sashiko-bot
2026-08-11 17:39 ` Markus Probst
2026-08-05 19:32 ` [PATCH v3 5/5] rtc: s35390a: Add synology quirk Markus Probst
2026-08-05 20:55 ` 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=20260805202151.3C0C11F000E9@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 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.