Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3908547pxu; Wed, 9 Dec 2020 03:50:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4qlqiQN2muavs4xNBWjspWH/aCAE3Qgs98VcvFERMH2i75DVrL/1X+h1hbVkVhNCEd67b X-Received: by 2002:a50:c19a:: with SMTP id m26mr1603473edf.302.1607514641343; Wed, 09 Dec 2020 03:50:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607514641; cv=none; d=google.com; s=arc-20160816; b=XNwcSc6BKfQVNqnriJ0k6Ec95GRAkM/YOm/QV3ROmpcIzMgE2yLCq82anZdqyq5zsi ioEDPJmv7lQPHUly2STubIqsIBR+joyrt41Mk3jy/wezt6dmUb5XbPfhrbKh5rn3Ka1x q+wBvE6uWohkbu7HeWquiZ5teodB7NTFWJJb15nPulRYUa0dwB3eTg/1IAzTvlDM/441 seRP+evhc95DbJOnk+0yfOJqiHiQiWNjFUTvVOsuxfgsOkSfpWWUVPOOb2B/iNmDAdLE wZjlZn1dbx6c5LfiRZIU6hGRtYt2tSCZxMFvHtMVW0lZlY9jimMXv65v3NDxh268Xc0r OMkg== 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=AZ7wYcWUmWH+uVrdi5m11ZubeY2Wy0/H7RjJZGg6xE4=; b=iLtGXJZPkUIFrVzdWFfkRDTcmyrrVQjppjKcfCBYA8XxUTjJF1Tqj4+JMo0EwjdPVy wbHoI2bbHFd/3uYK1WJDbI/P9LlDBw9tWwE2DUXFuuaOKiN23ZdaxzjKxBKhwPnOCt4B wrvsjD4ZSnNiI6tRa+DHucOxFBI9VT15abmrUq29t9TSA3S6L8QoiMgmeEtkWYTQvfBE 6SOuFhqFyeWxLQgBj7Foq5Oz3v6sidlNRMatv8YOD4FoGPYMhX78irYD+IpWo+1F/crS gxCxMDMbj0AN9ZUlFdzEh5QgVpl5t3mSvqJwtbQy4bdUM4HqQe3GUg0VbOuWDSjObd9C uzhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=aqX9kip9; 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 f12si800848ejl.311.2020.12.09.03.50.18; Wed, 09 Dec 2020 03:50:41 -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=aqX9kip9; 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 S1730842AbgLILpd (ORCPT + 99 others); Wed, 9 Dec 2020 06:45:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730601AbgLILpc (ORCPT ); Wed, 9 Dec 2020 06:45:32 -0500 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED13CC0613CF for ; Wed, 9 Dec 2020 03:44:51 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id cm17so1209797edb.4 for ; Wed, 09 Dec 2020 03:44:51 -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=AZ7wYcWUmWH+uVrdi5m11ZubeY2Wy0/H7RjJZGg6xE4=; b=aqX9kip9J67BsY4pqUSEZXQ/TMIQwaOOP0xcefZgGlThWPS+VU2sNeN/oEbCEBTZ2u 6FYJ01oNYSo2AkF28wg60tISmWxKpcue92Fu8mM6H1IGfK6JLvYhO8quWwWQKaNkbmmd /KTJvFBabmHv8hSXWU0zUOQxUcJDrBrUHfs4GC+3yc+K8WqpmGxPZYAlz6lzGX4AC+qq 0NZgu5NPxUKcBP6d6gu8L584maZrmI+4NK5v2KTvQ2ACTr49cRzWHFrIc+rDsxYtErJi g/HXOjMqRtZPb4gnt3V3bSLJEV+1aSXGkDE0ofPfIavp338fZD3OZME6nNg6dJEb8urB pckA== 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=AZ7wYcWUmWH+uVrdi5m11ZubeY2Wy0/H7RjJZGg6xE4=; b=C8c8KBYv1hQ7Y8ROn7DgNTcg2vL6+iI3Hqb+2y2FeV7SFyBkFoF2ZjSUVtU5ME7o/r +uMChsna9fjje/oOs51D68XAYFZzuFS/TVdLQPHAJ6K9lYSlO9mpdPaQdk1ZvYSFXpCP IkGOp4WZp5/sblpl2V6jwJ39MdmgaJnosQU05Y8YQ2YqEWL/MSlJAYOlipBAaj+xnByO npJW1A3ua0Pic0SCo2e6SZY3Apo5hqw28h8fh/VqkQNwfaAGR/3XhtPq/y/vOFGC99bS 2i2V+9lj8h0JFom0nBg0tWmp0d7MO8ZqyQJLReWBA56znDa0uS/dK2r+J4XQ2sipFteh dQGA== X-Gm-Message-State: AOAM531G89dfYHggqSzqKYgBJVAxZRzRjkPbFYxI+/X/K/c7EZgthFf5 YsDKVXe/x3zURWPDD6c/yZ+3OQ== X-Received: by 2002:a50:8b61:: with SMTP id l88mr1629668edl.250.1607514290713; Wed, 09 Dec 2020 03:44:50 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id c25sm1260327ejx.39.2020.12.09.03.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 03:44:50 -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 v2 2/2] =?UTF-8?q?=F0=9F=93=A4=20arm64:=20dts:=20mediatek:?= =?UTF-8?q?=20mt8516:=20add=20support=20for=20APDMA?= Date: Wed, 9 Dec 2020 12:44:40 +0100 Message-Id: <20201209114440.62950-2-fparent@baylibre.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201209114440.62950-1-fparent@baylibre.com> References: <20201209114440.62950-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 --- 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