Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2294977imm; Tue, 4 Sep 2018 01:48:09 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb7qwHzR5WihSqGmt6ULlduQQ/II49by8YWe63pGEhokISKfGvbaiivv0OpKOrbBgcKnn7w X-Received: by 2002:a17:902:a613:: with SMTP id u19-v6mr33060960plq.234.1536050889059; Tue, 04 Sep 2018 01:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536050889; cv=none; d=google.com; s=arc-20160816; b=DGuKpjDMf41BHYysQtZU9K3JbBROiOyFrSIxTATP1oRUhlhqt6HvDDDT9GJTjsrwUA V5vtB721aT5Ce07WPtTISr6DuAhOOp5mdPjb07V1ASZZ5ztEsf6zgSiHZFTyBRjKAxpu OgmhoViQ25c3+IvbTYRFnlSCP6slMJU2S5O7+J4B1ZYzMdeady1uTzM9yH1tRGl0IdjS 38E79FsikC7usXwzRhsRE74+V7lhSOt+luXhT5lRqR7gL3KaLZwrAeCa5H1qi7rsJYgY nLAVWFQJYoJJcvcirdvGqHCKIw0EmlQh/jddGigna9luA998F6xUUlWkzYhRiReR7ah5 clQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=yQZTO9mw0JscPTA6i847mzv6e+3ApvZoDlQpfJVGGNY=; b=XgiNDavH5hGPFBtxNgPnO1Xtr01sITcWBAUMVS8G2BFLK28w6uQ4jXISGKe5qOsr2x iVPhckFH6v5nSCnGROcSBTLfd1gBtHgRKzhvehTV2tD1fEcJYWARDt1eV6QtFDv6TZ9G XgA/DOOA8+kV3HbAAUGcIJmKSGRxogyb3vJquuAuzZXHMoaugr/md773537Z5HmM5LlE s/UQS9ZLUP5QH8bkp3ALCBdYD5pkxt/vFHEg+5QG+ZU9HqMwNHjKwe8f2tVFMs3nR2TX NufZYJT7w6Stq1QxIc0mPEZUW4YrxV0o79xTazoi91sRXEzrFJdQLVa8PPi5kitP06Y3 sPVQ== 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 d6-v6si20106401pgi.506.2018.09.04.01.47.24; Tue, 04 Sep 2018 01:48:09 -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; 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 S1727330AbeIDNIS (ORCPT + 99 others); Tue, 4 Sep 2018 09:08:18 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:61382 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726061AbeIDNIS (ORCPT ); Tue, 4 Sep 2018 09:08:18 -0400 X-UUID: b6852eb8c0dd4244bd1c716c74b5ab18-20180904 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1211274827; Tue, 04 Sep 2018 16:44:00 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 4 Sep 2018 16:43:57 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 4 Sep 2018 16:43:57 +0800 From: To: Sean Wang , Vinod Koul , Rob Herring , Matthias Brugger , Dan Williams CC: , , , , , , Shun-Chih Yu Subject: [PATCH 1/2] dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings Date: Tue, 4 Sep 2018 16:43:45 +0800 Message-ID: <1536050626-21927-2-git-send-email-shun-chih.yu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1536050626-21927-1-git-send-email-shun-chih.yu@mediatek.com> References: <1536050626-21927-1-git-send-email-shun-chih.yu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shun-Chih Yu Document the devicetree bindings for MediaTek Command-Queue DMA controller which could be found on MT6765 SoC or other similar Mediatek SoCs. Signed-off-by: Shun-Chih Yu --- .../devicetree/bindings/dma/mtk-cqdma.txt | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/mtk-cqdma.txt diff --git a/Documentation/devicetree/bindings/dma/mtk-cqdma.txt b/Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file mode 100644 index 0000000..fb12927 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/mtk-cqdma.txt @@ -0,0 +1,31 @@ +MediaTek Command-Queue DMA Controller +================================== + +Required properties: + +- compatible: Must be "mediatek,mt6765-cqdma" for MT6765. +- reg: Should contain the base address and length for each channel. +- interrupts: Should contain references to the interrupts for each channel. +- clocks: Should be the clock specifiers corresponding to the entry in + clock-names property. +- clock-names: Should contain "cqdma" entries. +- dma-channels: The number of DMA channels supported by the controller. +- dma-requests: The number of DMA request supported by the controller. +- #dma-cells: The length of the DMA specifier, must be <1>. This one cell + in dmas property of a client device represents the channel + number. +Example: + + cqdma: dma-controller@10212000 { + compatible = "mediatek,mt6765-cqdma"; + reg = <0 0x10212000 0 0x1000>; + interrupts = , + ; + clocks = <&infracfg CLK_IFR_CQ_DMA>; + clock-names = "cqdma"; + dma-channels = <2>; + dma-requests = <32>; + #dma-cells = <1>; + }; + +DMA clients must use the format described in dma/dma.txt file. -- 1.7.9.5