Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9221494imu; Wed, 5 Dec 2018 00:45:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJd/kcv8Ri7ltU35ZRrzIXt8Y6256EVaSX8dQiq8RA4hzT6C0BWBN0vq989EYSTG1TNKv2 X-Received: by 2002:a62:83ce:: with SMTP id h197mr23326468pfe.187.1543999535570; Wed, 05 Dec 2018 00:45:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543999535; cv=none; d=google.com; s=arc-20160816; b=HhpherP8PHClDb51fFQ1X2sKNRzZeGSkuacF3qrMh+prthFtIXDfNbMXJofEeDhR2W Bqa0bNEmOTt8kts53wYIwYheiRaEhXYBs5e3DYOng09yj2fhebLfd3ZueI3oMupQY2B9 TOYFY83IsNRHNs+NCbmFFwA7VTTRjCs8BPCeW7HMcWr/Q4jsHVLQyNt1ULjI6F3J+jpS mV2hM99PeviZe0pLDs108WdEGlioQ1va9R1dtpDXmP7d/Fw8ebrYUuYiDa7nqITtA0Np DXmjQU3KRXOpQFtXBWsSs5ESd7DJ+M88fiH8JKjDdOBNTeIOxtuwrsjEuUfCticlSPGc Hjfg== 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=sVVHuXtf9Bbmhv286ncLIIdrTA7AC1fXBDx4wio6p4s=; b=LF3v462kqIbBHQIZf0ddPg0rpfpCkXTurCFF9djHtPv5Ral8wZzgp9V9IFUHvP6Ecp UzGHxZGRF5ByR07rG526p0rEyL2ETzcM/iXR0UwJPbMXXSEUOIjCs+ViGmG08NBIjWAh FzHVHPYad0YicFvKknTHelNx/npdGMEJ9BZSQd3WZAq4xdw25Eu5409O8XkrXzeQpJ1O UjcXammOnQBAsbhTNlkn0SE37TpLe0kSsq7QG1IrCk8NWpzM3ydyfnQa/XSP6Lzv/eZg rdiayt+rvD6RL24e7c0QKt6Jo9m3+XY9BOsTSviQ6QiXLivd68dLn9Cc/dAp6V8zJwTo OoWg== 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 y2si19899113pli.266.2018.12.05.00.45.19; Wed, 05 Dec 2018 00:45:35 -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 S1727387AbeLEInw (ORCPT + 99 others); Wed, 5 Dec 2018 03:43:52 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:24283 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726944AbeLEInw (ORCPT ); Wed, 5 Dec 2018 03:43:52 -0500 X-UUID: b86a28cb3a744b6facf71b7bad353785-20181205 X-UUID: b86a28cb3a744b6facf71b7bad353785-20181205 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 522637406; Wed, 05 Dec 2018 16:43:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 5 Dec 2018 16:43:25 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 5 Dec 2018 16:43:24 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , Long Cheng , , , , , , , , Yingjoe Chen , YT Shen Subject: [PATCH v2 4/4] arm: dts: mt2701: add uart APDMA to device tree Date: Wed, 5 Dec 2018 16:43:00 +0800 Message-ID: <1543999380-7946-5-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1543999380-7946-1-git-send-email-long.cheng@mediatek.com> References: <1543999380-7946-1-git-send-email-long.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: BB2A06ABE5AB7493D418E282B0D72287EFA8E63767C181DA366DDFED755B91DF2000:8 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 | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 976d92a..a59728b 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"; }; @@ -378,6 +381,38 @@ status = "disabled"; }; + 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 = , + , + , + , + , + , + , + , + , + , + , + ; + clocks = <&pericfg CLK_PERI_AP_DMA>; + clock-names = "apdma"; + #dma-cells = <1>; + }; + uart0: serial@11002000 { compatible = "mediatek,mt2712-uart", "mediatek,mt6577-uart"; @@ -385,6 +420,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 0 + &apdma 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -395,6 +433,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 2 + &apdma 3>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -405,6 +446,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 4 + &apdma 5>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -415,6 +459,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 6 + &apdma 7>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -629,6 +676,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