From 1d8ae2003de08f61095e4e928b1b8cce6c23cabd Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Wed, 9 Sep 2026 11:40:13 +0200 Subject: [PATCH] dmaengine: sh: rcar-dmac: Add support for R-Car Gen5 SoCs 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 Reviewed-by: Geert Uytterhoeven Reviewed-by: Frank Li Link: https://patch.msgid.link/20260909094009.2167-10-wsa+renesas@sang-engineering.com Signed-off-by: Vinod Koul --- 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 "); MODULE_LICENSE("GPL v2");