From: Andrew Jeffery <andrew@codeconstruct.com.au>
To: "Rob Herring (Arm)" <robh@kernel.org>,
Eddie James <eajames@linux.ibm.com>,
Thomas Gleixner <tglx@linutronix.de>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Joel Stanley <joel@jms.id.au>, Lee Jones <lee@kernel.org>
Cc: Andrew Jeffery <andrew@aj.id.au>,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] dt-bindings: interrupt-controller: Convert aspeed,ast2xxx-scu-ic to DT schema
Date: Wed, 07 May 2025 12:56:14 +0930 [thread overview]
Message-ID: <34dcdbd4fb15a988f15e812faa566b32506a2f2f.camel@codeconstruct.com.au> (raw)
In-Reply-To: <20250505144613.1287360-1-robh@kernel.org>
Hi Rob,
Thanks for the conversion. One comment below:
On Mon, 2025-05-05 at 09:46 -0500, Rob Herring (Arm) wrote:
> Convert the Aspeed SCU interrupt controller binding to schema format.
> It's a straight-forward conversion of the typical interrupt
> controller.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
> .../aspeed,ast2500-scu-ic.yaml | 48
> +++++++++++++++++++
> .../aspeed,ast2xxx-scu-ic.txt | 23 ---------
> .../bindings/mfd/aspeed,ast2x00-scu.yaml | 9 +++-
> MAINTAINERS | 2 +-
> 4 files changed, 57 insertions(+), 25 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2500-scu-ic.yaml
> delete mode 100644 Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2xxx-scu-ic.txt
>
> diff --git a/Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2500-scu-ic.yaml
> b/Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2500-scu-ic.yaml
> new file mode 100644
> index 000000000000..d5287a2bf866
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2500-scu-ic.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright 2025 Eddie James
> +%YAML 1.2
> +---
> +$id:
> http://devicetree.org/schemas/interrupt-controller/aspeed,ast2500-scu-ic.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Aspeed AST25XX and AST26XX SCU Interrupt Controller
> +
> +maintainers:
> + - Eddie James <eajames@linux.ibm.com>
> +
> +properties:
> + compatible:
> + enum:
> + - aspeed,ast2500-scu-ic
> + - aspeed,ast2600-scu-ic0
> + - aspeed,ast2600-scu-ic1
> +
> + reg:
> + maxItems: 1
> +
> + '#interrupt-cells':
> + const: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + interrupt-controller: true
> +
> +required:
> + - compatible
> + - reg
> + - '#interrupt-cells'
> + - interrupts
> + - interrupt-controller
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + interrupt-controller@18 {
> + compatible = "aspeed,ast2500-scu-ic";
> + reg = <0x18 0x4>;
> + #interrupt-cells = <1>;
> + interrupts = <21>;
> + interrupt-controller;
> + };
> diff --git a/Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2xxx-scu-ic.txt
> b/Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2xxx-scu-ic.txt
> deleted file mode 100644
> index 251ed44171db..000000000000
> --- a/Documentation/devicetree/bindings/interrupt-
> controller/aspeed,ast2xxx-scu-ic.txt
> +++ /dev/null
> @@ -1,23 +0,0 @@
> -Aspeed AST25XX and AST26XX SCU Interrupt Controller
> -
> -Required Properties:
> - - #interrupt-cells : must be 1
> - - compatible : must be "aspeed,ast2500-scu-ic",
> - "aspeed,ast2600-scu-ic0" or
> - "aspeed,ast2600-scu-ic1"
> - - interrupts : interrupt from the parent
> controller
> - - interrupt-controller : indicates that the
> controller receives and
> - fires new interrupts for child
> busses
> -
> -Example:
> -
> - syscon@1e6e2000 {
> - ranges = <0 0x1e6e2000 0x1a8>;
> -
> - scu_ic: interrupt-controller@18 {
> - #interrupt-cells = <1>;
> - compatible = "aspeed,ast2500-scu-ic";
> - interrupts = <21>;
> - interrupt-controller;
> - };
> - };
> diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-
> scu.yaml b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-
> scu.yaml
> index c800d5e53b65..12986ebe7ec7 100644
> --- a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
> +++ b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
> @@ -48,8 +48,15 @@ properties:
>
> patternProperties:
> '^p2a-control@[0-9a-f]+$':
> - description: See Documentation/devicetree/bindings/misc/aspeed-
> p2a-ctrl.txt
> type: object
> + additionalProperties: true
> + properties:
> + compatible:
> + contains:
> + enum:
> + - aspeed,ast2500-scu-ic
> + - aspeed,ast2600-scu-ic0
> + - aspeed,ast2600-scu-ic1
This change should be done on the interrupt-controller pattern property
node rather than the p2a-controller node.
Andrew
next prev parent reply other threads:[~2025-05-07 3:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-05 14:46 [PATCH] dt-bindings: interrupt-controller: Convert aspeed,ast2xxx-scu-ic to DT schema Rob Herring (Arm)
2025-05-07 3:26 ` Andrew Jeffery [this message]
2025-05-14 12:15 ` Rob Herring
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=34dcdbd4fb15a988f15e812faa566b32506a2f2f.camel@codeconstruct.com.au \
--to=andrew@codeconstruct.com.au \
--cc=andrew@aj.id.au \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eajames@linux.ibm.com \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=tglx@linutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).