Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Xianwei Zhao via B4 Relay"
	<devnull+xianwei.zhao.amlogic.com@kernel.org>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: interrupt-controller: Add support for Amlogic A9 SoCs
Date: Fri, 08 May 2026 19:26:19 +0000	[thread overview]
Message-ID: <20260508192619.B8810C2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260508-a9-gpio-irqchip-v1-2-9dc5f3e022e0@amlogic.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Nesting an `if/then/else` block directly under an `else` keyword violates the standard dt-bindings schema architecture for handling multiple conditionals.
- [Low] The schema description block was not updated to reflect the newly added hardware capabilities of up to 20 interrupt channels.
--

commit b693f66cbc7c3dca220bdaf6db2d2cc269158d23
Author: Xianwei Zhao <xianwei.zhao@amlogic.com>

dt-bindings: interrupt-controller: Add support for Amlogic A9 SoCs

This commit updates the Amlogic Meson GPIO interrupt controller binding to
support Amlogic A9 SoCs. It adds the new compatible strings and increases the
maximum allowed channel interrupts to 20 for the new hardware variants.

> diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml
> index d0fad930de9d9..d26671913e895 100644
> --- a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml
> +++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml

[ ... ]

> @@ -56,7 +58,7 @@ properties:
>    amlogic,channel-interrupts:
>      description: Array with the upstream hwirq numbers
>      minItems: 2
> -    maxItems: 12
> +    maxItems: 20

Since the maximum number of channel interrupts is increased to 20 here, should
the description block at the top of the schema file be updated as well? 

It currently states the hardware is "essentially a 256 pads to 8 or 12 GIC
interrupt multiplexer".

[ ... ]

> @@ -76,9 +78,20 @@ then:
>      amlogic,channel-interrupts:
>        maxItems: 2
>  else:
> -  properties:
> -    amlogic,channel-interrupts:
> -      minItems: 8
> +  if:
> +    properties:
> +      compatible:
> +        contains:
> +          const: amlogic,a9-gpio-ao-intc

This isn't a bug, but does this structure follow the standard dt-bindings
schema architecture for handling multiple conditionals?

The bindings documentation typically suggests grouping multiple if schemas
under a top-level allOf array, rather than nesting an if block directly under
an else keyword.

> +  then:
> +    properties:
> +      amlogic,channel-interrupts:
> +        minItems: 20
> +  else:
> +    properties:
> +      amlogic,channel-interrupts:
> +        minItems: 8
> +        maxItems: 12

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260508-a9-gpio-irqchip-v1-0-9dc5f3e022e0@amlogic.com?part=2

  parent reply	other threads:[~2026-05-08 19:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-08  7:36 [PATCH 0/3] irqchip: Add GPIO interrupt support for Amlogic A9 Xianwei Zhao via B4 Relay
2026-05-08  7:36 ` [PATCH 1/3] irqchip/meson-gpio: fix incorrect register address Xianwei Zhao via B4 Relay
2026-05-08  7:36 ` [PATCH 2/3] dt-bindings: interrupt-controller: Add support for Amlogic A9 SoCs Xianwei Zhao via B4 Relay
2026-05-08 15:03   ` Conor Dooley
2026-05-08 19:26   ` sashiko-bot [this message]
2026-05-08  7:36 ` [PATCH 3/3] irqchip/meson-gpio: " Xianwei Zhao via B4 Relay
2026-05-08 19:44   ` 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=20260508192619.B8810C2BCB0@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=devnull+xianwei.zhao.amlogic.com@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko@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