Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1609400imm; Thu, 18 Oct 2018 00:50:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV60yCbWGBW9Way6Ub9Nk1GVI+kmNFIIr/QvMwojpv0mvOHf17BOi/qfSn35bg0DACzVWkWsa X-Received: by 2002:a62:75c7:: with SMTP id q190-v6mr29897085pfc.137.1539849019090; Thu, 18 Oct 2018 00:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539849019; cv=none; d=google.com; s=arc-20160816; b=BlmTIqf/3zlCliYwVgwWF6G7bqPBgj5+5PVP8rlp0B0uP97jNUAwN496ncuwcH8e5y wgi2O22Ax0ejEujz/o03EnpqSxV4pb0u9/tQ9zDm2ksRblyBnucZDAGhEOvqx8li3Yhm TKGM2iDXmrKTw9BCnlSWbJg57htutAz+C+dJ0jw+q82mtjK44BpGYyDfu0RBnyuxy1TW On2C+sbJc1t2p+Sr5ONsXzLQi7IwNss5eqpPE2fofaCwFJy9kI9+LT6slu6CpHptRQmJ e4SxVAsB2C1mmHOCfvGwSOhVIH4oPORk+9LkKTrALN+fgts4Hg1p9CQlmCwAQj0Nn2Ew qHSw== 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=xpvGYu7dVK2QpvJScXy1h1VFPR1qPIiIDnEzaBakKCc=; b=qAhH7EKWN4d0qWEzouZ1sdQ5vCc7iy6+/vozSm7ZVtv6SAN63EK9SNc42NrErmw2Zx mdpqdZH+Gxa3yOSAA83UZZBXPOOrC/NanWwqPvTdTzqL013EjrSzhBTnqB0zxzDbax3l StOf3q6YKM+iYyTg1PJ/RXW48wk/DVWPIXuXFejk+kG75iJH3hfWUHBODf+vy9mnO2Ea KsdgxRWWT5Lb57P8vknpLAOm/Kyfv41bXIcB+qiM+XsQPXDH16zRj2/YARxFxgVp0m3l M+Ip6QU5KMIdMfMlL5CYI6GURqRSVn8Lm7BD56iHUK4b7O3PnxXRKcauJa6p2K5h8lY8 uTew== 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 m1-v6si19522324pgq.112.2018.10.18.00.50.04; Thu, 18 Oct 2018 00:50:19 -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 S1727714AbeJRPtU (ORCPT + 99 others); Thu, 18 Oct 2018 11:49:20 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:21156 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727363AbeJRPtT (ORCPT ); Thu, 18 Oct 2018 11:49:19 -0400 X-UUID: da6ebc9ef1774e9cad79cbdcf344c79e-20181018 X-UUID: da6ebc9ef1774e9cad79cbdcf344c79e-20181018 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 58995807; Thu, 18 Oct 2018 15:49:26 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 18 Oct 2018 15:49:24 +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, 18 Oct 2018 15:49:24 +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, 18 Oct 2018 15:49:10 +0800 Message-ID: <1539848951-14798-2-git-send-email-shun-chih.yu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1539848951-14798-1-git-send-email-shun-chih.yu@mediatek.com> References: <1539848951-14798-1-git-send-email-shun-chih.yu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 249DBDFF3878948C61BB878C031B7307AAA90EE17EF80C29B9D2551A4C1341E52000:8 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 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