Devicetree
 help / color / mirror / Atom feed
From: Markus Probst <markus.probst@posteo.de>
To: sashiko-reviews@lists.linux.dev
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:54:16 +0000	[thread overview]
Message-ID: <8cbf37aa8ae970093a9572f70e02e0ba7a368512.camel@posteo.de> (raw)
In-Reply-To: <20260831195235.6C4931F000E9@smtp.kernel.org>

[-- Attachment #1: Type: text/plain, Size: 2539 bytes --]

On Mon, 2026-08-31 at 19:52 +0000, sashiko-bot@kernel.org wrote:
> 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";.

Should be

items:
  enum:
  - int1
  - int2

> 
> [ ... ]
> > +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.
Thats intended.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 870 bytes --]

  reply	other threads:[~2026-08-31 19:54 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
2026-08-31 19:54     ` Markus Probst [this message]
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=8cbf37aa8ae970093a9572f70e02e0ba7a368512.camel@posteo.de \
    --to=markus.probst@posteo.de \
    --cc=alexandre.belloni@bootlin.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.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