Re: [PATCH v4 20/28] dmaengine: bcm2835: Support channel subsets in a controller instance

From: Stefan Wahren

Date: Mon Nov 30 2026 - 16:04:54 EST


Hi Andrea,

Am 27.11.26 um 13:22 schrieb Andrea della Porta:
On BCM2711 the last four channels of the DMA block use a different, 40-bit
programming model, and are going to be described by a separate DT node
whose reg property only covers those channels. The driver however
assumes that the register range always starts with channel 0.

Derive the index of the first channel from the physical address of the
register range, which is possible since the DMA block is 4 KiB aligned,
and only consider the channels covered by it. Channel numbers, and thus
the dma-channel-mask and interrupt-names properties, keep referring to
the whole DMA block.

Also describe in the platform data which channels of the block use its
programming model, and ignore the other ones: some device trees, e.g. the
downstream BCM2712 one, describe channels with different programming
models using the same compatible, and driving them with the wrong one
could corrupt memory.
Is this a real issue with upstream BCM2712 DT including this series?

Best regards