Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2613318imm; Sun, 7 Oct 2018 08:00:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV60zzatTBcYFOe9Uiufja+kxkZqk5m4y2c/iZOI19zKzQefwOQO1ji8G9niWaLMWUtIFzlV2 X-Received: by 2002:a17:902:4d45:: with SMTP id o5-v6mr19665197plh.42.1538924420853; Sun, 07 Oct 2018 08:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538924420; cv=none; d=google.com; s=arc-20160816; b=YHhcNKmxHdm+dI3Z2/gm9dTgY1ToYcZQIiGnnIHliEwYIpIMkIvhfY5FR3e6Kr88u6 o1lWI9/N/qDjL8xdNCEoDkanPsY9AVXns9hpTDpDiGr7pio558L7wkE/UYiz3ppgI8o7 pksTuJfvqTScOi7Zf3MIYHoK9a75J8XIzjlPHPHAUxHUXzXsHyVyFY1ypkORPiIErGtP Vux/xyeMcbl+PreNM9l7CbQ0xzWWI4q4MiPyhv24uWx1A1dB38oghdV6I6J/zM8jaHs1 fonh9ZtDYRZ61ud7fg6+T1my/vt3orIoDgwobEoxu7MrEnR9S8M6mQmrFaYjD/0ENLqv ZrQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FaIlgzq92r2+kfCyREjRIoYcjAo68iStLlhK8s9t1xA=; b=eaDsbe/mildfcDHZYe3gLxMfqt5dLhREbByHdm8BoOJ6GZ7fvOozUNPbIWwJRnvbU0 F68WHwmXTXxr32v6jLw/TyCAgQcshCRC0oUVZJV+zMJLWQ+EnFr9QHSmk+a153yeCHxN om6I1fxMMSSYFnvsI8vhqHEzdME3X01GGLDAZdNgkE2gOemZblFVc8s512/sxYLiL3XJ o1IJYT80xHJQ+BXXmujdTFYEfIU4UDfR1EVQmQ6Wy/R1AWv9WlG1C3v9iy7Kf144TIlr RJj9dU82Ad2NKixTlgRbEtB8rNiwkOiZiTUrQi8NLWW8vDaiNsch43ES5kTGJL0tVb2u GDcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dsyuUC+9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15-v6si16279441pli.239.2018.10.07.08.00.05; Sun, 07 Oct 2018 08:00:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dsyuUC+9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbeJGWHL (ORCPT + 99 others); Sun, 7 Oct 2018 18:07:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:53356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbeJGWHL (ORCPT ); Sun, 7 Oct 2018 18:07:11 -0400 Received: from localhost (unknown [171.76.113.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F10562075C; Sun, 7 Oct 2018 14:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538924379; bh=fRX0mNpuzLX3m5/HthL5UZaeok1oWsRpu9JWenJ+fDw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dsyuUC+9SiVLLxNZgKLz1XnsCRql3+yZ1X25dbA5B0wfbxd1YgUEYpXdc2MU/y1Ic 5t84VZNK/fF21fxMmGec3g6oi7+EQMw3dJ6bjFIY3+RhJn9d3RJ+cH+bqvBxcaR/f1 USINt5Ylz+equVmtgpKtypju5roFAUCW+VS4bavY= Date: Sun, 7 Oct 2018 20:29:30 +0530 From: Vinod To: Pierre-Yves MORDRET Cc: Rob Herring , Mark Rutland , Alexandre Torgue , Maxime Coquelin , Dan Williams , devicetree@vger.kernel.org, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/7] dt-bindings: stm32-mdma: Add DMA/MDMA chaining support bindings Message-ID: <20181007145930.GA2372@vkoul-mobl> References: <1538139715-24406-1-git-send-email-pierre-yves.mordret@st.com> <1538139715-24406-4-git-send-email-pierre-yves.mordret@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538139715-24406-4-git-send-email-pierre-yves.mordret@st.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28-09-18, 15:01, Pierre-Yves MORDRET wrote: > From: M'boumba Cedric Madianga > > This patch adds the description of the 2 properties needed to support M2M > transfer triggered by STM32 DMA when his transfer is complete. > > Signed-off-by: Pierre-Yves MORDRET > --- > Version history: > v3: > v2: > * rework content > v1: > * Initial > --- > --- > Documentation/devicetree/bindings/dma/stm32-mdma.txt | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/dma/stm32-mdma.txt b/Documentation/devicetree/bindings/dma/stm32-mdma.txt > index d18772d..27c2812 100644 > --- a/Documentation/devicetree/bindings/dma/stm32-mdma.txt > +++ b/Documentation/devicetree/bindings/dma/stm32-mdma.txt > @@ -10,7 +10,7 @@ Required properties: > - interrupts: Should contain the MDMA interrupt. > - clocks: Should contain the input clock of the DMA instance. > - resets: Reference to a reset controller asserting the DMA controller. > -- #dma-cells : Must be <5>. See DMA client paragraph for more details. > +- #dma-cells : Must be <6>. See DMA client paragraph for more details. can you update the example for 6 cells? Also what happens to dts using 5 cells.. > > Optional properties: > - dma-channels: Number of DMA channels supported by the controller. > @@ -26,7 +26,7 @@ Example: > interrupts = <122>; > clocks = <&timer_clk>; > resets = <&rcc 992>; > - #dma-cells = <5>; > + #dma-cells = <6>; > dma-channels = <16>; > dma-requests = <32>; > st,ahb-addr-masks = <0x20000000>, <0x00000000>; > @@ -35,8 +35,8 @@ Example: > * DMA client > > DMA clients connected to the STM32 MDMA controller must use the format > -described in the dma.txt file, using a five-cell specifier for each channel: > -a phandle to the MDMA controller plus the following five integer cells: > +described in the dma.txt file, using a six-cell specifier for each channel: > +a phandle to the MDMA controller plus the following six integer cells: > > 1. The request line number > 2. The priority level > @@ -76,6 +76,10 @@ a phandle to the MDMA controller plus the following five integer cells: > if no HW ack signal is used by the MDMA client > 5. A 32bit mask specifying the value to be written to acknowledge the request > if no HW ack signal is used by the MDMA client > +6. A bitfield value specifying if the MDMA client wants to generate M2M > + transfer with HW trigger (1) or not (0). This bitfield should be only > + enabled for M2M transfer triggered by STM32 DMA client. The memory devices > + involved in this kind of transfer are SRAM and DDR. > > Example: > > -- > 2.7.4 -- ~Vinod