From patchwork Wed Nov 20 10:30:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13880990 X-Patchwork-Delegate: geert@linux-m68k.org Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEBE6156669 for ; Wed, 20 Nov 2024 10:30:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732098658; cv=none; b=L7FnA9cbOjCGI/luP0KQR/9Nnxnig/aNvSPHpBzXBVJwCEIMZAv/r5yjoZJ90NL0LVwyXuchSe1AtIFCgbcLamk6CfBoBab8dR7HSJuxnzHHRXbt+zDP2mrDlWlD+qAzAPJV82POEpdlejiM7tA/dkDHl7ERNvtPsEYGBQF7kCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732098658; c=relaxed/simple; bh=gQX5Y5VtwYzDgJZysAQCpuO0Sdmwez6CqZ2bCZbHUNA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=f8GY3D+udixsp6AqEb5auDj8qiiOKyWaP2oW4hSUAu/GTZ+6fAEXJsEAOpxQWI386vnIo+Hcyg2Dc4K8yhgUYO4bSvEpIlcuHZxeVj8AFhlpbOvZ0ZMXC8U4S5UW6ilYhEG+aUF2cwTy4xBqcJF1vTm6bRUmeKHwPtyyypnncsM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:35da:ab43:467b:7991]) by michel.telenet-ops.be with cmsmtp id eyWn2D00f3gUftr06yWnEw; Wed, 20 Nov 2024 11:30:48 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1tDhya-007bk2-8e; Wed, 20 Nov 2024 11:30:47 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1tDhyx-005W42-Hn; Wed, 20 Nov 2024 11:30:47 +0100 From: Geert Uytterhoeven To: Wolfram Sang , Chris Brandt Cc: linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH] ARM: dts: renesas: r7s72100: Add DMA support to RSPI Date: Wed, 20 Nov 2024 11:30:46 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add DMA properties to the device nodes for Renesas Serial Peripheral Interfaces. Signed-off-by: Geert Uytterhoeven --- To be queued in renesas-devel for v6.14. Tested on RSK+RZA1 with Renesas YRSK-LCD-PMOD (Okaya 1.44" 128x128 Color TFT LCD) expansion on PMOD2, using r7s72100-rskrza1-pmod-spi.dtso and r7s72100-rskrza1-pmod2-lcd.dtso from my renesas-overlays branch[1]. Without DMA: - Screen refresh is visible and takes ca. 1s, - "modetest -s" causes 163930 interrupts, - workqueue: drm_fb_helper_damage_work hogged CPU for >50000us 19 times, consider switching to WQ_UNBOUND. With DMA: - Screen refresh is instantaneous, - "modetest -s" causes 100 RSPI and 14 DMAC interrupts. [1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/renesas-overlays --- arch/arm/boot/dts/renesas/r7s72100.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r7s72100.dtsi b/arch/arm/boot/dts/renesas/r7s72100.dtsi index b831bbc431efb93e..1a866dbaf5e93423 100644 --- a/arch/arm/boot/dts/renesas/r7s72100.dtsi +++ b/arch/arm/boot/dts/renesas/r7s72100.dtsi @@ -238,6 +238,8 @@ spi0: spi@e800c800 { ; interrupt-names = "error", "rx", "tx"; clocks = <&mstp10_clks R7S72100_CLK_SPI0>; + dmas = <&dmac 0x2d21>, <&dmac 0x2d22>; + dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; num-cs = <1>; #address-cells = <1>; @@ -253,6 +255,8 @@ spi1: spi@e800d000 { ; interrupt-names = "error", "rx", "tx"; clocks = <&mstp10_clks R7S72100_CLK_SPI1>; + dmas = <&dmac 0x2d25>, <&dmac 0x2d26>; + dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; num-cs = <1>; #address-cells = <1>; @@ -268,6 +272,8 @@ spi2: spi@e800d800 { ; interrupt-names = "error", "rx", "tx"; clocks = <&mstp10_clks R7S72100_CLK_SPI2>; + dmas = <&dmac 0x2d29>, <&dmac 0x2d2a>; + dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; num-cs = <1>; #address-cells = <1>; @@ -283,6 +289,8 @@ spi3: spi@e800e000 { ; interrupt-names = "error", "rx", "tx"; clocks = <&mstp10_clks R7S72100_CLK_SPI3>; + dmas = <&dmac 0x2d2d>, <&dmac 0x2d2e>; + dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; num-cs = <1>; #address-cells = <1>; @@ -298,6 +306,8 @@ spi4: spi@e800e800 { ; interrupt-names = "error", "rx", "tx"; clocks = <&mstp10_clks R7S72100_CLK_SPI4>; + dmas = <&dmac 0x2d31>, <&dmac 0x2d32>; + dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; num-cs = <1>; #address-cells = <1>;