Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3038860ybe; Sun, 8 Sep 2019 05:58:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiS0cFhlcwKNnctN3QtgKUuOV323T9yqDImMFKewyWn8traJjg1o6rULKzAtLLMlP1MD78 X-Received: by 2002:a05:6402:8ce:: with SMTP id d14mr19314198edz.244.1567947531753; Sun, 08 Sep 2019 05:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567947531; cv=none; d=google.com; s=arc-20160816; b=V3RSWymxYO27GoQoxICQoBvCU+mHPlOIcORyGj9wAkyJwhfNOYF29sUGDZsdlKpyRN UZsSPHLsE3NvkbN/ois8i/X8PKF/LS+ifMDd0ucD6F/7rxhjAPCrv87yqVinohYoF7rM 7n6HJoMZ/Q31qZSuJGMEceGSYCyr1nxZjw3Zelbj/Vyu9V0f5/jKoERlitPW+TqfiGMq xSfH6/xVIScRKFi+HeC6T2IDAY5Z652W9gi1HdD4J10gp0hBqeOhhw7X09n+Laeuw8Uf 51kGfLnrcn4brJZJM0iL62K5RqeKmzaew9rgR2IRS1/E605nLvk8j0cu69eKUYxQarCv cp2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=gP3eQGqN9/b/uDO3D0RrZ66L4DLutSPefbQYEw6wx+8=; b=qw1cMYIPpATweTztv6c290LDjWLKla0wqvxr73jdsicxC9/FMqWKAxPprevuV0EF7/ xAOC/vaLubn5Uc5C7isGtmSbZDgnwW7iYlc06ywJ/Fpw8x6OsOTSU+ZyPnLFcqnXuoYk B47g2+Ilq97+WMoTI2USZ74A1iZZ04ZFJlWUXwjzzMMBuKWRsZPdQCJnsgMSKffPUKG3 8aDW+iHuG5rSI54PA7cKTa9T9jSMVZlDebXPTZ1OAWwA8TC6WTkthkJDXwRxJC6wVZXq XtTdo78vnuFhvj++IWjrhJuHSa56PRLYX8Zqb3BcNCYSOaKhNmNY7ZPlpnOHtPGgZQPV qTvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="aTRn/KHG"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jp18si5872129ejb.276.2019.09.08.05.58.27; Sun, 08 Sep 2019 05:58:51 -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=@ti.com header.s=ti-com-17Q1 header.b="aTRn/KHG"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726403AbfIHHrc (ORCPT + 99 others); Sun, 8 Sep 2019 03:47:32 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45764 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbfIHHrb (ORCPT ); Sun, 8 Sep 2019 03:47:31 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x887lKwH083411; Sun, 8 Sep 2019 02:47:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1567928840; bh=gP3eQGqN9/b/uDO3D0RrZ66L4DLutSPefbQYEw6wx+8=; h=Subject:From:To:CC:References:Date:In-Reply-To; b=aTRn/KHGLmrCFCANZmKVBihu6pYfsumq9Hh6wYivP+u4ChGdfHexIiEo5fa58TWVY yNCzxHha1h9NtC/nbxc3fDjdXmsu9i0HYXIGztZGt4teoyfMzY9gyvevw5FQricc84 ADFbE+eE31UF8hXuRlBr8B2OmOnD8dM0mGVQ+1Zc= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x887lK39107092; Sun, 8 Sep 2019 02:47:20 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Sun, 8 Sep 2019 02:47:19 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Sun, 8 Sep 2019 02:47:19 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x887lHgB119116; Sun, 8 Sep 2019 02:47:17 -0500 Subject: Re: [RFC 1/3] dt-bindings: dma: Add documentation for DMA domains From: Peter Ujfalusi To: , CC: , , , References: <20190906141816.24095-1-peter.ujfalusi@ti.com> <20190906141816.24095-2-peter.ujfalusi@ti.com> Message-ID: <961d30ea-d707-1120-7ecf-f51c11c41891@ti.com> Date: Sun, 8 Sep 2019 10:47:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190906141816.24095-2-peter.ujfalusi@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/09/2019 17.18, Peter Ujfalusi wrote: > On systems where multiple DMA controllers available, none Slave (for example > memcpy operation) users can not be described in DT as there is no device > involved from the DMA controller's point of view, DMA binding is not usable. > However in these systems still a peripheral might need to be serviced by or > it is better to serviced by specific DMA controller. > When a memcpy is used to/from a memory mapped region for example a DMA in the > same domain can perform better. > For generic software modules doing mem 2 mem operations it also matter that > they will get a channel from a controller which is faster in DDR to DDR mode > rather then from the first controller happen to be loaded. > > This property is inherited, so it may be specified in a device node or in any > of its parent nodes. > > Signed-off-by: Peter Ujfalusi > --- > .../devicetree/bindings/dma/dma-domain.yaml | 59 +++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/dma-domain.yaml > > diff --git a/Documentation/devicetree/bindings/dma/dma-domain.yaml b/Documentation/devicetree/bindings/dma/dma-domain.yaml > new file mode 100644 > index 000000000000..c2f182f30081 > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/dma-domain.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/dma-controller.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: DMA Domain Controller Definition > + > +maintainers: > + - Vinod Koul > + > +allOf: > + - $ref: "dma-controller.yaml#" > + > +description: > + On systems where multiple DMA controllers available, none Slave (for example > + memcpy operation) users can not be described in DT as there is no device > + involved from the DMA controller's point of view, DMA binding is not usable. > + However in these systems still a peripheral might need to be serviced by or > + it is better to serviced by specific DMA controller. > + When a memcpy is used to/from a memory mapped region for example a DMA in the > + same domain can perform better. > + For generic software modules doing mem 2 mem operations it also matter that > + they will get a channel from a controller which is faster in DDR to DDR mode > + rather then from the first controller happen to be loaded. > + > + This property is inherited, so it may be specified in a device node or in any > + of its parent nodes. > + > +properties: > + $dma-domain-controller: or domain-dma-controller? > + $ref: /schemas/types.yaml#definitions/phandle > + description: > + phande to the DMA controller node which should be used for the device or > + domain. > + > +examples: > + - | > + / { > + model = "Texas Instruments K3 AM654 SoC"; > + compatible = "ti,am654"; > + interrupt-parent = <&gic500>; > + /* For modules without device, DDR to DDR is faster on main UDMAP */ > + dma-domain-controller = <&main_udmap>; > + #address-cells = <2>; > + #size-cells = <2>; > + ... > + }; > + > + &cbass_main { > + /* For modules within MAIN domain, use main UDMAP */ > + dma-domain-controller = <&main_udmap>; > + }; > + > + &cbass_mcu { > + /* For modules within MCU domain, use mcu UDMAP */ > + dma-domain-controller = <&mcu_udmap>; > + }; > +... > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki