dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/9] RZN1 DMA support
@ 2022-03-10 15:57 Miquel Raynal
  2022-03-10 15:57 ` [PATCH v4 1/9] dt-bindings: dma: Introduce RZN1 dmamux bindings Miquel Raynal
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Miquel Raynal @ 2022-03-10 15:57 UTC (permalink / raw)
  To: linux-renesas-soc, Magnus Damm, Gareth Williams, Phil Edworthy,
	Geert Uytterhoeven
  Cc: Stephen Boyd, Michael Turquette, linux-clk, Rob Herring,
	devicetree, Viresh Kumar, Andy Shevchenko, Vinod Koul, dmaengine,
	Thomas Petazzoni, Milan Stevanovic, Jimmy Lalande,
	Pascal Eberhard, Herve Codina, Clement Leger, Miquel Raynal

Hello,

Here is a first series bringing DMA support to RZN1 platforms. Soon a
second series will come with changes made to the UART controller
driver, in order to interact with the RZN1 DMA controller.

Cheers,
Miquèl

Changes in v4:
* Freed "map" in the error path of the dmamux driver.
* Improved a bit the style as requested by Prabhakar.
* Dropped a __maybe_unused.
* Reorder the includes.
* Added a dependency on ARCH_RZN1.
* Added Rob's Ack.
* Added a reg property to the dmamux binding file.
* Referenced the dmamux binding from the system controller file.
* Called of_platform_populate from the end of the system controller
  (clock) driver probe in order to probe the dmamux if it was
  populated.
* Added DMA properties to all the relevant UARTs.

Changes in v3:
* Added Reviewed-by tags.
* Exported the set_dmamux* symbol properly.
* Dropped a useless check in the probe and moved the sysctrl_priv
  assignation to the end of the probe.
* Renamed the dmamux driver
* Added a couple of missing MODULE_ macros in the dmamux driver.
* Decided to use a regular platform init call instead of the
  arch_initcall() initially proposed.
* s/%d/%u/ in printk's when appropriate.
* Used a hardcoded value instead of dmamux->dmac_requests when
  appropriate.
* Changed the variable name "master" to "dmac_idx" to be more
  descriptive.
* Dropped most of the of_* calls in favor of #define's.
* Fixed a typo.
* Exported two symbols from 8250_dma.c.

Changes in v2:
* Clarified that the 'fix' regarding non aligned reads would only apply
  to the DEV_TO_MEM case.
* Fix the DMA controller compatible string (copy-paste error).
* s/syscon/sysctrl/ as advised by Geert.
* Disabled irqs when taking the spinlock from the clocks driver.
* Moved the DMAMUX offset inside the driver.
* Removed extra commas.
* Improved the style as suggested by Andy.
* Removed a dupplicated check against the device node presence.
* Reduced the number of lines of code by using dev_err_probe().
* Created a Kconfig symbol for DMAMUX to fix the two robot reports
  received and be sure there was no useless overhead with other
  platforms.
* Exported the serial8250_{tx,rx}_dma() symbols.

Miquel Raynal (9):
  dt-bindings: dma: Introduce RZN1 dmamux bindings
  dt-bindings: clock: r9a06g032-sysctrl: Reference the DMAMUX subnode
  dt-bindings: dma: Introduce RZN1 DMA compatible
  soc: renesas: rzn1-sysc: Export function to set dmamux
  dma: dw: dmamux: Introduce RZN1 DMA router support
  dma: dw: Add RZN1 compatible
  dma: dw: Avoid partial transfers
  ARM: dts: r9a06g032: Add the two DMA nodes
  ARM: dts: r9a06g032: Describe the DMA router

 .../clock/renesas,r9a06g032-sysctrl.yaml      |  11 ++
 .../bindings/dma/renesas,rzn1-dmamux.yaml     |  51 ++++++
 .../bindings/dma/snps,dma-spear1340.yaml      |   8 +-
 MAINTAINERS                                   |   1 +
 arch/arm/boot/dts/r9a06g032.dtsi              |  40 +++++
 drivers/clk/renesas/r9a06g032-clocks.c        |  36 ++++-
 drivers/dma/dw/Kconfig                        |   9 ++
 drivers/dma/dw/Makefile                       |   2 +
 drivers/dma/dw/core.c                         |   4 +
 drivers/dma/dw/platform.c                     |   1 +
 drivers/dma/dw/rzn1-dmamux.c                  | 152 ++++++++++++++++++
 include/linux/soc/renesas/r9a06g032-sysctrl.h |  11 ++
 12 files changed, 324 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/dma/renesas,rzn1-dmamux.yaml
 create mode 100644 drivers/dma/dw/rzn1-dmamux.c
 create mode 100644 include/linux/soc/renesas/r9a06g032-sysctrl.h

-- 
2.27.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-03-11 15:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-10 15:57 [PATCH v4 0/9] RZN1 DMA support Miquel Raynal
2022-03-10 15:57 ` [PATCH v4 1/9] dt-bindings: dma: Introduce RZN1 dmamux bindings Miquel Raynal
2022-03-11 15:27   ` Rob Herring
2022-03-10 15:57 ` [PATCH v4 2/9] dt-bindings: clock: r9a06g032-sysctrl: Reference the DMAMUX subnode Miquel Raynal
2022-03-11 15:28   ` Rob Herring
2022-03-10 15:57 ` [PATCH v4 3/9] dt-bindings: dma: Introduce RZN1 DMA compatible Miquel Raynal
2022-03-10 15:57 ` [PATCH v4 4/9] soc: renesas: rzn1-sysc: Export function to set dmamux Miquel Raynal
2022-03-10 15:57 ` [PATCH v4 5/9] dma: dw: dmamux: Introduce RZN1 DMA router support Miquel Raynal
2022-03-10 17:44   ` Andy Shevchenko
2022-03-11 10:23     ` Vinod Koul
2022-03-10 15:57 ` [PATCH v4 6/9] dma: dw: Add RZN1 compatible Miquel Raynal
2022-03-10 15:57 ` [PATCH v4 7/9] dma: dw: Avoid partial transfers Miquel Raynal
2022-03-10 17:50   ` Andy Shevchenko
2022-03-10 18:46     ` Miquel Raynal
2022-03-11 11:24       ` Ilpo Järvinen
2022-03-10 15:57 ` [PATCH v4 8/9] ARM: dts: r9a06g032: Add the two DMA nodes Miquel Raynal
2022-03-10 15:57 ` [PATCH v4 9/9] ARM: dts: r9a06g032: Describe the DMA router Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).