Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp246343imu; Thu, 6 Dec 2018 23:49:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/U9laje44qFxCn/VKlBMB2ElHjMbCporfgLMDJT4zfSIItWBQLLrujy3yEPePeShokWUKuX X-Received: by 2002:a63:960a:: with SMTP id c10mr1051438pge.106.1544168954027; Thu, 06 Dec 2018 23:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544168953; cv=none; d=google.com; s=arc-20160816; b=rCnh9kmFW9bulpRIPLoW8qGH7CJqmF10//blUsc3HGcrAg/T/mUKSJK1ehObKbrt9R 8DLIwhkQ9ec1RDIicn08igFA2frFjNeFJ3YvsJDo27SJksG5cF7UJ4aYLrvw97anvY6o xnLyAwmNwDQAka0UmSyF5n02Dwec+ZVFTfJKfWBQmO257RHOVWRymrwEtK7AtgyP4e4O Yr2Ye4HvnaOQLgDHVzAYyEMfRuBWCdG46IMpk1auyDxv/9MUVxZaQ/ngxgr+kvlk+qAt roAawD6nNgxheIl2A+uQOjJf332i4AtolgeUAOEUb2DgGds4b7eGqpMyovLgfrifJWil YF2Q== 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=ysl1lpk0XZvMY7Ipnay8jHZvfBKG6ZkqbrF4+VfcD0zMg1AnATpJV1s6iN/1duTWW6 nFgRgaz3zcoIOL1Ka+HiIXpl3O4KezXDwsSZAJb8k6YKLxNaiUg5XdPBxXp2p8nPdq71 wUKXwmAfBdV3yn5cB6LBAYsPSESk+C8QT1/oCUmPNfUBJsnqzafg1ODncrevXe9C/G0e XBYzb8FBgtpJncbpOjK0UXH9e8vZy2SVfr6Qs6pLATyysd0kvTH3Y4W97xuExrZmAcRe UPojtRjvV3vZmfjDhY/eqVNacuwSraCe2J1JOeSfBaTY4039ow4wEoSc8++ZgVyr7/hV CXpA== 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 u27si2539514pfa.103.2018.12.06.23.48.58; Thu, 06 Dec 2018 23:49:13 -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 S1726110AbeLGHro (ORCPT + 99 others); Fri, 7 Dec 2018 02:47:44 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:55277 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725952AbeLGHrm (ORCPT ); Fri, 7 Dec 2018 02:47:42 -0500 X-UUID: 112c026c99b94c6bacabbf009e34cbfe-20181207 X-UUID: 112c026c99b94c6bacabbf009e34cbfe-20181207 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 213092449; Fri, 07 Dec 2018 15:47:29 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 7 Dec 2018 15:47:29 +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; Fri, 7 Dec 2018 15:47:28 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Long Cheng Subject: [PATCH v3 2/2] arm: dts: mt2701: add uart APDMA to device tree Date: Fri, 7 Dec 2018 15:47:21 +0800 Message-ID: <1544168842-13860-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544168842-13860-1-git-send-email-long.cheng@mediatek.com> References: <1544168842-13860-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 | 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