Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3160211imu; Sun, 9 Dec 2018 18:59:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wbq5BFDVVChc42DClmkAt7ureXTGC1W6K4ThE3xfK93wvKXtmH5qyHf5pwASKdi433+Dj7 X-Received: by 2002:a63:3e05:: with SMTP id l5mr8824907pga.96.1544410782582; Sun, 09 Dec 2018 18:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544410782; cv=none; d=google.com; s=arc-20160816; b=XPW6+SClisBKvLzYR2NxxLGFSSEgeDucM4xv74jHNEBWdi84G9FL001M2TkTBPGrkz DQ7qZ4u/6KZWyVC9jYPgPWcPIKwilAlFjYw6znKeU4yqRADDeyvqpoLWpZ0FulP83qhw 1cfBSFOYgRFPZjiesod1JcBR/CYi5D6mS99GU8JJpgv0cRygSOcv6z2EKEk+2LInnaSq vpmVFghMaTTA3RSjqlvl7uCPIcx1AXqoWVwEI8MFMwVSudPeLa1ocSP/tCDblssYfyn8 yi3QwKDTyfdlpuc26wnJJXtImJrxvwVOsvwmwJ9KD/MddyF+XZhUjeLKye8f0B5AVgXs y9iQ== 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=gOD0ncPR1Svnr6CQs5Lx6iXfHoQzXlPqHoUNDZblyY0hFzsWEPZeA1O3TSy3VpzCFb 7+1X2XPfTEB6rDEOs0sdYG5VBMPu3wCPpis30u/JoXA8y7av81VMXXcYRlS1PvjjiEpN M3V0L6FanBICepI/PgfcKTkJZjEisG83pAhXSIHAhsZoHl+cHFr25vQpN0V52hZBZdnv 7cqoLtFVC0QycCwN//vSIJK8iEOP+m0EMIEgcpqovmf/kgbOjpZ8vy33ZsKYGDnTIN90 Di/+OuK5q2rhbzp1LArzxvOFXmPiu7nSW/57xNd01UzMIJD7hP3xsKDduJMA4jxTiX7W zT/g== 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 g17si8502313pgi.578.2018.12.09.18.59.27; Sun, 09 Dec 2018 18:59:42 -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 S1726427AbeLJC6t (ORCPT + 99 others); Sun, 9 Dec 2018 21:58:49 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:60090 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726281AbeLJC6t (ORCPT ); Sun, 9 Dec 2018 21:58:49 -0500 X-UUID: fbf9cd34b0e74d1eb068495addca59e7-20181210 X-UUID: fbf9cd34b0e74d1eb068495addca59e7-20181210 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1881843756; Mon, 10 Dec 2018 10:58:18 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Dec 2018 10:57:20 +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 10:57:19 +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 v4 2/2] arm: dts: mt2701: add uart APDMA to device tree Date: Mon, 10 Dec 2018 10:57:16 +0800 Message-ID: <1544410636-31815-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544410636-31815-1-git-send-email-long.cheng@mediatek.com> References: <1544410636-31815-1-git-send-email-long.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: A619D239B7FA6D1933EB8BDB9F0A44F3B30D2190DF3563681E3316E952F308B92000:8 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