Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: dt-bindings: renesas,rzv2h-rspi: allow multiple DMAs

All supported SoCs have multiple DMA controllers that can be used with
the RSPI peripheral. The current bindings only allow a single pair of RX
and TX DMAs.

The DMA core allows specifying multiple DMAs with the same name, and it
will pick the first available one.

There is an exception in the base dt-schema rules specifically for
allowing this behavior (dtschema/schemas/dma/dma.yaml).

dma-names:
anyOf:
- uniqueItems: true
- items:
# Hack around Renesas bindings which repeat entries to support
# multiple possible DMA providers
enum: [rx, tx]

Allow multiple DMAs to have the same name and only restrict the possible
names of the DMA channels, not their count.

For RZ/T2H and RZ/N2H SoCs, limit the number of DMA channels to 6, as
they have 3 DMA controllers.

For RZ/V2H and RZ/V2N SoCs, limit the number of DMA channels to 10, as
they have 5 DMA controllers.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20260128215132.1353381-2-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Cosmin Tanislav and committed by
Mark Brown
4d28f38f 5e897a49

+13 -3
+13 -3
Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml
··· 58 58 - const: tresetn 59 59 60 60 dmas: 61 - maxItems: 2 61 + minItems: 2 62 + maxItems: 10 62 63 63 64 dma-names: 65 + minItems: 2 66 + maxItems: 10 64 67 items: 65 - - const: rx 66 - - const: tx 68 + enum: 69 + - rx 70 + - tx 67 71 68 72 power-domains: 69 73 maxItems: 1 ··· 124 120 125 121 resets: false 126 122 reset-names: false 123 + 124 + dmas: 125 + maxItems: 6 126 + 127 + dma-names: 128 + maxItems: 6 127 129 128 130 unevaluatedProperties: false 129 131