Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4150443imu; Mon, 24 Dec 2018 17:30:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/XS40zqbygATdovRoYorEgeergtqAQvPLo1qmSzzzRZV2FbARJZdkWWDE7lX7aNZInKkWIA X-Received: by 2002:a62:1d8f:: with SMTP id d137mr14825651pfd.11.1545701419944; Mon, 24 Dec 2018 17:30:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545701419; cv=none; d=google.com; s=arc-20160816; b=Hm1aPH3MuwsbU6NmjZ50RlWSy2HNz817gxZHvm8KRWhwEp+QNh5k93JRiNzdYO+jLY ypIb9r0rnSmOGPr2Upp9qmQpNQZIV9XnnNDKbx3FVNAIUt0b4BEzFXfx98dlOmzppVQH 24L0br3fnBUPnIWKigFOX6PlU9pkrDKzTqs5cyMzbIcnssdCqxsfIGXWaIzGEUwYxGkP tffAL6JsTVfcoBN++FIzLa7My5EcDLG1YwW4HFHvn5mKEcKXEPJWL4sx/7tRVMy6BhRy mD09ZwL0xYUoEtucr9+xOmRAW5yWBWoXPWA9PqifUJyBd1RaD2ADsCM0+SCLkbiALx9O KYMw== 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=iNBoAFXvVUD7nFYw9Bzh84ZkZALmmw3z7qyF9hlfxpHEHmG+bTOoCW9ZgW/avCcilj DdoJHWxxH0xdFEyZBByiYuwW74BCvF9IVQv1r/iqmngUskSp04gW9O7og+UkUCK2LS3Z t12fzdXydP7eHtbj6uTYjA4djPEvBoiMbFDw8YYXl0Ely0cnz/Mg18iCXk94do7IPt2v TLnlmecg33N3IOrzauBF/J3RtOl5GzU+zAbXIRNKZNrDgoH4O5SzxNYQp9pmjwQIbnrP 8p5oS/3v8x7UyCrpATBQ43YzbdS595w6tn8ArXagKCop1F7dQ25tiDhjmeyc7m0D0D/L tAQA== 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 k62si29415135pfc.208.2018.12.24.17.29.35; Mon, 24 Dec 2018 17:30:19 -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 S1725827AbeLYB1F (ORCPT + 99 others); Mon, 24 Dec 2018 20:27:05 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:10657 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725788AbeLYB1E (ORCPT ); Mon, 24 Dec 2018 20:27:04 -0500 X-UUID: 613981b1c2694d52a556bf7b63d2df71-20181225 X-UUID: 613981b1c2694d52a556bf7b63d2df71-20181225 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 445862667; Tue, 25 Dec 2018 09:26:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Dec 2018 09:26:54 +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; Tue, 25 Dec 2018 09:26:53 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Long Cheng Subject: [PATCH v7 2/2] arm: dts: mt2712: add uart APDMA to device tree Date: Tue, 25 Dec 2018 09:26:49 +0800 Message-ID: <1545701209-6884-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1545701209-6884-1-git-send-email-long.cheng@mediatek.com> References: <1545701209-6884-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