Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4588829imb; Wed, 6 Mar 2019 17:46:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyM5wZaF8rHivuEthSRNo6LeBNlY5Yqj7bGNOc+Lz1KE2+9Kt11U05OxNxu1UcIYvkXVrcH X-Received: by 2002:a17:902:1025:: with SMTP id b34mr10358589pla.306.1551923203079; Wed, 06 Mar 2019 17:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551923203; cv=none; d=google.com; s=arc-20160816; b=u8Wrj4M9vsVYvKJwKQwTJjuheUwezK1wP5LewOM0LmcchEeWnTrf32GlBBo/ALuTIr D63pzsXJMCttOWdbgDnS27joUxvW3Am+RgozZYQy5Q9PGOs00wOLh/fQTIiWc/YW8VqP 2r7HsWt3VOnPunvQBq3wdL0GFxPBgPNAv8TfAVhIeAZLU/VUPB1K4dEp75CQMrGFHt0/ gp547fhg/zON7azbLyUG8KieA+ybsz5KQ0gdlq7ulELFo9wRJVt+1c8tRqjPxNSiywe4 8QFKhXZut8cm4FC/0GhPRHmj5GOHujeEFukD78mpcwNQc2b1YDP3w+plDh5d6fhdWKAC iHzA== 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=CMSe/sTkNagmCrLpXPd+DyxBy8LTqQRkVUKgRKOt9L7KGJOZTGf670/geKzXNIfHdA Kur8+sxbB0gDd/eooIXZXoGH4YEW80Sub/rNR0e64ufXvUgtr9vxrroybfW7qHKBQ+2l ddnGYSYBjCwQlP4wI9gisEMPE3VPcQenRzIrNy3cz0+kvC9AQ2SnmVEnQV2WqiSX5l3v Vxti8YIcOLwsIFcy8eScNQmwsO6GzxMCd9tkp0NlPvM5SSG87bQphH2OQvicTByF8r4X mHzNy52aQSuJ6dLDhLncL5/45VwaAAeyX/pz6rqvRYC6FwhRrWle1AD+M0kB5p6WCI5c TNzg== 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 o8si2858939plk.273.2019.03.06.17.46.27; Wed, 06 Mar 2019 17:46:43 -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 S1726723AbfCGBpy (ORCPT + 99 others); Wed, 6 Mar 2019 20:45:54 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:56316 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726278AbfCGBpq (ORCPT ); Wed, 6 Mar 2019 20:45:46 -0500 X-UUID: 10b6efdeaad3472da508e05ec88cd6eb-20190307 X-UUID: 10b6efdeaad3472da508e05ec88cd6eb-20190307 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1481664051; Thu, 07 Mar 2019 09:45:43 +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; Thu, 7 Mar 2019 09:45:40 +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; Thu, 7 Mar 2019 09:45:39 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang , Nicolas Boichat , Matthias Brugger CC: Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Zhenbao Liu , Long Cheng Subject: [PATCH v11 2/4] arm: dts: mt2712: add uart APDMA to device tree Date: Thu, 7 Mar 2019 09:45:33 +0800 Message-ID: <1551923135-32479-3-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1551923135-32479-1-git-send-email-long.cheng@mediatek.com> References: <1551923135-32479-1-git-send-email-long.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: DE186F2B5BB3CD90B8CFF4C8A0D2AF9CC8F5F00D19BB8A3E517C9AA803BA63B02000: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