Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2655376imu; Thu, 17 Jan 2019 19:14:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN7onFoBoke1Z48AyaO3DUVi/Y+c6xw44AO7XpzCZq4N3gSRal6lgitABRNnV7sT5cN69LrH X-Received: by 2002:a62:b2c3:: with SMTP id z64mr17409218pfl.120.1547781279822; Thu, 17 Jan 2019 19:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547781279; cv=none; d=google.com; s=arc-20160816; b=JUGmXIc7yRJl1xoObEwRSjjxNuoeB5PjgrVSIwDKBjNJCiDtu2cjzE+3ID7NTDl8i9 fyVtvRXA6wwoSiNvmbAb99v4lE2LuT5ciirRChl0GMiM3cHlr8591GxwO1D2JhSarcMO z2gvvaZI26cLbmARLqNNWiunWRZInovK5WJOalcfR52h0pnm5iafxCfnTeTixLTInE2V L7r7vjHaJshJM79QQQSe+P6BUNBwRPTVQ3tlMDlacSigzBz4GXAieV7Bk5Natg1jni8b vxb/nL04XRVNdLH63p2H/iTyOKltNdd5rAkGjQMPznO46mwpCyuR1gy+j5X8/7grmEUJ KovQ== 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=7jxC3LV/n0lyu2UK9sQa5qm762rltaBpU9oosoZTthg=; b=rvCMJBdh241PaUo+V/U2hGkoxQwSJKfS6DDiiqRaCFa2s3SgK/R5nJrMtZM3JV0miz Kcg1Ic3e1+ScUdqV7hCG1PdN/kK/t/9Jk2yMpn7ADJF70CO2dL+Lrp1f1/fDQ4myyVfY hW8hewNuvxzTt/rR8xsSibxRHwfDXw9xK3KE9pJuz5+7PPOG+hZWe35vHKOP69U62mHR jm+XiEB0lNuLe0bVbf+y78OTqvGTgEJ/3IueV113sUyQPA/AWrLPYv+jHmZH79HnKvZq 23Z5AZO46z6HY/QRjgihmZBeZ4RD5qndohqmwPFNAjLTym/77pXz6B0fw4bOd6OjHH0i rwnQ== 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 k186si3518390pgc.576.2019.01.17.19.14.23; Thu, 17 Jan 2019 19:14:39 -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 S1727163AbfARDK6 (ORCPT + 99 others); Thu, 17 Jan 2019 22:10:58 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:10107 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726838AbfARDKf (ORCPT ); Thu, 17 Jan 2019 22:10:35 -0500 X-UUID: 8daacdfee9044725afe13d6b30fb35af-20190118 X-UUID: 8daacdfee9044725afe13d6b30fb35af-20190118 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1864398110; Fri, 18 Jan 2019 11:10:25 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 18 Jan 2019 11:10:23 +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; Fri, 18 Jan 2019 11:10:21 +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 v10 2/3] arm: dts: mt2712: add uart APDMA to device tree Date: Fri, 18 Jan 2019 11:10:15 +0800 Message-ID: <1547781016-890-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1547781016-890-1-git-send-email-long.cheng@mediatek.com> References: <1547781016-890-1-git-send-email-long.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: A8309FDBB6CB14D18C7C2A6C5CE05DB1B8BCE4AC4AA6BEE7D14DA6932F6054882000: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 | 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 ee627a7..3469a6c 100644 --- a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi @@ -298,6 +298,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 10 + &apdma 11>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -346,6 +349,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>; @@ -362,6 +398,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 0 + &apdma 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -372,6 +411,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 2 + &apdma 3>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -382,6 +424,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 4 + &apdma 5>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -392,6 +437,9 @@ interrupts = ; clocks = <&baud_clk>, <&sys_clk>; clock-names = "baud", "bus"; + dmas = <&apdma 6 + &apdma 7>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -402,6 +450,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