Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp669004rdb; Thu, 15 Feb 2024 11:28:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKwblNbl/8WL1Z3eH9wgH335eslfogyRQkiRIC3IV5h02swYr0CWde1prmW0/hl3+oHIMUyPNGsOBXy61Kxua8n4MNy3migK74pJfQrg== X-Google-Smtp-Source: AGHT+IFO3sqv06ty81+SoIpNAgEcplmA01GLh1OU+MKBqs2SaCoyPZrHwxjiv15Ufi/cTO+NDbHu X-Received: by 2002:a05:6214:5190:b0:68c:8422:6dec with SMTP id kl16-20020a056214519000b0068c84226decmr2953918qvb.37.1708025286008; Thu, 15 Feb 2024 11:28:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708025285; cv=pass; d=google.com; s=arc-20160816; b=xVdn6mqrFz+o0zXoOD/Vhlb5x0wvAe5+C6WeCG/gC67LIDCmL5NZTzJWtH2E2lLqCp qruJVTD1oLk/Vlowt5nM9JtnkbJEZ7XMSNvRKHi1m9DeSrx9eA7uTL0Xhe0ameXwyDhM B0FpPb2bWOZnEM+9L9/++8A272I+t4btAtVPsX3ttwpvEo0yhjRjaKAqUjHwAoSyWOfo YEYsTIanhHMsLJgLqey9FKLSnaXGFH6vkoaCtQ+FLwS+3n+Bif/cAsdhY8F+B9WepKOH TMVYXMBBT7VirzqCnuZX6G8pnoMdWHP+B8bijNb7fd3714mTFOF7QetpzrRp2M1BILyH 7jBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WyEsTQeowuUzEtCB+MMCfDApp2BJ94gm7L9PMTkswEc=; fh=ooZrVDJuu7wg59VZQz8Qd4HMgT0sz43z8jf+H6fxKr0=; b=vOlH0NJoYQBVYk43+0Cr+aGXCs5kul9zhnAUqbpEAV+d5eojJ4l6ezZElmBoguEgWN 7tpC2aEzV0eWWiIBsu7V+jSRTE3qj/4GidaSCuB70C5wAwglH0RiMJ6G2kCQwATo0l7i u1w5fOM/qLEvSu2WYgmUjZh+INHnGxOBaEeI2cL9GX5azis5SJtHbq5RX59jxvS2GTym KZF+jeSZaHES8p74LQqdA5ql7MqZykCrxwv+SwrirVA5vSa1wV05AeCvF4ebo5T78W6I U+hX+DaULiry1IKElDgILVkL1+U+2jEe1j7AGC1rH3SndIgiJ06wPk2TO3vmUkFqfNvf R0Lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ESSBPCq6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f6-20020a0562141d2600b0068caf790cdcsi2144324qvd.121.2024.02.15.11.28.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 11:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ESSBPCq6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B375A1C23C76 for ; Thu, 15 Feb 2024 19:28:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B04A513A247; Thu, 15 Feb 2024 19:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ESSBPCq6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFBF04369A; Thu, 15 Feb 2024 19:27:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025278; cv=none; b=TDs1FiGK95YqX0ZFMsapsiNuBtT2YedLcDdc6wveNMUHHyVj+i9r5j5BiFx2TEPRg6p1Otboyi1PB6udFJ2isGsxW4OkQ3MYMecntPXyt1qVNPhw6wl4VOslfAVx9IrtL0SFPzCOPkQrDKOcqP7FUfv7GPN1fGgESCAxcPjCYOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025278; c=relaxed/simple; bh=B78tA8mwIJHcwuf2kjNoy1MeVZF1wEVHnLOpPqSiT6Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z/YL5jQO0ffedJKpRONiTKUqCKsv+aCSskkD9BY8lWIoWqnTljHb0hRDEOut9rSkbfq759C3EDJcDEZzhYsNsOOGno4k75nthjzL61Yh3prZz7QRogOAf6OVHp9hnzLcd6nRYmpYc4qw+OKYz+GNEBAzzpx8EsrSMPNIOgtFfpU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ESSBPCq6; arc=none smtp.client-ip=10.30.226.201 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 Cc: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Ludovic Desroches , Tudor Ambarus , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/iXZ72FAuAF0yk9f" Content-Disposition: inline In-Reply-To: <20240215-dmac-v1-1-8f1c6f031c98@microchip.com> --/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--