Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1365836yba; Fri, 26 Apr 2019 20:38:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRXkQGnqVT/JUf8/apnvDFSwIuPmhzbJtIL2WwDE9m/4ie14kwD71Kgjor4pOWVE8A1Oe5 X-Received: by 2002:a17:902:bd92:: with SMTP id q18mr50337842pls.136.1556336294518; Fri, 26 Apr 2019 20:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556336294; cv=none; d=google.com; s=arc-20160816; b=W0WfAKUiDFQcrnXAJSC+RvWBcweHhpAbXm/xpKjzHLaFmpVeTuSdoAh/cM97ifZlq4 2q2WBjfluZMPr0gBO3jdmlD5V2QXlaofou4kJgGKaatQqiDyGqPiu9zTOSmbxah11yqv DRcKVAUZenfqUN/MsWzo6suSljqlZa1Hp4aWjLSVDT1iozZDadIAT/GYweRR3RwtQvMn xRv+WaJMKWHcnZhUjuxebDB+AFDcvjF2dnj3dlg7JpiBnFVLRo12Tlq63vidsAsEBObr aZ7PyXMBZYtoCogxC1xf4+OzI6oujNZQ3ZleuxN2Ex+8YQuAcMYRQLfbFzV3jjtJ2hEC ahpw== 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=dJcMb2IJ574LMTvwe+iJpnys0MhyB+ak+PrX1YikzIk=; b=u7Z5+YkYiWxK5QPwMWwEdAp6hebbubzrifzfOw1p+jA3kvWOC2h7vf9tGmGVK9sZ/m 3oFaCniCZuwfCbFxUVtpyjeno4C3EU58Nf3V0OGHbf0E8MOCFtqALjGnxR2/DDPy+YDn lAVC+sQ+U90YKCR0iNRmJBhN5SOf29n1us08BeHU86YvMYVvCDC7cn9XbEpbwXHjFWql C3ip16Mfzx76VZcfPgLjU0pBNrMrrikXBAuMvyGRZM/Q7P3f8cil0qAZDeP9c+dZh6ae kVkgawzN7FDePQXsSjq/HArUSzMfiIqs+P5ar6QLIiurNjyEMMvEibZRIvRYtPKldZDg GMog== 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 g191si13736964pgc.12.2019.04.26.20.37.59; Fri, 26 Apr 2019 20:38:14 -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 S1727545AbfD0DhD (ORCPT + 99 others); Fri, 26 Apr 2019 23:37:03 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:54909 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727387AbfD0Dgy (ORCPT ); Fri, 26 Apr 2019 23:36:54 -0400 X-UUID: 763cdf3e02464a9e9ba52c367cfb86b9-20190427 X-UUID: 763cdf3e02464a9e9ba52c367cfb86b9-20190427 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 504444854; Sat, 27 Apr 2019 11:36:44 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 27 Apr 2019 11:36:43 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 27 Apr 2019 11:36:42 +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 2/4] arm: dts: mt2712: add uart APDMA to device tree Date: Sat, 27 Apr 2019 11:36:31 +0800 Message-ID: <1556336193-15198-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1556336193-15198-1-git-send-email-long.cheng@mediatek.com> References: <1556336193-15198-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 1. add uart APDMA controller device node 2. add uart 0/1/2/3/4/5 DMA function Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 976d92a..f1e419e 100644 --- a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi @@ -300,6 +300,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 10 + &apdma 11>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -369,6 +372,39 @@ (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_HIGH)>; }; + apdma: dma-controller@11000400 { + compatible = "mediatek,mt2712-uart-dma", + "mediatek,mt6577-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"; + #dma-cells = <1>; + }; + auxadc: adc@11001000 { compatible = "mediatek,mt2712-auxadc"; reg = <0 0x11001000 0 0x1000>; @@ -385,6 +421,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 0 + &apdma 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -395,6 +434,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 2 + &apdma 3>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -405,6 +447,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 4 + &apdma 5>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -415,6 +460,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 6 + &apdma 7>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -629,6 +677,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 8 + &apdma 9>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 1.7.9.5