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 76DCDC4829E for ; Thu, 15 Feb 2024 19:28:13 +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=A4qxkgrTVgKvyYdx6gcpi/P/I91Tpa7kHRC1E999mak=; b=0J3bDw8m6pOBfsYdT0FRpvJERy p54q86EdIZtPBzg08iZBg23nNx5N14r4N1K4tgALTWb7j9yo2l9Z2RKAtBnKef6M3ny/wc7KTiLSN iuSWXILvkkDFOkUNksHJShjjsmOwXwHiIWQ6rLHKRI6z61Fh6smciyLOs9qXiKbkfnmgpnIp+MBzX eX8GrYuCrT7EDmXM8aE32yAhKPojyzwrSr7e1sc/azc3LpX1V+Jq5nyhKlHrZ2ygKNEqQJABqagiT 9Az+uyJ3jD4wstgHzBlnpE8HTSIOCs73C3JD6fvoZcnTqjLS2pyvZEkdq++gNe7Ydc6ivrJbUSXSE Ge+Xq9CQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rahOt-0000000HVLm-28p3; Thu, 15 Feb 2024 19:28:03 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rahOq-0000000HVJg-3i3b for linux-arm-kernel@lists.infradead.org; Thu, 15 Feb 2024 19:28:02 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 03846CE27FC; Thu, 15 Feb 2024 19:27:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DCCBC433C7; Thu, 15 Feb 2024 19:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708025277; bh=B78tA8mwIJHcwuf2kjNoy1MeVZF1wEVHnLOpPqSiT6Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ESSBPCq6Mv09IKJYpnk+10FnNRAqmX1wv+FDoOylq3zXzhHDIPbmL35QKW0qOOL44 e/MzsY4QXAz1EBrUnfP+RPWibnwRFcVMHII27qacd/1jKbv5aG798jc0ED5ClHO1oB 1bAYTYN2OCUi2AiusQ1IKRcW1YUaurJBuqCtM7nnOJiBU+jk9dbp5lTLueW4HiUNqV ZBboK1JdCnD/aiNj4rV0m9f40N6LhfN2pK9AGCsvnz/LP7lUJX+Pi3a7PA9M8I5tHn 6HeSZBPQRabsIAgV89MOfsnO6E5Ns4GQF4nNMfG5WMHWoqfAujfDYccHMO9a261IvL cMdGdzThwyXSg== Date: Thu, 15 Feb 2024 19:27:52 +0000 From: Conor Dooley To: Durai Manickam KR Subject: Re: [PATCH] dt-bindings: dma: convert atmel-dma.txt to YAML Message-ID: <20240215-broken-emu-64a6dabc43e2@spud> References: <20240215-dmac-v1-1-8f1c6f031c98@microchip.com> MIME-Version: 1.0 In-Reply-To: <20240215-dmac-v1-1-8f1c6f031c98@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240215_112801_323777_A7F58C9E X-CRM114-Status: GOOD ( 31.45 ) 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 , Tudor Ambarus , linux-kernel@vger.kernel.org, Conor Dooley , Vinod Koul , Rob Herring , Ludovic Desroches , Krzysztof Kozlowski , Claudiu Beznea , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============0178802326102106037==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0178802326102106037== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/iXZ72FAuAF0yk9f" Content-Disposition: inline --/iXZ72FAuAF0yk9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 15, 2024 at 04:15:44PM +0530, Durai Manickam KR wrote: > Added a description, required properties and appropriate compatibles > for all the SoCs that are supported by microchip. >=20 > Signed-off-by: Durai Manickam KR > --- > .../devicetree/bindings/dma/atmel-dma.txt | 42 ------------- > .../bindings/dma/microchip,at91-dma.yaml | 71 ++++++++++++++++= ++++++ > 2 files changed, 71 insertions(+), 42 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/dma/atmel-dma.txt b/Docume= ntation/devicetree/bindings/dma/atmel-dma.txt > deleted file mode 100644 > index f69bcf5a6343..000000000000 > --- a/Documentation/devicetree/bindings/dma/atmel-dma.txt > +++ /dev/null > @@ -1,42 +0,0 @@ > -* Atmel Direct Memory Access Controller (DMA) > - > -Required properties: > -- compatible: Should be "atmel,-dma". > -- reg: Should contain DMA registers location and length. > -- interrupts: Should contain DMA interrupt. > -- #dma-cells: Must be <2>, used to represent the number of integer cells= in > -the dmas property of client devices. > - > -Example: > - > -dma0: dma@ffffec00 { > - compatible =3D "atmel,at91sam9g45-dma"; > - reg =3D <0xffffec00 0x200>; > - interrupts =3D <21>; > - #dma-cells =3D <2>; > -}; > - > -DMA clients connected to the Atmel DMA controller must use the format > -described in the dma.txt file, using a three-cell specifier for each cha= nnel: > -a phandle plus two integer cells. > -The three cells in order are: > - > -1. A phandle pointing to the DMA controller. > -2. The memory interface (16 most significant bits), the peripheral inter= face > -(16 less significant bits). > -3. Parameters for the at91 DMA configuration register which are device > -dependent: > - - bit 7-0: peripheral identifier for the hardware handshaking interfac= e. The > - identifier can be different for tx and rx. > - - bit 11-8: FIFO configuration. 0 for half FIFO, 1 for ALAP, 2 for ASA= P. > - > -Example: > - > -i2c0@i2c@f8010000 { > - compatible =3D "atmel,at91sam9x5-i2c"; > - reg =3D <0xf8010000 0x100>; > - interrupts =3D <9 4 6>; > - dmas =3D <&dma0 1 7>, > - <&dma0 1 8>; > - dma-names =3D "tx", "rx"; > -}; > diff --git a/Documentation/devicetree/bindings/dma/microchip,at91-dma.yam= l b/Documentation/devicetree/bindings/dma/microchip,at91-dma.yaml > new file mode 100644 > index 000000000000..a0a582902e4d > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/microchip,at91-dma.yaml Filename matching the compatible please. > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/microchip,at91-dma.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Atmel Direct Memory Access Controller (DMA) > + > +maintainers: > + - Ludovic Desroches > + - Tudor Ambarus > + > +description: | The | is not needed. > + The Atmel Direct Memory Access Controller (DMAC) transfers data from a= source > + peripheral to a destination peripheral over one or more AMBA buses. On= e channel > + is required for each source/destination pair. In the most basic config= uration, > + the DMAC has one master interface and one channel. The master interfac= e reads > + the data from a source and writes it to a destination. Two AMBA transf= ers are > + required for each DMAC data transfer. This is also known as a dual-acc= ess transfer. > + The DMAC is programmed via the APB interface. > + > +properties: > + compatible: > + oneOf: > + - enum: > + - atmel,at91sam9g45-dma > + - atmel,at91sam9rl-dma > + reg: > + description: Should contain DMA registers location and length. Drop the description from these common properties. > + maxItems: 1 > + > + interrupts: > + description: Should contain the DMA interrupts associated to the DMA= channels. > + maxItems: 1 > + > + "#dma-cells": > + description: > + Must be <2>, used to represent the number of integer cells in the = dmas > + property of client devices. You've lost the description of how these cells work, which is somewhat unique and needs to be preserved. This is the only property that needs a description. > + const: 2 > + > + clocks: > + description: Should contain a clock specifier for each entry in cloc= k-names. > + maxItems: 1 > + > + clock-names: > + description: Should contain the clock of the DMA controller. > + const: dma_clk This is a new addition? You should call out in the commit message wat you've added that was not in th text binding. > + > +required: > + - compatible > + - reg > + - interrupts > + - "#dma-cells" > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + dma0: dma-controller@ffffec00 { Drop the label, its not used. Thanks, Conor. > + compatible =3D "atmel,at91sam9g45-dma"; > + reg =3D <0xffffec00 0x200>; > + interrupts =3D <21>; > + #dma-cells =3D <2>; > + clocks =3D <&pmc 2 20>; > + clock-names =3D "dma_clk"; > + }; > + > +... >=20 > --- > base-commit: 7e90b5c295ec1e47c8ad865429f046970c549a66 > change-id: 20240214-dmac-5f48fd7f3b9d >=20 > Best regards, > --=20 > Durai Manickam KR >=20 --/iXZ72FAuAF0yk9f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZc5luAAKCRB4tDGHoIJi 0pZ7AP9n//Tc16Y7sathkrqYZctgnGZndX8EG6lO9YREEHFWSgEA9A8snBLnm4Gz wPMTjmPK3L6Re/0FWReZcHxvibMJeAU= =4pGP -----END PGP SIGNATURE----- --/iXZ72FAuAF0yk9f-- --===============0178802326102106037== 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 --===============0178802326102106037==--