Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3310044imu; Sun, 9 Dec 2018 23:10:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/XGg18jSDU+m8UjEFtY8CYPfEWEDuFrvLLa1dRHYtluGxKbw0hFvwhlr9IglMZ1/guyZ+X5 X-Received: by 2002:a17:902:4523:: with SMTP id m32mr11048797pld.53.1544425819894; Sun, 09 Dec 2018 23:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544425819; cv=none; d=google.com; s=arc-20160816; b=gQpvGP6n97+TmAW6S02T+gyWWY+24ecTqynkwgcooorF6p8+AyS+x9+psCK79r9+0O +miPnTr/D0adH5nBJ2UiuQ6PNoH0LRHBITuCymES4Lq5HsdEOWUINzrNfrryXeoev6Jv Yd4nGN0CNbGH/GGh6ND1EZLRPemGGFlTMUSOZYiaueEzxNTZl35MU5EOAZq/mdFb1uh1 336ZvpxpHuKYG3vZqHTsXgeOCY5fUB1YMQTZtODgGuNxkVYZWYgAoac1BOZb1BQY/h/U bQZbGLXvhkXsa2VAYVAisGKrrr74LEOw8moQbmM0lvOSC2RSmPtYdNpNoWkyZmVI5wIK XZeA== 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=JFaRx4cPaMRu26jqEabSggblH5IaNQnvbO5Yn7prcKhRPxGgfQGab2qnFz/m9JQ//k 52Cznay4u+XyEDYFht0vYIcebVOACyJWGJoIJnMWpmRPyL1yin1JkLrhsQv8z+0mUC1u onziVR2gs8ErPiVL58iZN/uXomgia0Wz56Gv8ba0PNkt9eu4CST4kvKYWs9W0/4gs3/Z mqz3m/DmoWMj6udwugRSjN+1TNXYb7Uy1DfpvpattN3yYCFgkxlQZu7el3i6cYbcQcl3 tHtoO5UsuZ4flZMEMc/pDmg0CohOY9fqAoGhhpl4iADpro8h7SaLcJmMkvAC/mn0KZ2b JX8A== 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 37si8447680pgs.447.2018.12.09.23.10.03; Sun, 09 Dec 2018 23:10:19 -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 S1726577AbeLJGtR (ORCPT + 99 others); Mon, 10 Dec 2018 01:49:17 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:23653 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726442AbeLJGtQ (ORCPT ); Mon, 10 Dec 2018 01:49:16 -0500 X-UUID: 213959fed1614c4e97bfc9b7cd114a2e-20181210 X-UUID: 213959fed1614c4e97bfc9b7cd114a2e-20181210 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1056328416; Mon, 10 Dec 2018 11:48:26 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Dec 2018 11:47:57 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 10 Dec 2018 11:47:56 +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: [resend PATCH v4 2/2] arm: dts: mt2712: add uart APDMA to device tree Date: Mon, 10 Dec 2018 11:47:45 +0800 Message-ID: <1544413665-1222-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544413665-1222-1-git-send-email-long.cheng@mediatek.com> References: <1544413665-1222-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