Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4019359pxu; Wed, 9 Dec 2020 06:31:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwz7wCeblew4PZa7AyvpEhYLWmGMAc52b1pccRdpOY3PDFY+fH3qub1f18Lu1c7MODKar7Y X-Received: by 2002:aa7:df0f:: with SMTP id c15mr2294516edy.354.1607524306767; Wed, 09 Dec 2020 06:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607524306; cv=none; d=google.com; s=arc-20160816; b=eh8+SoTERPQEL5M3qN8NRHbw+54/eFmFY0uPqQ+RLRlO90LvVEoVJN2VWYYVHG7+u5 J09iMVzR5xIfq+raHntATzjx2ZRbPjr9gBx/N18DJF94LEP6/SR2nAmGd99fJ0D21XZr uKkKoEMti6SGGpB8a0Yp/cHw1esKzOmkjckzq6iF/Le8zOnANxMp31uJ40GcbQVyt27m zbfp8mLjy8mRp6CWGgy7DzDX1SqGIdBKtaPCCxJJ3imJnKF8AktvJUnyutJ9EdFWGg74 w88waCyKtDb0PI7dHy4CWJoz5UAumG2ZsM4F8o/pLwGDtkQmOl7RgnRmA7JaSEq33vht uAUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9woAOYYUTApfHEXuDyQxlO3UMapZTcSjzqhS/D3AjbE=; b=XT5JvFRfnrjyhIpXWcE+eI4Uxe6daEEUkNgkrPuEYPZeu9IxYuJEokTTm54miDeb2S 7JKdbFypb1Rlx5vh12tflcUrzCTQV4w9rrpljZKydkxK7fiqH7yb8bNfZIY6iLsmC1hb GnHoGIwH2MtyA9E9MaljwgLTlvXMP2TO9aRy91RU2P1Z4yq1mM0xWZV8Y4LSAgDl3Cug dyXH35k7vP8lG/ElJ4grc383ihxgYD+CGUsb/xsVaifkuoH/+mEw8V6xnYw+AZpWeS91 E9RNarguS+Dnkwm2e6yZh3SPj/TIc8lWEZeGlT+MzgiWWYXizbN0JYxeIwSq0GBj3O3O Izeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=H1MYjEBU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt4si809539ejc.439.2020.12.09.06.31.21; Wed, 09 Dec 2020 06:31:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=H1MYjEBU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730884AbgLILse (ORCPT + 99 others); Wed, 9 Dec 2020 06:48:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730863AbgLILsY (ORCPT ); Wed, 9 Dec 2020 06:48:24 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0C49C06179C for ; Wed, 9 Dec 2020 03:47:43 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id jx16so1662557ejb.10 for ; Wed, 09 Dec 2020 03:47:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9woAOYYUTApfHEXuDyQxlO3UMapZTcSjzqhS/D3AjbE=; b=H1MYjEBUHXsEmRB5zK3lrIfUDCESZ/yUle4xUxQpR2/3Uefg9+OmJZPu5Y1tGst44h KASM+xB37usilH2dPzK/Gm9MsuKZ7Q0Q6PjWN9BRw2ywD2+HeGPYB3Zj3WfMntMDT2e4 ticNha5B96fMZ2qOr5ZFZTzsRgkDApr8sHUbOiObz1/EVXaxMbSlAIyynriuzC1HyWdq VCBgmAqaxgVcI8DZa35fhFk2sRPGLBb0RDVDiZ3ickoHiWmCHxaj4lA97aIebFkf9exZ bHkZu8z7JjMJLwXegEfxCS4VaQ5G6WPDxDhwxCacSHSopwfz5HPljMlgyTvTsJIWmufP XcBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9woAOYYUTApfHEXuDyQxlO3UMapZTcSjzqhS/D3AjbE=; b=FZ6ZmD61T2HuU79lXDmwiqijxetrvGXg6SCSFjMGD08/T2xvtuleYBFyKgW1tE+KZe vWStXL6oNrUFRH/jxQ96zIo2T0Fh5R/hzOlHY0z2TRfJvghUmduR7Z7WN7r0v1hB8iMM blV8p/6SO6Hy3R5qqKoH/6dKEun7g8Dbe8j+deh+HWWL4eKuykHOrGU+0hf7ef/pfuUZ 81+6skjnQ1J2T/UB47zNsB/1KW6nWRUHXkhWeWTiY888dl9G+7+eGrNSzTmFiMwrHeK3 smlPQPLvnRG7GWr3ETSOwgz6IpEt1OXiSiS0mYxhmpPNgwT+PL2vXaKN01TxSq0dy95t CZgg== X-Gm-Message-State: AOAM533+dQYyV/7MRE9Po9jYEKbfCQns2i0J4UokiK64SjFEX5rnCuKQ 9+CgXmDG2JtauMUorCFnaAkXtg== X-Received: by 2002:a17:906:391b:: with SMTP id f27mr1665544eje.195.1607514462330; Wed, 09 Dec 2020 03:47:42 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id k23sm1244877ejs.100.2020.12.09.03.47.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 03:47:41 -0800 (PST) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm64: dts: mediatek: mt8516: add support for APDMA Date: Wed, 9 Dec 2020 12:47:36 +0100 Message-Id: <20201209114736.70625-2-fparent@baylibre.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201209114736.70625-1-fparent@baylibre.com> References: <20201209114736.70625-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support the APDMA IP on MT8516. APDMA is a DMA controller for UARTs. Signed-off-by: Fabien Parent --- V3: remove unicode symbol that slips into patch summary V2: Add missing dma-names properties on uart nodes arch/arm64/boot/dts/mediatek/mt8516.dtsi | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi index e6e4d9d60094..b80e95574bef 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -276,6 +276,27 @@ gic: interrupt-controller@10310000 { (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; }; + apdma: dma-controller@11000480 { + compatible = "mediatek,mt8516-uart-dma", + "mediatek,mt6577-uart-dma"; + reg = <0 0x11000480 0 0x80>, + <0 0x11000500 0 0x80>, + <0 0x11000580 0 0x80>, + <0 0x11000600 0 0x80>, + <0 0x11000980 0 0x80>, + <0 0x11000a00 0 0x80>; + interrupts = , + , + , + , + , + ; + dma-requests = <6>; + clocks = <&topckgen CLK_TOP_APDMA>; + clock-names = "apdma"; + #dma-cells = <1>; + }; + uart0: serial@11005000 { compatible = "mediatek,mt8516-uart", "mediatek,mt6577-uart"; @@ -284,6 +305,9 @@ uart0: serial@11005000 { clocks = <&topckgen CLK_TOP_UART0_SEL>, <&topckgen CLK_TOP_UART0>; clock-names = "baud", "bus"; + dmas = <&apdma 0 + &apdma 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -295,6 +319,9 @@ uart1: serial@11006000 { clocks = <&topckgen CLK_TOP_UART1_SEL>, <&topckgen CLK_TOP_UART1>; clock-names = "baud", "bus"; + dmas = <&apdma 2 + &apdma 3>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -306,6 +333,9 @@ uart2: serial@11007000 { clocks = <&topckgen CLK_TOP_UART2_SEL>, <&topckgen CLK_TOP_UART2>; clock-names = "baud", "bus"; + dmas = <&apdma 4 + &apdma 5>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.29.2