Re: [PATCH v2 4/4] dmaengine: sh: rcar-dmac: Add support for R-Car Gen5 SoCs
From: Frank Li <hidden>
Date: 2026-09-15 16:30:19
Also in:
linux-renesas-soc
On Wed, Sep 09, 2026 at 11:40:13AM +0200, Wolfram Sang wrote:
Gen5 is very similar to Gen4. Of interest here is that it has a SMMU instead of an IPMMU, so there is no need to set the flag for a workaround. Make the module description more generic while here. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
quoted hunk ↗ jump to hunk
Changes since v1: * reworded commit message to not include "we" (Frank) * tags added (Thanks Geert) drivers/dma/sh/rcar-dmac.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c index 4eca52aeec02..3ad8aba5dcd4 100644 --- a/drivers/dma/sh/rcar-dmac.c +++ b/drivers/dma/sh/rcar-dmac.c@@ -2013,6 +2013,11 @@ static const struct rcar_dmac_of_data rcar_gen4_dmac_data = { .broken_ipmmu_microTLB0 = 1, }; +static const struct rcar_dmac_of_data rcar_gen5_dmac_data = { + .chan_offset_base = 0x0, + .chan_offset_stride = 0x1000, +}; + static const struct of_device_id rcar_dmac_of_ids[] = { { .compatible = "renesas,rcar-dmac",@@ -2020,6 +2025,9 @@ static const struct of_device_id rcar_dmac_of_ids[] = { }, { .compatible = "renesas,rcar-gen4-dmac", .data = &rcar_gen4_dmac_data, + }, { + .compatible = "renesas,rcar-gen5-dmac", + .data = &rcar_gen5_dmac_data, }, { /* * Backward compatibility for between v5.12 - v5.19@@ -2045,6 +2053,6 @@ static struct platform_driver rcar_dmac_driver = { module_platform_driver(rcar_dmac_driver); -MODULE_DESCRIPTION("R-Car Gen2 DMA Controller Driver"); +MODULE_DESCRIPTION("R-Car DMA Controller Driver"); MODULE_AUTHOR("Laurent Pinchart <laurent.pinchart@ideasonboard.com>"); MODULE_LICENSE("GPL v2"); --2.53.0