Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4588736imb; Wed, 6 Mar 2019 17:46:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwXkh91X+HM8sFikfjcFHTWWgQPn6040K0uSdEXWsJvOie/RiJtZZ6TWxC6Y+Fl1jIzJzsK X-Received: by 2002:a63:1014:: with SMTP id f20mr9191918pgl.293.1551923191785; Wed, 06 Mar 2019 17:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551923191; cv=none; d=google.com; s=arc-20160816; b=nEU1zUwG5CGcfb2i5uR+mHy2dNjn60Ibmfb1M+IYfuPhk7ILq7vCsSdVc0SSLm2rFv F7mIjFZtXPeKuYlF8WbrZBAw3+eiHfg7ZQL/yZPSLLQl39f25OgOYCRCUEezjAWgEuo2 Mg0U+1PVGqVJBL4taeBBV53TqwdiJFjJuE28YaLJkl3OC6w44ZqnsPj8tYFQvtigLgq7 5YUm0cbgAC3/LxsFq3kHfFHTJwHsFKCjfFvohejioYQBdidPTHC7Y3X6ihsEr71XtJkX b0VzmnYG8gtrhj/bCY+AagxwklByX+Sc1HxSV+GmYt56IBCFsPJcpZe3cm1jJQ5nixhp 3rWA== 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=BSfHB6juqeOP4z8Q45S3WNK6FMV+wO+jI5iOlCmglRM=; b=l+vZ/YUzIxY1PFtK5c42ENzswDu6P6BFSf4zeH/h0qBWp8L6bsVn0D+H5zwzWWnrwk CNhfp1MZGIQ3SkH/GmqODO92zx8A5FTJsdZKR2Fk8TNCuQbkv8dUcomBiszZnzZIo6Aa 9FNfLtyEIGvk6pS+5Y/B3gA/KPWjj2j1FiexW0apPds0GQf4TW/FJvX7Bmlc5OWod5+l n853v6Nuv3RY9DAPOlkC+Ss10quU69JVZdkCaNhrIouP5um3Av3gTW9kfhECS+nMdlYK 73dBa8NEqOIQc0sgtPkmCEAxnhDasWoFT1w+g7YraAzLv36R2kfI1zhWpnpmilGf2VQ9 ftGg== 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 v5si236154pgr.489.2019.03.06.17.46.15; Wed, 06 Mar 2019 17:46:31 -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 S1726688AbfCGBpv (ORCPT + 99 others); Wed, 6 Mar 2019 20:45:51 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:36463 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726197AbfCGBps (ORCPT ); Wed, 6 Mar 2019 20:45:48 -0500 X-UUID: d4be0f330770484b9bc618f5c0b55a7b-20190307 X-UUID: d4be0f330770484b9bc618f5c0b55a7b-20190307 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1307558666; Thu, 07 Mar 2019 09:45:43 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 7 Mar 2019 09:45:42 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 7 Mar 2019 09:45:41 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang , Nicolas Boichat , Matthias Brugger CC: Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Zhenbao Liu , Long Cheng Subject: [PATCH v11 3/4] dt-bindings: dma: uart: rename binding Date: Thu, 7 Mar 2019 09:45:34 +0800 Message-ID: <1551923135-32479-4-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1551923135-32479-1-git-send-email-long.cheng@mediatek.com> References: <1551923135-32479-1-git-send-email-long.cheng@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 The filename matches mtk-uart-apdma.c. So using "mtk-uart-apdma.txt" should be better. And add some property. Signed-off-by: Long Cheng Reviewed-by: Rob Herring --- .../devicetree/bindings/dma/8250_mtk_dma.txt | 33 ------------ .../devicetree/bindings/dma/mtk-uart-apdma.txt | 55 ++++++++++++++++++++ 2 files changed, 55 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/dma/8250_mtk_dma.txt create mode 100644 Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt diff --git a/Documentation/devicetree/bindings/dma/8250_mtk_dma.txt b/Documentation/devicetree/bindings/dma/8250_mtk_dma.txt deleted file mode 100644 index 3fe0961..0000000 --- a/Documentation/devicetree/bindings/dma/8250_mtk_dma.txt +++ /dev/null @@ -1,33 +0,0 @@ -* Mediatek UART APDMA Controller - -Required properties: -- compatible should contain: - * "mediatek,mt2712-uart-dma" for MT2712 compatible APDMA - * "mediatek,mt6577-uart-dma" for MT6577 and all of the above - -- reg: The base address of the APDMA register bank. - -- interrupts: A single interrupt specifier. - -- clocks : Must contain an entry for each entry in clock-names. - See ../clocks/clock-bindings.txt for details. -- clock-names: The APDMA clock for register accesses - -Examples: - - apdma: dma-controller@11000380 { - compatible = "mediatek,mt2712-uart-dma"; - reg = <0 0x11000380 0 0x400>; - interrupts = , - , - , - , - , - , - , - ; - clocks = <&pericfg CLK_PERI_AP_DMA>; - clock-names = "apdma"; - #dma-cells = <1>; - }; - diff --git a/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt b/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt new file mode 100644 index 0000000..e0424b3 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt @@ -0,0 +1,55 @@ +* Mediatek UART APDMA Controller + +Required properties: +- compatible should contain: + * "mediatek,mt2712-uart-dma" for MT2712 compatible APDMA + * "mediatek,mt6577-uart-dma" for MT6577 and all of the above + +- reg: The base address of the APDMA register bank. + +- interrupts: A single interrupt specifier. + One interrupt per dma-requests, or 8 if no dma-requests property is present + +- dma-requests: The number of DMA channels + +- clocks : Must contain an entry for each entry in clock-names. + See ../clocks/clock-bindings.txt for details. +- clock-names: The APDMA clock for register accesses + +- mediatek,dma-33bits: Present if the DMA requires support + +Examples: + + apdma: dma-controller@11000400 { + compatible = "mediatek,mt2712-uart-dma"; + reg = <0 0x11000400 0 0x80>, + <0 0x11000480 0 0x80>, + <0 0x11000500 0 0x80>, + <0 0x11000580 0 0x80>, + <0 0x11000600 0 0x80>, + <0 0x11000680 0 0x80>, + <0 0x11000700 0 0x80>, + <0 0x11000780 0 0x80>, + <0 0x11000800 0 0x80>, + <0 0x11000880 0 0x80>, + <0 0x11000900 0 0x80>, + <0 0x11000980 0 0x80>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + dma-requests = <12>; + clocks = <&pericfg CLK_PERI_AP_DMA>; + clock-names = "apdma"; + mediatek,dma-33bits; + #dma-cells = <1>; + }; + -- 1.7.9.5