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 F37B3C48260 for ; Thu, 8 Feb 2024 23:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lrLzxwRz+egct9JxLxR8ijXyUMhYMRdunEmsvw5v/0k=; b=UWDNnrr59QopMJ/eD8V7yY15EM 9CQqim55xyzDajojIak7deIf0Ibr430tQYCdqmlKRztpwRARZqhatRp5PYHVW+EjntQ6/CpOJlLPQ UePitR8mshC8nD/7GneoTffTlicRaZ2oTfHH9kLZIYRjJdt4IVrWKKrhmu/sFinGGCpl3rGouu6bz ycjumm48+JS5gjmLrZPwa0PIyQxvSSHfq4vWNvRVifya3G/LVpbxUaTF5Irvh1P3QLMtE8rE6ez6L iMRk+R8pSmNWZ0Pj4mF+FTUQ2lY+fWsKfmMYNu4V44IFl2pWWzf09RLVUlGSucOGlZQ/uQVf0Iquy 6z0uzKPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYDXW-0000000FOjE-0fhe; Thu, 08 Feb 2024 23:10:42 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYDXT-0000000FOiE-1rBQ for linux-arm-kernel@lists.infradead.org; Thu, 08 Feb 2024 23:10:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id BC54561F8E; Thu, 8 Feb 2024 23:10:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A3EBC433F1; Thu, 8 Feb 2024 23:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707433837; bh=lhdos3/FRVCViIYt/3y2jkHpoKfTqfy0DuWlvx2WQuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XGm3mTcFrkS2QGE9MXtwhMYYXQl8c8mTcrcz0MzZAAp8VhfZq1+jKWnmi2zSmaGpS sWxsOdjh4L/QZArLu9nZrG6+0lFPcHm0JkDbjUVSkivEO7uyl6J9GjBC0Opw/XWnOe r6AsAAVm909sz6mXdBFCn8+Zl1pY5ZtuP47vUucRJF/LLKhcvo8tf1zw2fGDQEeyoc lKLItCpSu4f2hdRBKwmteNPCnIaf+EhOkKgoU1v7AljcmoxAzk17AyTJlZOaJ2MkbT SOHd29Q6S2kIdkFtJmbbGWwRVThZTLgbZxA3O5z4Z4Fi4knuY29TGKyIngWNkVZt80 ht/PBAb6pGkbQ== Date: Thu, 8 Feb 2024 23:10:32 +0000 From: Conor Dooley To: Dharma Balasubiramani Subject: Re: [PATCH] dt-bindings: interrupt-controller: Convert Atmel AIC to json-schema Message-ID: <20240208-daintily-craftsman-c7f514d49c0f@spud> References: <20240208092015.263210-1-dharma.b@microchip.com> MIME-Version: 1.0 In-Reply-To: <20240208092015.263210-1-dharma.b@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240208_151039_592620_8B52FDFE X-CRM114-Status: GOOD ( 18.43 ) 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: , Cc: devicetree@vger.kernel.org, alexandre.belloni@bootlin.com, linux-kernel@vger.kernel.org, conor+dt@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, claudiu.beznea@tuxon.dev, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============8743424803463464013==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============8743424803463464013== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BfuxVjJMfQvJA03G" Content-Disposition: inline --BfuxVjJMfQvJA03G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey Dharma, Overall this looks alright, but I have a few comments for you. On Thu, Feb 08, 2024 at 02:50:15PM +0530, Dharma Balasubiramani wrote: > diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.yaml b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.yaml > new file mode 100644 > index 000000000000..396eac53da3a > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.yaml > @@ -0,0 +1,88 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/interrupt-controller/atmel,aic.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Advanced Interrupt Controller (AIC) > + > +maintainers: > + - Nicolas Ferre > + - Dharma balasubiramani > + > +description: | The chomping operator, |, is not needed here as you have no formatting to preserve. > + The Advanced Interrupt Controller (AIC) is an 8-level priority, individually > + maskable, vectored interrupt controller providing handling of up to one > + hundred and twenty-eight interrupt sources. > It is designed to substantially > + reduce the software and real-time overhead in handling internal and external > + interrupts. This reeks of a marketing statement and should be removed IMO. > +allOf: > + - $ref: /schemas/interrupt-controller.yaml# > + > +properties: > + compatible: > + enum: > + - atmel,at91rm9200-aic > + - atmel,sama5d2-aic > + - atmel,sama5d3-aic > + - atmel,sama5d4-aic > + - microchip,sam9x60-aic > + > + interrupt-controller: true > + > + "#interrupt-cells": > + const: 3 > + description: | > + The 1st cell is the IRQ number (Peripheral IDentifier on datasheet). > + The 2nd cell specifies flags: > + bits[3:0] trigger type and level flags: > + 1 = low-to-high edge triggered. > + 2 = high-to-low edge triggered. > + 4 = active high level-sensitive. > + 8 = active low level-sensitive. > + Valid combinations: 1, 2, 3, 4, 8. Shame that these are not aligned with the IRQ_TYPE defines :( > + Default for internal sources: 4 (active high). > + The 3rd cell specifies irq priority from 0 (lowest) to 7 (highest). > + > + interrupts: > + description: Interrupt source of the parent interrupt controller. Drop the description, it's obvious. > + maxItems: 1 > + > + reg: A nit, but I would put reg after compatible. > + description: Specifies base physical address(s) and size of the AIC registers. Same here. > + maxItems: 1 > + > + atmel,external-irqs: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: u32 array of external irqs. > + > +required: > + - compatible > + - interrupt-controller > + - "#interrupt-cells" > + - reg A nit, but I would put reg after compatible > + - atmel,external-irqs > + > +unevaluatedProperties: false > + > +examples: > + - | > + /* AIC */ Drop the comment, its obvious. > + aic: interrupt-controller@fffff000 { The node name here is not used, drop it. > + compatible = "atmel,at91rm9200-aic"; > + interrupt-controller; > + #interrupt-cells = <3>; > + reg = <0xfffff000 0x200>; > + atmel,external-irqs = <31>; > + }; > + > + - | > + /* An interrupt generating device that is wired to an AIC. */ > + dma: dma-controller@ffffec00 { > + compatible = "atmel,at91sam9g45-dma"; > + #dma-cells = <2>; > + reg = <0xffffec00 0x200>; > + interrupts = <21 4 5>; > + }; And delete this whole example :) Cheers, Conor. --BfuxVjJMfQvJA03G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcVfaAAKCRB4tDGHoIJi 0qFfAP9f7CgCDfdt+jqCp1hlMsB/4vlKyCAoGb92Hen1sqXizQEAsOMwh1LtoGiK xxGnS6Su5F3v+hfMCZFYXGdNFOwDoQY= =tsS3 -----END PGP SIGNATURE----- --BfuxVjJMfQvJA03G-- --===============8743424803463464013== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============8743424803463464013==--