Received: by 10.223.185.116 with SMTP id b49csp3048837wrg; Mon, 5 Mar 2018 13:09:03 -0800 (PST) X-Google-Smtp-Source: AG47ELuJE0TkGf3To4P0EYhHmBsdB5vdEKdesGjLXiEGKSF1+aqys0IUbmyZYruKshGOalgwSFpi X-Received: by 10.99.42.83 with SMTP id q80mr13207599pgq.115.1520284143161; Mon, 05 Mar 2018 13:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520284143; cv=none; d=google.com; s=arc-20160816; b=CGmnx3WM9GGhmM/zbZ90IuMLaK7D/xl9joNkVigCuLEG4s0U/BmkghtB2Ym+tl+Zmw rTjRyyHVOuBW5hynI3EsUoItZ7zOpA4V3ANw0y93c9igbx/vH+9g06js4ptOT6ejGZgw QeYTbKEye6R4O+6jj3++u7hyAi2gCe7cA3RUmI56mMfZznEs2nn38TYer8HheG1ebbIG RmTSEuEwlJ/ty4tp1e2vZABSG9Jd5sKp8p5Pgs6QBwzt9Gg6Z2owhvUYaqLU9tMma/BD OvN03XXHAVzUQVAydq8aqAXZXlyjtRY6A67izjENnZIZQalEj6QO4jloRKVUud1pTPDB 0Ihg== 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:arc-authentication-results; bh=qwiCqcO9XJLKaMbGMJPrKR5NDEtdx5HAUhEU+39nYA0=; b=F0fu+RIt+8/16d8ae9+yJqKDTPprISJL1mX2BNPBVVQ0bnRCqghzonRvGRFEc5vrlN llWgyk4roEkiqHxtzjLez5VAB7ju2IYc0jWa28x9eOJRpQ4Oh4S60ehA61uVIfB0odDC j0CN6VnReeYEWScg2H1qxkmMegpNnRtlJSDh3WA8uuItQ/q1g0H3+n4C1VdJQL//NjUU 6ee9JFF4nlxdjY2XLvikSiZ+9Bu2GUkOJcTPRvQTygwe5SgbaUxUTeG5/nUvZlCw2193 b27BkHjP0l2l0UqW6B2NbbKA4/jdUFFwKhNHyoD1IE54tz0SvmXXORr1mtHpHWCmQpDV 7p6w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si9894763plr.622.2018.03.05.13.08.48; Mon, 05 Mar 2018 13:09:03 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752955AbeCEVH4 (ORCPT + 99 others); Mon, 5 Mar 2018 16:07:56 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:41296 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbeCEVHy (ORCPT ); Mon, 5 Mar 2018 16:07:54 -0500 Received: by mail-ot0-f195.google.com with SMTP id w38so16308927ota.8; Mon, 05 Mar 2018 13:07:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qwiCqcO9XJLKaMbGMJPrKR5NDEtdx5HAUhEU+39nYA0=; b=kH6dBs8sNXpsukx1+UBRzWi7SlJV3mCVlkwd/INnfn7iKj9YomKpxpguJF0CkZ862l ThEXYCqFrVHzZS55daEKNKo8bXIMFKyfEPmc3GodqmD2q9nzDE/9ZPBzvL34ODBbPyZD NqwQCGuqEfxEchRifW0UaNXGYPNlu4IzCoiyPqf/Wqo5dxaX5Cp0DKdjZZcwMSlgETpe /1OlIY2qgf9wpO51PWVzZ4UXoCLdu8z5C/vAyVx8c1YYMHpyBtjkF2DtqMVopuMDuigX 4SUPNOlWkoanizV2tE88KiWcynQddJ37tWTIqspguJWu9XPZAHEznL3nDQYl4gra+q/s FSjQ== X-Gm-Message-State: AElRT7FYBmM6qaRTJqcq8MdjCsc5NFu0vqcgS8voDI6A0Z5v5RxbC1NQ K0gemUNNs7vtDiHsVNlHCA== X-Received: by 10.157.52.229 with SMTP id t34mr11827831otd.62.1520284073316; Mon, 05 Mar 2018 13:07:53 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id p200sm6521384oic.0.2018.03.05.13.07.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Mar 2018 13:07:52 -0800 (PST) Date: Mon, 5 Mar 2018 15:07:51 -0600 From: Rob Herring To: Vinod Koul Cc: Alexey Brodkin , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "Eugeniy.Paltsev@synopsys.com" , "linux-snps-arc@lists.infradead.org" , "andy.shevchenko@gmail.com" , "dan.j.williams@intel.com" , "dmaengine@vger.kernel.org" , "wan.ahmad.zainie.wan.mohamad@intel.com" Subject: Re: [PATCH v2 2/2] dt-bindings: Document the Synopsys DW AXI DMA bindings Message-ID: <20180305210751.7wzo2lqvyldijkot@rob-hp-laptop> References: <20180226145628.11892-1-Eugeniy.Paltsev@synopsys.com> <20180226145628.11892-3-Eugeniy.Paltsev@synopsys.com> <20180302081408.GK15443@localhost> <1519979538.4430.7.camel@synopsys.com> <20180305053256.GN15443@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180305053256.GN15443@localhost> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05, 2018 at 11:02:56AM +0530, Vinod Koul wrote: > On Fri, Mar 02, 2018 at 08:32:20AM +0000, Alexey Brodkin wrote: > > Hi Vinod, > > > > On Fri, 2018-03-02 at 13:44 +0530, Vinod Koul wrote: > > > On Mon, Feb 26, 2018 at 05:56:28PM +0300, Eugeniy Paltsev wrote: > > > > This patch adds documentation of device tree bindings for the Synopsys > > > > DesignWare AXI DMA controller. > > > > > > > > Signed-off-by: Eugeniy Paltsev > > > > --- > > > > .../devicetree/bindings/dma/snps,dw-axi-dmac.txt | 41 ++++++++++++++++++++++ > > > > 1 file changed, 41 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt > > > > > > > > diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt > > > > new file mode 100644 > > > > index 0000000..f237b79 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt > > > > @@ -0,0 +1,41 @@ > > > > +Synopsys DesignWare AXI DMA Controller > > > > + > > > > +Required properties: > > > > +- compatible: "snps,axi-dma-1.01a" > > > > +- reg: Address range of the DMAC registers. This should include > > > > + all of the per-channel registers. > > > > +- interrupt: Should contain the DMAC interrupt number. > > > > +- interrupt-parent: Should be the phandle for the interrupt controller > > > > + that services interrupts for this device. > > > > +- dma-channels: Number of channels supported by hardware. > > > > +- snps,dma-masters: Number of AXI masters supported by the hardware. > > > > +- snps,data-width: Maximum AXI data width supported by hardware. > > > > + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) > > > > +- snps,priority: Priority of channel. Array size is equal to the number of > > > > + dma-channels. Priority value must be programmed within [0:dma-channels-1] > > > > + range. (0 - minimum priority) > > > > +- snps,block-size: Maximum block size supported by the controller channel. > > > > + Array size is equal to the number of dma-channels. > > > > + > > > > +Optional properties: > > > > +- snps,axi-max-burst-len: Restrict master AXI burst length by value specified > > > > + in this property. If this property is missing the maximum AXI burst length > > > > + supported by DMAC is used. [1:256] > > > > + > > > > +Example: > > > > + > > > > +dmac: dma-controller@80000 { > > > > + compatible = "snps,axi-dma-1.01a"; > > > > > > do we need "snps here..? > > > > Synopsys is this IP-block vendor so shouldn't we put it that way? > > Not a DT expert but why should vendor name come here, you can read the > properties from device node, vendor name seems redundant to me I don't follow... In any case, yes, it must have a vendor prefix. It should also have a compatible for the vendor(s) that integrate the block because they all break it in different ways. Speaking of which, we already have snps-dma.txt and at least Analog Devices binding using a Synopsys DMA. What's the difference? Rob