From: sashiko-bot@kernel.org
To: "Janne Grunau" <j@jannau.net>
Cc: conor+dt@kernel.org, robh@kernel.org,
linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 02/10] dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition
Date: Wed, 15 Jul 2026 09:24:16 +0000 [thread overview]
Message-ID: <20260715092416.8BD311F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260715-apple-t603x-initial-devices-v2-2-df65b2485710@jannau.net>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The inverted conditional block intended to enforce `#interrupt-cells: 4` for multi-die SoCs omits the new M3 multi-die compatible (`apple,t6031-aic3`), causing it to incorrectly receive a `const: 3` constraint.
- [High] The new `apple,t6031-aic3` compatible string is completely missing from the top-level `compatible` property definition.
--
--- Patch [2]: [PATCH v2 02/10] dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition ---
commit c6c471e4280adaa7e66dba52b531c34594c8ccfa
Author: Janne Grunau <j@jannau.net>
dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition
The commit inverts the condition for #interrupt-cells in the apple,aic2
binding. It lists compatibles used for multi-die SoCs explicitly and uses
4 #interrupt-cells for them, while defaulting to 3 for others. The commit
message mentions this accommodates M3 Max and Ultra based devices.
> The condition for 3 or 4 #interrupt-cells list compatibles for the 3
> cells variant (not used in SoCs consisting out of multiple dies). This
> includes the AICv3 base compatible "apple,t8122-aic3". This will match
> compatible = "apple,t6031-aic3", "apple,t8122-aic3";
> shared for M3 Max and Ultra based devices which require the additional
[Severity: High]
Is apple,t6031-aic3 missing from the top-level compatible definition?
Looking at the top-level definition in this file, apple,t6031-aic3 is not
listed as a valid compatible string:
properties:
compatible:
oneOf:
- items:
- enum:
- apple,t6000-aic
- apple,t6020-aic
- apple,t8112-aic
...
- items:
- enum:
- apple,t6030-aic3
- const: apple,t8122-aic3
Will this cause dt_binding_check to fail for any device tree node using
the apple,t6031-aic3 compatible string, as the string is not recognized as
a valid value?
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml b/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml
> index d0d9a90e96e7b..a94787939d345 100644
> --- a/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml
> +++ b/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml
> @@ -128,16 +128,16 @@ allOf:
> compatible:
> contains:
> enum:
> - - apple,t8112-aic
> - - apple,t8122-aic3
> + - apple,t6000-aic
> + - apple,t6020-aic
[Severity: High]
Should apple,t6031-aic3 be included in this enumerated list of multi-die
SoCs?
Because it is omitted here, won't it fall into the else block which enforces
const: 3 instead of the intended const: 4?
This seems like it will cause device tree nodes for M3 Max and Ultra to fail
schema validation when they specify the correct 4 interrupt cells.
> then:
> properties:
> '#interrupt-cells':
> - const: 3
> + const: 4
> else:
> properties:
> '#interrupt-cells':
> - const: 4
> + const: 3
>
> examples:
> - |
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260715-apple-t603x-initial-devices-v2-0-df65b2485710@jannau.net?part=2
next prev parent reply other threads:[~2026-07-15 9:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 9:11 [PATCH v2 00/10] Initial Apple M3 Pro, Max and Ultra device trees Janne Grunau
2026-07-15 9:11 ` [PATCH v2 01/10] dt-bindings: arm: apple: Add M3 Pro/Max/Ultra devices (T603x) Janne Grunau
2026-07-15 9:11 ` [PATCH v2 02/10] dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition Janne Grunau
2026-07-15 9:24 ` sashiko-bot [this message]
2026-07-15 9:11 ` [PATCH v2 03/10] dt-bindings: interrupt-controller: apple,aic2: Add apple,t6031-aic3 compatible Janne Grunau
2026-07-15 9:11 ` [PATCH v2 04/10] dt-bindings: arm: apple: apple,pmgr: Add t6030 and t6031 compatibles Janne Grunau
2026-07-15 9:19 ` sashiko-bot
2026-07-15 9:11 ` [PATCH v2 05/10] dt-bindings: power: apple,pmgr-pwrstate: " Janne Grunau
2026-07-15 9:17 ` sashiko-bot
2026-07-15 9:11 ` [PATCH v2 06/10] dt-bindings: watchdog: apple,wdt: " Janne Grunau
2026-07-15 9:11 ` [PATCH v2 07/10] dt-bindings: i2c: apple,i2c: " Janne Grunau
2026-07-15 9:11 ` [PATCH v2 08/10] dt-bindings: pwm: apple,s5l-fpwm: " Janne Grunau
2026-07-15 9:11 ` [PATCH v2 09/10] arm64: dts: apple: Initial T603[124] (M3 Max and Ultra) device trees Janne Grunau
2026-07-15 9:11 ` [PATCH v2 10/10] arm64: dts: apple: Initial T6030 (M3 Pro) " Janne Grunau
2026-07-15 9:27 ` 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=20260715092416.8BD311F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j@jannau.net \
--cc=linux-watchdog@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