Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1626879imm; Wed, 19 Sep 2018 23:42:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaYTvgBsX80OVyPUvXThYo8exedKuiifhsZMQ+i3YFkWW7vDGWGBFruoBiNfYlYBvsVYLRH X-Received: by 2002:a17:902:2e83:: with SMTP id r3-v6mr37843879plb.80.1537425733053; Wed, 19 Sep 2018 23:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537425733; cv=none; d=google.com; s=arc-20160816; b=KLvQumT/Q+TujFYDPnUUkycYv/T3U+Z7nHjUa+IOTn3R6YlwsI1mSTKMA0sukKnQ6H Ecta0FYNVISjyI9pLa4PjylRoZjey3VR8e6x4NJ5KALxSneFyJWeilcHPi65QfxGlDzR 5aFgbEz5XK9AiEcXL80OEP4pLLkyLTQPTPQxICFa4ksLNIxErBulWjVlEMDplmLSV+GH jpTin9CLEOTQU3Zowfqg/kduX3N6889Ogz0to3iR5ppj5x8SYo4t+KrfpbvGjWgGz0Gd n9CwhptBHs6ISojqK30bqlTBJ5TpyhAORrjCYp8+9oukTqfLjo5TATZK2oNVM4ABx1K2 0cZg== 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=4qLSzkqagbiPl9Ae/1FlE+WMIayHRJkv6/yMgLDHKTQ=; b=ZF8wEcpdVC6Jqqiyj08S1YNnOJGzTc2sL0A+6mGbHvK2XESaOuYAyLD9kUzI/szriO oywTWz2pxY2iYLPAN1lpZzViDY01aQ+tdAcPf5b3WaphvrAoAgZCQM4ZYW2uMN9xunIp pQ0ROJeMbga9g/6TyItU9UoKNhZjc9SdBml5eyczlzhXE+6fxqFHZRwaXk0/RC89LwCI rWyR+ROdm+LKFUqtl26eln3oVY0z2JvkI6HJGC01AulJh8tMzdpZ3uQ81HkGq5DrX/PU hJAo5a6I7M9TMG2d0tjdUiqhDVstb+OE3vYNU9UOlRQcbqGQsUUeQrpN1LnTs7hoP4t4 rGLw== 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 q23-v6si999127pll.72.2018.09.19.23.41.57; Wed, 19 Sep 2018 23:42:13 -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 S1731891AbeITMXi (ORCPT + 99 others); Thu, 20 Sep 2018 08:23:38 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:13375 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731383AbeITMXh (ORCPT ); Thu, 20 Sep 2018 08:23:37 -0400 X-UUID: cc4217cc7bda4031bcb4beb688954a51-20180920 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 531484861; Thu, 20 Sep 2018 14:41:40 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 20 Sep 2018 14:41:39 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 20 Sep 2018 14:41:38 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Ed Blake , Long Cheng , , , , , , , , Yingjoe Chen , YT Shen Subject: [PATCH 4/4] arm: dts: mt2701: add uart APDMA to device tree Date: Thu, 20 Sep 2018 14:41:13 +0800 Message-ID: <1537425673-18807-5-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1537425673-18807-1-git-send-email-long.cheng@mediatek.com> References: <1537425673-18807-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 DMA function 3. uart0 is console, So disable DMA 4. enable uart2 port to test 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 593ddc7..ff94437 100644 --- a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi @@ -299,6 +299,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 10 + &apdma 11>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -366,6 +369,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"; @@ -373,6 +408,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 0 + &apdma 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -383,6 +421,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 2 + &apdma 3>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -393,6 +434,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 4 + &apdma 5>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -403,6 +447,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 6 + &apdma 7>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -503,6 +550,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