Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1435537ybm; Thu, 23 May 2019 00:38:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjhltZ0LfJ+uuEqBWBH9MiameP3Pz30w4mWRY+okVHuniWzmxk7zQSR8dZIYOPCOIBqQfk X-Received: by 2002:a17:902:7592:: with SMTP id j18mr36632597pll.213.1558597118510; Thu, 23 May 2019 00:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558597118; cv=none; d=google.com; s=arc-20160816; b=lzIoip7ZGmK+M32ywOdXyV0go48NsIOljJVQtr3mcE1b1Dx32n6KTAxlcaMgFT9OEh 87lZ5IFXqFOQPA/0cn60lZWJMuNaYqToskY0/mnzMPHQWwkeCa/sqbCY7ErztDAZwU+y w1zof+9xlYh+HBC3OgPNH9BW4Kr+WuhNtx8O15hGns39C5besqbbG6PBXKDqz3vNr0/S Zf27+iticR8EDww5kSzsIVmbzD7u7Te0TRljtfXiG8O/cqSYNxZv6yZXQ9IGB/cnbgV4 AfAYqjvjkvQORHNDDhAaqh0eZS5qMXM9wPnjafXG8sUhpW55x1ykaVraNyxVk1r4KAeb l1gg== 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=RVTzdI85CdEbQf27IJtTcFtE8J2bVP3B35F2l/Klres=; b=qLdDOZzhoiEG5P9MRC4OenxIiSTH40mxkfPfmcTu2ApO4E5BxAn4s3bcPR1X+HNzuD lGLIrZPlI5zKk+Qw8uvR5p28VknNJdJ222IudI04DHUhRpPgwE5ZY0dU7P3fgMtjA/f8 pwQzDxtrl6b/s0kgKq/aPSjX0cx7sBm11R0VMMnE31KoDhL9f4W4qDXhEtiFEbKAIybK 2eREK4Z75UxxNFxZkhn/l0TDDKrhTYj1/iOPJXow8lxe0Tn91ERLkt7RP5enpsxrDKWF rTSmQn2jOweoYdsm1aa7jc+UHvTr7Cw+mbIR4gwH5H++c99XOfP307Soy4+d4EoQ8XUI N9Hw== 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 r25si21616352pgb.439.2019.05.23.00.38.19; Thu, 23 May 2019 00:38:38 -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 S1730114AbfEWHfZ (ORCPT + 99 others); Thu, 23 May 2019 03:35:25 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:55129 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726363AbfEWHfW (ORCPT ); Thu, 23 May 2019 03:35:22 -0400 X-UUID: cf3ad914a1d241c19dcad79887c54a98-20190523 X-UUID: cf3ad914a1d241c19dcad79887c54a98-20190523 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 683594161; Thu, 23 May 2019 15:35:17 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 23 May 2019 15:35:13 +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; Thu, 23 May 2019 15:35:12 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , "Rob Herring" , Mark Rutland , Ryder Lee , Sean Wang , Nicolas Boichat , Matthias Brugger CC: Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Zhenbao Liu , Long Cheng Subject: [PATCH v13 1/2] arm: dts: mt2712: add uart APDMA to device tree Date: Thu, 23 May 2019 15:35:08 +0800 Message-ID: <1558596909-14084-2-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1558596909-14084-1-git-send-email-long.cheng@mediatek.com> References: <1558596909-14084-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 | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 43307ba..a7a7362 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"; }; @@ -369,6 +372,39 @@ (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_HIGH)>; }; + 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 = , + , + , + , + , + , + , + , + , + , + , + ; + dma-requests = <12>; + clocks = <&pericfg CLK_PERI_AP_DMA>; + clock-names = "apdma"; + #dma-cells = <1>; + }; + auxadc: adc@11001000 { compatible = "mediatek,mt2712-auxadc"; reg = <0 0x11001000 0 0x1000>; @@ -385,6 +421,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 0 + &apdma 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -395,6 +434,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 2 + &apdma 3>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -405,6 +447,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 4 + &apdma 5>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -415,6 +460,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 6 + &apdma 7>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -629,6 +677,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