Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp12299928imu; Tue, 1 Jan 2019 20:02:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/WJsEIAd4JYxqLvwQUFO/MJdR48U/6RMaRli0gabY9cNdclhE+tv1wG+VZicKMAiyn4uosc X-Received: by 2002:a62:35c7:: with SMTP id c190mr44306665pfa.76.1546401776880; Tue, 01 Jan 2019 20:02:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546401776; cv=none; d=google.com; s=arc-20160816; b=jkNakMgspLjRVYpLx7wpvFyJ9X8O611Eqs/TVFL5upDyIfHggNioIGWwCdVGMxFCJZ 4HiAfWvgHb/n81ze1meEuPMIARtsXCypyw3a6K1X32s0nuZEO2wUNFStsN6GT4xojiZ4 0xxH5tpgd8V1fil6w+OjWsd7wiZ778wiSZas3Yy2PhGOv9e7wjSFmPOkVlL+mlSQeAOi UCAEGnBIB7SSyf1CTcSGUb5l+piHy9r4Y01vQEQ6qYAPDixOqehLiIzHWygvRvKdV1nF DOYpjDi9RzsJZUKPGG2vQqExZYPqg9QQdwU3DUWAlnn+rQEcc5A28L8dbYVmisz7OAjU v2hA== 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=M2zmenTA51tf/FsGUK51RiJjZFHLPgikBIDQdsdVEK8vkgWGGW6ZURBcDUfqOmAZmN QrOAvfJsA5Nv8ESJjCjwK3UczDaQ1CBLbKByw+XUzd6qksGOw4eVKhBSLQJEwXLfxQ54 dRC3SiPZGZau79EQNTLriaAooH08AcloUqKmDo0FEnS2AWfZNb2l1klrAOfAFXzyMNOR bQoUD5Dmtk2iIS1ILPgVHpuy+jNvacpYeevretsG4jxsRVqdn1ldxaejC9TdrsNkxU7k XoVTmKU9oZ1Mj6Q02Pgn4G7uM3A0cWyt2L4L0ng1tuhM6pf9mR+etYjOUW4fMLQBOPQ3 fNCw== 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 v17si31666782pga.566.2019.01.01.20.02.41; Tue, 01 Jan 2019 20:02:56 -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 S1728485AbfABCNT (ORCPT + 99 others); Tue, 1 Jan 2019 21:13:19 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:52657 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727038AbfABCNS (ORCPT ); Tue, 1 Jan 2019 21:13:18 -0500 X-UUID: e30d43f258564c78b702c91303d98346-20190102 X-UUID: e30d43f258564c78b702c91303d98346-20190102 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1188623696; Wed, 02 Jan 2019 10:13:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 2 Jan 2019 10:13:03 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 2 Jan 2019 10:13:02 +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 v9 2/2] arm: dts: mt2712: add uart APDMA to device tree Date: Wed, 2 Jan 2019 10:12:58 +0800 Message-ID: <1546395178-8880-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1546395178-8880-1-git-send-email-long.cheng@mediatek.com> References: <1546395178-8880-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..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