From patchwork Mon Sep 20 17:56:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12506071 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 846DDC433EF for ; Mon, 20 Sep 2021 17:59:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5532B613A5 for ; Mon, 20 Sep 2021 17:59:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5532B613A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0B6PcKyNSRb/Qzy6Cy+oQp2JsYpYcIiUSQ2LFcS2we8=; b=Hrse26rZPqYoNu YMIPdy2JymwK/Tk4rLl0PdPed8YLMlzM1dccP4MFx08KaKMbWUXOBoO0Hp0avjEUrP0MPzRVcusZT CKBN1KR3unLjczhyR4sAVcb6MIkGQIKIw1WpFuj5U7E9CpqvJo2PIPD8jynobjb7m3S5y+QlSqbet 5UfcIfijCsQjDP/NQ0g/AAK/BpVvYRKTGSN5z3V1/7fHU0ohuCXAnKLN+nP3fvq4P9KaOFbtOMPLo kzjHj1nfGr/Omb2jsSPj983HpFtq2JG6nTPUoSibwOBfJpR3DgTWSOaOahLluVdrdATtOmq6bQhb0 fj+pCuiTZgmm9wK6I+Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSNXQ-002hDp-6t; Mon, 20 Sep 2021 17:57:08 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSNXC-002hBg-Ll; Mon, 20 Sep 2021 17:56:56 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id AC4C761184; Mon, 20 Sep 2021 17:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632160613; bh=SvqoDHMQRz9kNEKqEJuI5cMDNIKcZUTM+5LaGIm43aw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NVdm+/LKQlTGEHyX0fU9o8EU/2zTZA9yoVMdjCwO5MVyBKTT/bxst7vcB8eHYWpEb jiWvS9yzOihUo+kHuBIPFMrD25tkcPn73rhT7aNM13OAJ6JR93e2Xz1vhwsDMEMmMg nUKcY/B5OV3kQm96oVt0snDc+MWe0/JQ7Io6ER16GACH+AlJU7qoXLAMplrSYGiHs1 S3gdq24MrIKsJmBVfJJnySQENUyiCtrVyfpnK8YmM6FaIUV7npA7n8PE5mPVjmAFQf 6G4rccr0xv1k+cRHkF2EMNhRwsjnST6cEnhxBmbFHxMS6lxOB4AhRnBufXZZKCjqVB 52tHbnpcZpdKQ== Received: by wens.tw (Postfix, from userid 1000) id 857095F861; Tue, 21 Sep 2021 01:56:51 +0800 (CST) From: Chen-Yu Tsai To: Heiko Stuebner Cc: Chen-Yu Tsai , Robin Murphy , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: rk3399: Hook up DMA for UARTs Date: Tue, 21 Sep 2021 01:56:47 +0800 Message-Id: <20210920175647.13008-2-wens@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210920175647.13008-1-wens@kernel.org> References: <20210920175647.13008-1-wens@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210920_105654_775362_BBEC4281 X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen-Yu Tsai The RK3399 has two DMA controllers, one of which is wired up to work with the SPI controllers and UARTs. The SPI controllers are already hooked up, but the UARTs aren't. Add the "dmas" and "dma-names" to the UART device nodes to hook up DMA. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 3871c7fd83b0..87d6e4eb1337 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -608,6 +608,8 @@ uart0: serial@ff180000 { reg = <0x0 0xff180000 0x0 0x100>; clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; clock-names = "baudclk", "apb_pclk"; + dmas = <&dmac_peri 0>, <&dmac_peri 1>; + dma-names = "tx", "rx"; interrupts = ; reg-shift = <2>; reg-io-width = <4>; @@ -621,6 +623,8 @@ uart1: serial@ff190000 { reg = <0x0 0xff190000 0x0 0x100>; clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; clock-names = "baudclk", "apb_pclk"; + dmas = <&dmac_peri 2>, <&dmac_peri 3>; + dma-names = "tx", "rx"; interrupts = ; reg-shift = <2>; reg-io-width = <4>; @@ -634,6 +638,8 @@ uart2: serial@ff1a0000 { reg = <0x0 0xff1a0000 0x0 0x100>; clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; clock-names = "baudclk", "apb_pclk"; + dmas = <&dmac_peri 4>, <&dmac_peri 5>; + dma-names = "tx", "rx"; interrupts = ; reg-shift = <2>; reg-io-width = <4>; @@ -647,6 +653,8 @@ uart3: serial@ff1b0000 { reg = <0x0 0xff1b0000 0x0 0x100>; clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; clock-names = "baudclk", "apb_pclk"; + dmas = <&dmac_peri 6>, <&dmac_peri 7>; + dma-names = "tx", "rx"; interrupts = ; reg-shift = <2>; reg-io-width = <4>; @@ -1142,6 +1150,8 @@ uart4: serial@ff370000 { reg = <0x0 0xff370000 0x0 0x100>; clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>; clock-names = "baudclk", "apb_pclk"; + dmas = <&dmac_peri 8>, <&dmac_peri 9>; + dma-names = "tx", "rx"; interrupts = ; reg-shift = <2>; reg-io-width = <4>;