Re: [PATCH v4 1/6] dt-bindings: rtc: Add pinctrl for S35390A

Markus Probst <[email protected]>
Newsgroups dev.linux.lists.sashiko-reviews,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-rtc
Message-ID <[email protected]>
On Fri, 2026-08-14 at 23:04 +0000, [email protected] wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] Invalid use of the `wakeup-parent` property on an RTC end-device.
> --
> 
> --- Patch [1]: [PATCH v4 1/6] dt-bindings: rtc: Add pinctrl for S35390A ---
> commit 58cc609a743d62ad0839cf063b2bd4bf9603a2d0
> Author: Markus Probst <[email protected]>
> Subject: dt-bindings: rtc: Add pinctrl for S35390A
> 
> This commit converts the devicetree bindings for the S-35390A RTC into a
> standalone YAML schema. It also adds properties to configure individual pins
> via pinctrl to allow the interrupt signal 1 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..d9da3abbbd518
> > --- /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.
> > +
> > +  wakeup-parent: true
> > +
> > +  wakeup-source: true
> 
> [Severity: Low]
> Is wakeup-parent appropriate for this device? The wakeup-parent property is
> typically defined strictly for cascaded interrupt controllers to specify an
> upstream wakeup-capable interrupt controller. Since this is an end device,
> should it only use the wakeup-source boolean instead?

If it is connected to an interrupt controller and the interrupt
controller then causes the wakeup, wakeup-parent should be used here.

> 
> [ ... ]
> 
> > +examples:
> > +  - |
> > +    i2c {
> > +        #address-cells = <1>;
> > +        #size-cells = <0>;
> > +
> > +        rtc@30 {
> > +            compatible = "sii,s35390a";
> > +            reg = <0x30>;
> > +            pinctrl-0 = <&rtc_pins_default>;
> > +            pinctrl-names = "default";
> > +
> > +            wakeup-parent = <&int>;
> 
> [Severity: Low]
> Should this example be updated to remove the wakeup-parent assignment,
> assuming the property is dropped from the schema above?
> 
> [ ... ]
signature.asc (application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE-----

iQJPBAABCAA5FiEEgnQYxPSsWOdyMMRzNHYf+OetQ9IFAmp/n2MbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJEDR2H/jnrUPSKWEP/3WfFNrYKZ64Wn61F/3n
hlI9BhXTDbL6bCzMzZKg9Ys1StrauNpld6sTCYekEfPay2Haee/NxdQyb/t+N6A/
K8ljGHqVk+68NrH0wwlzF5BkSr7+8XBfS+D8LclB7cegndTizKNfODCWAbW0b+WK
3UMfs2hKrbslRC6SP3lFm/Li9FSqxQbiomdjzbt/cmSYxV5iqRNy0+nuJkFtyJ25
ihX+UpjCtpvmHqOia8sS755OF7PZN88gcDm37v6MEgJziNooNIPptls9+V3Q7xMp
y330L80WUCYFOmHCFv/ZDNPD1Bsj0hSKyCy+dXPK5fdPe28aMDJ3AzXYyOkbxIsB
UdsLhzTU42UbaLX4kS4xNzD9o3UkOSqZxSRPWDmiMP2wqNbEGmedC8rLFEhdB/ZU
cqfVgTpIltrk5FoBxe+NwZji5ssdyVd5/+pdVcMaXot7/q7JZpsb0Pgw8xUoIgHO
pMf7g6xu2ZDLA+OGkM0SGwvexiaWJbLrznHVpHadu0JUy1W6YitESK4I6RSvpkDS
NtPzWENSPbwiiFL+T+MPcd3MdVBA6LxHojfbsV+czb2pN2D8P9AxilkV12qVPSm+
anI6oVHkdNmYqNtLkHYcBBKCsKGabvw45PBcjFYfPVDz0Mtf0Izsn7vnab1CIyvW
o8tdZBzBRvJF3KzZGnqiaoY1
=CNfC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.