Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7273485imu; Thu, 27 Dec 2018 16:27:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN7M7gKQn3dFB5c2pzsAxR+OMjxGA86ZRdVkGV8iBgtY09Kp9D3Oes4OprWnFJQn8tWdxXMB X-Received: by 2002:a63:3507:: with SMTP id c7mr24536295pga.315.1545956870986; Thu, 27 Dec 2018 16:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545956870; cv=none; d=google.com; s=arc-20160816; b=rbfJKz5oVhD0lc7M/o4f6v6topODeaVlHlU/+kvSFOwW0sBpgwTfMzFGI1Sz9FuAeh E6p4I5MxV827Dhz43zxTb6X6j1UpdQ9s/65yO9SO3zctEHlR40u075wBrpUa609zeIEq OEsPnSbtEF/J/M6lrUcm7wjk2HsIeaa9pvY4/e2tPajYUep16cHAk6NgSwMB9LhcFeT+ o9j8FVkQTqhjgOiiNOXUZeop8zjaK9s19wcmsDKi0qdnVUdLFME9BoxT6c/xaiBr8BzY 5WEGc1n/V2lKheYg+w6qt6j1omDGdWD8Umt0QLC6V2KW4nec0IBRQofUUEhXnwBUE62a 5pLQ== 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; bh=pbocGtnj64Ry9KVFTNim31mILeL3sHKQ4ttv+fbO/ug=; b=ALHNe/oKrpREkbkO7ej8tDdz7znvI1bLvn9lvi4Hwes+Z0Jhj9/fbC2mKTXnjucN3k 7kPGn8yFMeoMNaYjW8+ktzOzH9sranklDQNFIYp9e2RX92Jf+MfVYtcooN3Y9v5sPaYY e+nXkT+mNlvpkBbtc05jYvo20jOHz9VVtRR4FhE0VbNBzMGHgSlKz1EZ6ZpdY2lM7Hn+ vJAOj2+lqyxWrpMUGYL5qCwFxfzqafTEnjqI9yT+E5/xJEwlfVcclCmXR3YtvJX4gGy7 RjG8+QPgV2FSr3Sz7R5ramgv5rkpeOJ4eM2mxBjda2wtgYCBpQWvdjoTxJHeoS/VGaJc 3CBw== 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 l12si14299945plc.0.2018.12.27.16.27.35; Thu, 27 Dec 2018 16:27:50 -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 S1731015AbeL0NLh (ORCPT + 99 others); Thu, 27 Dec 2018 08:11:37 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:63737 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730892AbeL0NLf (ORCPT ); Thu, 27 Dec 2018 08:11:35 -0500 X-UUID: f87d5f996ab74b30bd4b748fee1e788f-20181227 X-UUID: f87d5f996ab74b30bd4b748fee1e788f-20181227 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1655417562; Thu, 27 Dec 2018 21:11:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Dec 2018 21:11:10 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Dec 2018 21:11:10 +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: Thu, 27 Dec 2018 21:10:57 +0800 Message-ID: <1545916258-18218-2-git-send-email-shun-chih.yu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1545916258-18218-1-git-send-email-shun-chih.yu@mediatek.com> References: <1545916258-18218-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. Change-Id: I9736c8cac9be160358feeab935fabaffc5730519 Signed-off-by: Shun-Chih Yu Reviewed-by: Rob Herring --- .../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