Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp285330imu; Mon, 10 Dec 2018 21:56:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xo2xHp+/CSYErk8MWoeAyiAGK3Ixg0u7yb9aEGtBv5zmhlzR++inXVqB/9UUFBUOZm/51x X-Received: by 2002:a63:2e88:: with SMTP id u130mr13701332pgu.9.1544507797573; Mon, 10 Dec 2018 21:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544507797; cv=none; d=google.com; s=arc-20160816; b=PWCfTlPak7MomcVGB+aMxLNKozl1JLs8xpHMhQmUXjNFMsWyxj28X2Up4eiyaXUfcb Nm7VXVvGdB6ne1isypcxslp8hWiTWNsnvBx3CCEJKGzt/RI2Pnm5JQ5A85Frai95F0Jg bPhJUoS8ZnSInqa/3Ksp6kpqrAN2KlG4cUvXPQ2BTzxrZTUx/naBXkJNay6homALm4Sd 82unBrl3a4R0efA3lk2EruBd302RIa/mPXKXLukCSYq+jwMbyU3F9RKJXgn0irEJ63BK 67mCidnGkOrP0NwquxyShYfHKBNIBEyDdh+LkxPstusZ+NtXXR14ifoC1axofxuAtKBK yG2Q== 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=WcPH/8SlnfVp6OosLfW31QMBFkKXv6lPMdtYudFIMgWFKtYRNbMbar/Ca85ccMYW5L 8rCz2JuCKMcAOXDLc0D9yicKAeip5ixt7sWxgbZrkDuhBvs7bkJR2KPT0VzGj0LRtNLw wl5FCuoh6Pb/n0Y8J/EKwzzbBsslYA8RqCwlQDDwLSenpaYCivpwPr5gKHZrq8ybZFv7 8aIFh1IYapDrmPfvqHWJUzBD+sWPPmjFXuv8kcLdkSi3s+3r5Y0+tJPq+7XKYPKlWREA Kq0CwqtZWIlpHBJ8XGXjRH/VNqgpZ84+GUlTsos/o0/7u1wYiBKAEqspCmOsKeBh54Nm RzfA== 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 f24si10679113pgj.315.2018.12.10.21.56.22; Mon, 10 Dec 2018 21:56:37 -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 S1729336AbeLKFiD (ORCPT + 99 others); Tue, 11 Dec 2018 00:38:03 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:31278 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729304AbeLKFiB (ORCPT ); Tue, 11 Dec 2018 00:38:01 -0500 X-UUID: 94785b25727241818fb90e4f5187b034-20181211 X-UUID: 94785b25727241818fb90e4f5187b034-20181211 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2113629428; Tue, 11 Dec 2018 13:37:57 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 11 Dec 2018 13:37:52 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 11 Dec 2018 13:37:51 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , "Mark Rutland" , Ryder Lee CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Long Cheng Subject: [PATCH v5 2/2] arm: dts: mt2712: add uart APDMA to device tree Date: Tue, 11 Dec 2018 13:37:25 +0800 Message-ID: <1544506645-27979-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544506645-27979-1-git-send-email-long.cheng@mediatek.com> References: <1544506645-27979-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