Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp759049lqo; Fri, 10 May 2024 14:10:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvtFFHhv+WC3i/FhMVJB4FcyuilRpQOIpKidtiKeqrsejKBDdjHLrKvwNwvtRIypJxjsAiO8LgF2w0nyTiOAahQ8LmuIzIGO2xxBKigg== X-Google-Smtp-Source: AGHT+IECVwEOYb4jUkjYnrT7oV+Z5+OeABld40kXG+UHeXXthFytT86UxuBlUHegfAYRUh8oLcC+ X-Received: by 2002:a17:902:e80b:b0:1eb:5323:c320 with SMTP id d9443c01a7336-1ef4406046fmr52015525ad.56.1715375439178; Fri, 10 May 2024 14:10:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715375439; cv=pass; d=google.com; s=arc-20160816; b=E5mMyi+fMBXPxkv9omweF0MbO1RbtzlODMxCDg2TSuWi+XYpr59yUTr5Uk7Rsm8cMU 3JqXEKnXGFA05lllNWO6gGIiebLVQ8Xm5ViUcw1V3gTY/2kI52FribUkhmQuvWYQdQHg qUFxivGutbpT6/K6sYCyuMCjNnsVMXsjV990ILuZsauXIqyQSbGXq59XyDqzwLthkikC 1MCFWihTdloDu3TNJceiB1FOFKnmKrRg4RJglCa/b8VYl7J5WzPaL+jWZAYAUv1f1U8n PFFTo2m6xebsv+eJnAHLi7aXyO3O+GciHumRnoaKqrf4qfZxYBvxL3fvK9041PMaeJy5 4I6Q== 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=+skuB2zmagV/8g6rICGkPy5tyjjw991V9qJrPvXn/v4=; fh=ubfGm71+NvK0gLpd7FNKppwSycXtvAggaSOT9nDrK64=; b=gb+gUW22TMAKA0nGrHKWJh9mQLBhvSvuWtp+pAUop3zpCKFeXMuCtB3CT/MuIBR2s9 bvzOkdygM7EKotTmxMPAsUBlo+du/aoPImeza+F2dMNR7svulqWteuplv4uPMl5Bg0J8 LU/2ckhzwR1ymdpb0e1FtEWOTTItxURLSJVKsNlO2e9iPZgi5NBdzmMNQyqEAvJv4c6H ZrXEDU76m9ifH0PuUp9a0M5SZu8bVYaaPdH6eUdYyBtIY91rjg09OrQUvC723VN43/7G XWWwniKAclp1YrCnUFZ1LD4PckRvg99cF5EiLAyhpbF9VwlYAhvQVtJxIw5s95NYneC5 Hk5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QjsmvqaT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c0371fcsi42962515ad.330.2024.05.10.14.10.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 14:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QjsmvqaT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176194-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 47F5FB233F0 for ; Fri, 10 May 2024 21:08:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7CEA13B5A7; Fri, 10 May 2024 21:08:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QjsmvqaT" 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 EE62150A93; Fri, 10 May 2024 21:08:07 +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=1715375288; cv=none; b=Sh4KUdfowHZIkXdFNSvxjirEOvSbXJiNYAEmETjo1SHNmuN2iNKnLb1tPKbxQ2BT+bJamk5284uEc9Nuy6QFC+/GYZGT9h7Mu1wVmg00SzhjICcNrBwDbjEvAPXQY9YlS6DlaZk8uj15mfSKBlW/Sh5YGIVXy6TAl6+p0wuk3ec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715375288; c=relaxed/simple; bh=iuyU2fi3wbAe6BlxGsKzyO7Cs/+6WA8IXxbgGdJ7t28=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FFYv8/mBUK2Mmnp8oY9+mPCMEEAfiuYl515XzX9bAu291wEiq9r6Q2whwW40i98lCMbkqP8wUyBCPYtasaLrffXJRX6/uWumCybmWj6K/xGpjlRLVHLjhdgu8gssFVzVnSLWCsLFmbiibAo0wOb267ae7JmaIil7aH2CvlcnxWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QjsmvqaT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B14CC113CC; Fri, 10 May 2024 21:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715375287; bh=iuyU2fi3wbAe6BlxGsKzyO7Cs/+6WA8IXxbgGdJ7t28=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QjsmvqaTp7p9qTQs1z4KIaeUU9+6/mB7ODhfe0HnUXmxk1X3zijVvAr0FAuZrOP3T qhNVv3o0hoqc2p2POO4n/HvE9r4Et4jqPbAoP+RXY/rdItpLcTZk25zMxgJ/4vLECn 6wCb683NNGI03Ry8YUzcd4WI6J4a7S6f5jje8Mp22JVP1LviIEKxDSP8J5d0eLQogN QBUq6wbi34Ohz180vu00W2JBLLaBoc4ZZpeaEmxlZS2tbOJifj0zFzlrWnFfrb3+F8 DxMdLtwWNaBZOAvgpPLBxtzs4bffRi8YbcsQSsKHY8np1OZfzjZVcwZmUpEU5ok1yx ptLNjczT19OwA== Date: Fri, 10 May 2024 16:08:06 -0500 From: Rob Herring To: Amelie Delaunay Cc: Vinod Koul , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v2 04/12] dt-bindings: dma: Document STM32 DMA3 controller bindings Message-ID: <20240510210806.GA746731-robh@kernel.org> References: <20240507125442.3989284-1-amelie.delaunay@foss.st.com> <20240507125442.3989284-5-amelie.delaunay@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240507125442.3989284-5-amelie.delaunay@foss.st.com> On Tue, May 07, 2024 at 02:54:34PM +0200, Amelie Delaunay wrote: > The STM32 DMA3 is a Direct Memory Access controller with different features > depending on its hardware configuration. > The channels have not the same capabilities, some have a larger FIFO, so > their performance is higher. > This patch describes STM32 DMA3 bindings, used to select a channel that > fits client requirements, and to pre-configure the channel depending on > the client needs. > > Signed-off-by: Amelie Delaunay > --- > v2: > - DMA controller specific information description has been moved and > added as description of #dma-cells property > - description has been added to interrupts property specifying the > expected format for channel interrupts > - compatible has been updated to st,stm32mp25-dma3 (SoC specific) > --- > .../bindings/dma/stm32/st,stm32-dma3.yaml | 129 ++++++++++++++++++ > 1 file changed, 129 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/stm32/st,stm32-dma3.yaml > > diff --git a/Documentation/devicetree/bindings/dma/stm32/st,stm32-dma3.yaml b/Documentation/devicetree/bindings/dma/stm32/st,stm32-dma3.yaml > new file mode 100644 > index 000000000000..ed2a84fe2535 > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/stm32/st,stm32-dma3.yaml > @@ -0,0 +1,129 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/stm32/st,stm32-dma3.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics STM32 DMA3 Controller > + > +description: | > + The STM32 DMA3 is a direct memory access controller with different features depending on its > + hardware configuration. > + It is either called LPDMA (Low Power), GPDMA (General Purpose) or HPDMA (High Performance). > + Its hardware configuration registers allow to dynamically expose its features. > + > + GPDMA and HPDMA support 16 independent DMA channels, while only 4 for LPDMA. > + GPDMA and HPDMA support 256 DMA requests from peripherals, 8 for LPDMA. > + > + Bindings are generic for these 3 STM32 DMA3 configurations. > + > + DMA clients connected to the STM32 DMA3 controller must use the format described in "#dma-cells" > + property description below, using a three-cell specifier for each channel. Wrap lines at 80 unless there is some exception to go to 100. > + > +maintainers: > + - Amelie Delaunay > + > +allOf: > + - $ref: /schemas/dma/dma-controller.yaml# > + > +properties: > + compatible: > + const: st,stm32mp25-dma3 > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 4 > + maxItems: 16 > + description: | Don't need '|' if no formatting to preserve. With those fixed, Reviewed-by: Rob Herring (Arm) > + Should contain all of the per-channel DMA interrupts in ascending order with respect to the > + DMA channel index.