Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8873707imu; Sat, 29 Dec 2018 05:39:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN59VOuwfxigDUit5/HN0qcM3SvBUqI3Az5M3MPPVGUYSlqOjligTBMJ2v9vCDLNwa/nMbiD X-Received: by 2002:a17:902:6b0c:: with SMTP id o12mr31650144plk.291.1546090791897; Sat, 29 Dec 2018 05:39:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546090791; cv=none; d=google.com; s=arc-20160816; b=QR+slQfTWTCtK4R0MjWuyR0KAH+UbLq5AkKVqLLTI8x2Ul77LqFMleYxTnMaT1FQ4x UUROLNiE+0PAnlSplN0I3/wLALYqPQ3Pw5nO6PEYc5BNlJ3QgqwHxqeliBt2UWAamiVo 0hhiQ7lOtqLIy4cKJd0vfM3ss4QNDkztIu0nl2VlVcr3aw4PlrZPH6Qcz6ceAT1Wu7kV vd3O1XnsQDNirEEeH64dBjVE0teRDCkl/5JucUELT1/2ffybB50/XFSkpd3vm4hZWe4X ITfJ1CGGoYHXqtmauu2Ool5d5qYVNzPCZWtWBY4yxrGc01LGPYFiXHOnZvxk381Ucayq 0o+g== 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=1vFQG8wx1kXhDYknv0wR/m5uVcobFDu9jqroN8VOtig=; b=NvjMCQp5W5YbgnTS1qIFQmhKHqO2pNqhYcChZ7LaMSil8+0VZpilCqw/osXNcWaEEL ysU1fr47/fFqz1N39X40EoX8hMk00N8fdrUEIUPo+O2aoEFfySfzdvwWjDfvhA0Qnw+I sFgasw4eLhlaLfoJSDSE/5V7BjeMDkzuWhHcoPrb/GUu7vlHKmncaLhkK7olEBHiPy/t 6AIlv3yjQvtMPmBgwH/8gyObEw9woYqhRSCvT44fqa9hdVmYL8BdzHJ1ewWjzbCUTIGO wI0yHcjlJ0lpi8kMQIXEEIzvSdrwEHyyRyZEE+BfDYURQVuwBmugbhMy1HWKkMbuTTxD YOSw== 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 187si23112198pfb.41.2018.12.29.05.39.36; Sat, 29 Dec 2018 05:39:51 -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 S1729251AbeL2Kae (ORCPT + 99 others); Sat, 29 Dec 2018 05:30:34 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:43722 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727044AbeL2Kad (ORCPT ); Sat, 29 Dec 2018 05:30:33 -0500 X-UUID: d7df822e181547ddb7e1f10d0a3a546e-20181229 X-UUID: d7df822e181547ddb7e1f10d0a3a546e-20181229 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 564127061; Sat, 29 Dec 2018 18:30:30 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 29 Dec 2018 18:30:28 +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; Sat, 29 Dec 2018 18:30:27 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang , Nicolas Boichat CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Zhenbao Liu , Long Cheng Subject: [PATCH v8 2/2] arm: dts: mt2712: add uart APDMA to device tree Date: Sat, 29 Dec 2018 18:30:23 +0800 Message-ID: <1546079423-8361-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1546079423-8361-1-git-send-email-long.cheng@mediatek.com> References: <1546079423-8361-1-git-send-email-long.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: C428DD68153303DD85A91D525F3B91E4DA3B19B942A87BD753D3D4F43BD86FE22000: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..be1a22a 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,38 @@ (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 = , + , + , + , + , + , + , + , + , + , + , + ; + 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 +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