All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Sasha Finkelstein" <k@chaosmail.tech>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v9 1/6] dt-bindings: spmi: apple,spmi: Add t603x and t8122
Date: Tue, 01 Sep 2026 10:39:18 +0000	[thread overview]
Message-ID: <20260901103918.C2B651F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260901-t603x-spmi-v9-1-09e702e3b153@chaosmail.tech>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Missing required `power-domains` property for not-always-on SPMI controllers.
- [Low] Missing example coverage for new interrupt controller capabilities.
--

commit 57c88d4c6dd7d628065665fa42a855aa5ac54ce4
Author: Sasha Finkelstein <k@chaosmail.tech>

dt-bindings: spmi: apple,spmi: Add t603x and t8122

This commit adds the t603x and t8122 compatibles for apple,spmi. It introduces
interrupt support and support for SPMI controllers that are not always-on.

> diff --git a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
> index 3e5b14bc8c317..4e73083ecec33 100644
> --- a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
> +++ b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
[ ... ]
> @@ -34,10 +37,36 @@ properties:
>    reg:
>      maxItems: 1
>  
> +  interrupts:
> +    maxItems: 1
> +    description: Optional, operates in polled mode if not present
> +
> +  interrupt-controller: true
> +
> +  "#interrupt-cells":
> +    const: 2
> +
> +  power-domains:
> +    maxItems: 1
> +
>  required:
>    - compatible
>    - reg
>  
> +if:
> +  properties:
> +    compatible:
> +      contains:
> +        enum:
> +          - apple,t8122-spmi
> +          - apple,t6030-spmi
> +          - apple,t6031-spmi
> +then:
> +  required:
> +    - interrupt-controller
> +    - "#interrupt-cells"
> +    - interrupts

[Severity: Medium]
Looking at this if-then block in Documentation/devicetree/bindings/spmi/apple,spmi.yaml,
does it also need to mandate power-domains?

The commit message mentions adding support for SPMI controllers that are
not always-on (corresponding to the newly introduced t6030, t6031, and t8122).
For not-always-on hardware to be accessible without triggering a synchronous
external abort (kernel crash) on register read/write, the driver core must
power it on prior to the driver's probe.

This mechanism relies on the power-domains property being present in the
device tree node. Although power-domains is added to the properties list,
omitting it from this required list allows incomplete device trees to silently
pass schema validation.

> +
>  unevaluatedProperties: false
>  
>  examples:

[Severity: Low]
Looking at the examples section in Documentation/devicetree/bindings/spmi/apple,spmi.yaml,
does it provide coverage for the new interrupt controller capabilities?

The patch adds interrupt controller capabilities to the new hardware variants
(t6030, t6031, t8122) and makes interrupt-controller and #interrupt-cells
conditionally required. However, the existing examples section only uses the
apple,t6000-spmi compatible, which does not trigger the new if-then block
condition:

    spmi@920a1300 {
        compatible = "apple,t6000-spmi", "apple,spmi";

Because of this, the newly added conditionally required properties and their
constraints are completely bypassed and remain untested by schema validation
tools.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260901-t603x-spmi-v9-0-09e702e3b153@chaosmail.tech?part=1

  reply	other threads:[~2026-09-01 10:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-01 10:28 [PATCH v9 0/6] spmi: apple: Additional commands and interrupt support Sasha Finkelstein
2026-09-01 10:29 ` [PATCH v9 1/6] dt-bindings: spmi: apple,spmi: Add t603x and t8122 Sasha Finkelstein
2026-09-01 10:39   ` sashiko-bot [this message]
2026-09-01 17:41   ` Conor Dooley
2026-09-01 18:24     ` Sasha Finkelstein
2026-09-02 17:02       ` Conor Dooley
2026-09-01 10:29 ` [PATCH v9 2/6] spmi: apple: Validate FIFO state Sasha Finkelstein
2026-09-01 10:29 ` [PATCH v9 3/6] spmi: apple: check transaction status Sasha Finkelstein
2026-09-01 10:29 ` [PATCH v9 4/6] spmi: apple: Implement remaining commands Sasha Finkelstein
2026-09-01 10:40   ` sashiko-bot
2026-09-01 10:29 ` [PATCH v9 5/6] spmi: apple: lock around FIFOs Sasha Finkelstein
2026-09-01 10:29 ` [PATCH v9 6/6] spmi: apple: Add interrupt functionality Sasha Finkelstein
2026-09-01 10:40   ` 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=20260901103918.C2B651F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=k@chaosmail.tech \
    --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.