From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24AC4C3DA7F for ; Thu, 8 Aug 2024 02:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:Cc:To:From :Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=p3ilg2gVZJH5vdrihWiLoWQGJDaURTnTlqTiM9bPkdc=; b=gkT2KbEZfDoJhiAgXmVzhmGGzs hA/yCbifWSRWTadVSKvf2Rf6hE97K2Bz/9EEaetMHFdA1GtSXlai+jTARJUWvHUc0SS234145pS5V zxml/94200Xwvn1ONiKvZl4gccXwTvtKbZsDAmjTYLB7xxnb0xD3ZpeJrUHYGgNl4Ufa2i8cGdY9e uqv4u2Eo23wYjrTko269pc5VvhxoepDGtsKkZU1OdVLOzh0F2TXUt9wBu38IWyxWREx0a8aVaIcyL 6Ev5KaWncbt9HSeiYKy4GSBqeNt90vK/wkPk4ijmk67eyj7/PNE9bKAbApKrKLZiHJuTfse2YSfa9 OUZivyjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbsZ7-00000006n1D-1c3p; Thu, 08 Aug 2024 02:07:45 +0000 Received: from pi.codeconstruct.com.au ([203.29.241.158] helo=codeconstruct.com.au) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbsYT-00000006mtq-2OX4 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 02:07:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1723082823; bh=p3ilg2gVZJH5vdrihWiLoWQGJDaURTnTlqTiM9bPkdc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=i0k+zehy7EYnSOH1LBCu2ZXr042s86faHL6a18sqyklBYvkjuBdesy4SifkdCWgwV bjxCV0MBOnyrwzfDPzV3ksPZpGwP0Yf6CUZNSUhItL2a9ZhjZZIlmp53T0j7dS1XKV k8hMX4Ps4facy8ufItJMg/Hf9QLOdEM8TFTEl7au2be6rYKRwVtuS74n/40PbBEKgZ vJFoYyKL895DmSlEkbgAx77ti+eoQXA4a4xs7W4cOqvlLoA8jWTE/suLnQIVnFkdi5 SEIwEvskTms8O2Z2BhzmCTrxP7gGlPGGQEL6gr0fYbiCVQYsl+KykxZ8nlkEi253nS jVAnv5kBTZdhQ== Received: from [192.168.68.112] (203-57-213-111.dyn.iinet.net.au [203.57.213.111]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 34CF466F97; Thu, 8 Aug 2024 10:07:03 +0800 (AWST) Message-ID: <35175ad3d24f86439f1cd87c733989d24dec3a5c.camel@codeconstruct.com.au> Subject: Re: [PATCH 2/2] dt-bindings: misc: aspeed,ast2400-cvic: Convert to DT schema From: Andrew Jeffery To: Rob Herring Cc: Thomas Gleixner , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Date: Thu, 08 Aug 2024 11:37:02 +0930 In-Reply-To: <20240806172917.GA1836473-robh@kernel.org> References: <20240802-dt-warnings-irq-aspeed-dt-schema-v1-0-8cd4266d2094@codeconstruct.com.au> <20240802-dt-warnings-irq-aspeed-dt-schema-v1-2-8cd4266d2094@codeconstruct.com.au> <20240806172917.GA1836473-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_190705_947254_C39BC5C1 X-CRM114-Status: GOOD ( 24.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 2024-08-06 at 11:29 -0600, Rob Herring wrote: > On Fri, Aug 02, 2024 at 03:06:31PM +0930, Andrew Jeffery wrote: > > Address warnings such as: > >=20 > > arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-galaxy100.dtb: interru= pt-controller@1e6c0080: 'valid-sources' does not match any of the regexes: = 'pinctrl-[0-9]+' > >=20 > > and > >=20 > > arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-galaxy100.dtb: /ahb/co= pro-interrupt-controller@1e6c2000: failed to match any schema with compatib= le: ['aspeed,ast2400-cvic', 'aspeed-cvic'] > >=20 > > Note that the conversion to DT schema causes some further warnings to > > be emitted, because the Aspeed devicetrees are not in great shape. Thes= e > > new warnings are resolved in a separate series: > >=20 > > https://lore.kernel.org/lkml/20240802-dt-warnings-bmc-dts-cleanups-v1-0= -1cb1378e5fcd@codeconstruct.com.au/ > >=20 > > Signed-off-by: Andrew Jeffery > > --- > > .../bindings/misc/aspeed,ast2400-cvic.yaml | 60 ++++++++++++++= ++++++++ > > .../devicetree/bindings/misc/aspeed,cvic.txt | 35 ------------- > > 2 files changed, 60 insertions(+), 35 deletions(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/misc/aspeed,ast2400-cvic= .yaml b/Documentation/devicetree/bindings/misc/aspeed,ast2400-cvic.yaml > > new file mode 100644 > > index 000000000000..3c85b4924c05 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/misc/aspeed,ast2400-cvic.yaml > > @@ -0,0 +1,60 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/misc/aspeed,ast2400-cvic.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Aspeed Coprocessor Vectored Interrupt Controller > > + > > +maintainers: > > + - Andrew Jeffery > > + > > +description: > > + The Aspeed AST2400 and AST2500 SoCs have a controller that provides = interrupts > > + to the ColdFire coprocessor. It's not a normal interrupt controller = and it > > + would be rather inconvenient to create an interrupt tree for it, as = it > > + somewhat shares some of the same sources as the main ARM interrupt c= ontroller > > + but with different numbers. > > + > > + The AST2500 also supports a software generated interrupt. > > + > > +properties: > > + compatible: > > + items: > > + - enum: > > + - aspeed,ast2400-cvic > > + - aspeed,ast2500-cvic > > + - const: aspeed,cvic > > + > > + reg: > > + maxItems: 1 > > + > > + valid-sources: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + description: > > + One cell, bitmap of support sources for the implementation. > > + > > + copro-sw-interrupts: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + description: > > + A list of interrupt numbers that can be used as software interru= pts from > > + the ARM to the coprocessor. > > + > > +required: > > + - compatible > > + - reg > > + - valid-sources > > + > > +allOf: > > + - $ref: /schemas/interrupt-controller.yaml# >=20 > Doesn't really look like this schema applies to this binding. Drop the= =20 > ref. >=20 Ack. Thanks for the review. Andrew >=20