From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Cosmin-Gabriel Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Cc: Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
"magnus.damm" <magnus.damm@gmail.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
"linux-spi@vger.kernel.org" <linux-spi@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 12/13] arm64: dts: renesas: r9a09g077: wire up DMA support for SPI
Date: Tue, 23 Dec 2025 17:04:09 +0100 [thread overview]
Message-ID: <CAMuHMdUeoC7OefbLd+0WihUtvV7zMtFREeor+V3efUitzcgiZw@mail.gmail.com> (raw)
In-Reply-To: <TYYPR01MB139556681F53AC66A668F7E4D85B5A@TYYPR01MB13955.jpnprd01.prod.outlook.com>
Hi Cosmin,
On Tue, 23 Dec 2025 at 15:42, Cosmin-Gabriel Tanislav
<cosmin-gabriel.tanislav.xa@renesas.com> wrote:
> > From: Geert Uytterhoeven <geert@linux-m68k.org>
> > On Mon, 1 Dec 2025 at 14:44, Cosmin Tanislav
> > <cosmin-gabriel.tanislav.xa@renesas.com> wrote:
> > > RZ/T2H (R9A09G077) has three DMA controllers that can be used by
> > > peripherals like SPI to offload data transfers from the CPU.
> > >
> > > Wire up the DMA channels for the SPI peripherals.
> > >
> > > Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
> >
> > Thanks for your patch!
> >
> > > --- a/arch/arm64/boot/dts/renesas/r9a09g077.dtsi
> > > +++ b/arch/arm64/boot/dts/renesas/r9a09g077.dtsi
> > > @@ -200,6 +200,8 @@ rspi0: spi@80007000 {
> > > clocks = <&cpg CPG_CORE R9A09G077_CLK_PCLKM>,
> > > <&cpg CPG_MOD 104>;
> > > clock-names = "pclk", "pclkspi";
> > > + dmas = <&dmac0 0x267a>, <&dmac0 0x267b>;
> > > + dma-names = "rx", "tx";
> >
> > RZ/T2H does not seem to have restrictions about which DMA controllers
> > can be used by which SPI instance. Hence shouldn't these point to
> > all three DMA controllers?
>
> It does seem like there's no restriction about which DMA controller to
> use.
>
> > dmas = <&dmac0 0x267a>, <&dmac0 0x267b>,
> > <&dmac1 0x267a>, <&dmac1 0x267b>,
> > <&dmac2 0x267a>, <&dmac2 0x267b>;
> > dma-names = "rx", "tx", "rx", "tx", "rx", "tx";
> >
>
> I was not aware that the DMA core supports this. I will add the other DMA
> controllers to the list.
>
> > Note that this requires updating the DT bindings, as they currently
> > restrict dma to two entries.
>
> dma-names:
> items:
> enum:
> - rx
> - tx
>
> This should work fine, right?
Yes, dma-names is OK. But currently dmas has "maxItems: 2".
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2025-12-23 16:04 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 13:42 [PATCH 00/13] Add DMA support for RZ/T2H RSPI Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 01/13] spi: rzv2h-rspi: fix rzv2h_rspi_transfer_one() indentation Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 02/13] spi: rzv2h-rspi: remove call to spi_finalize_current_transfer() Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 03/13] spi: rzv2h-rspi: do not set SPI_TRANS_FAIL_IO Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 04/13] spi: rzv2h-rspi: use device-managed APIs Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 05/13] spi: rzv2h-rspi: store RX interrupt in state Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 06/13] spi: rzv2h-rspi: set MUST_RX/MUST_TX Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 07/13] spi: rzv2h-rspi: set TX FIFO threshold to 0 Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 08/13] spi: rzv2h-rspi: enable TX buffer empty interrupt Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 09/13] spi: rzv2h-rspi: split out PIO transfer Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 10/13] dt-bindings: spi: renesas,rzv2h-rspi: document optional support for DMA Cosmin Tanislav
2025-12-04 21:25 ` Rob Herring (Arm)
2025-12-01 13:42 ` [PATCH 11/13] spi: rzv2h-rspi: add support for DMA mode Cosmin Tanislav
2025-12-01 13:42 ` [PATCH 12/13] arm64: dts: renesas: r9a09g077: wire up DMA support for SPI Cosmin Tanislav
2025-12-23 14:24 ` Geert Uytterhoeven
2025-12-23 14:42 ` Cosmin-Gabriel Tanislav
2025-12-23 16:04 ` Geert Uytterhoeven [this message]
2025-12-01 13:42 ` [PATCH 13/13] arm64: dts: renesas: r9a09g087: " Cosmin Tanislav
2025-12-23 14:25 ` Geert Uytterhoeven
2025-12-15 13:59 ` (subset) [PATCH 00/13] Add DMA support for RZ/T2H RSPI Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMuHMdUeoC7OefbLd+0WihUtvV7zMtFREeor+V3efUitzcgiZw@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=cosmin-gabriel.tanislav.xa@renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrizio.castro.jz@renesas.com \
--cc=geert+renesas@glider.be \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®