On Fri, Feb 25, 2022 at 12:23:56PM +0100, Miquel Raynal wrote: > The Renesas RZN1 DMA IP is a based on a DW core, with eg. an additional > dmamux register located in the system control area which can take up to > 32 requests (16 per DMA controller). Each DMA channel can be wired to > two different peripherals. This should be a child of and referenced by the 'system control area' schema. Also, add a reg property for the register. > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> > --- > .../bindings/dma/renesas,rzn1-dmamux.yaml | 42 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/renesas,rzn1-dmamux.yaml > > diff --git a/Documentation/devicetree/bindings/dma/renesas,rzn1-dmamux.yaml b/Documentation/devicetree/bindings/dma/renesas,rzn1-dmamux.yaml > new file mode 100644 > index 000000000000..e2c82e43b8b1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/renesas,rzn1-dmamux.yaml > @@ -0,0 +1,42 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/renesas,rzn1-dmamux.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas RZ/N1 DMA mux > + > +maintainers: > + - Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > + > +allOf: > + - $ref: "dma-router.yaml#" > + > +properties: > + compatible: > + const: renesas,rzn1-dmamux > + > + '#dma-cells': > + const: 6 > + description: > + The first four cells are dedicated to the master DMA controller. The fifth > + cell gives the DMA mux bit index that must be set starting from 0. The > + sixth cell gives the binary value that must be written there, ie. 0 or 1. > + > + dma-masters: > + minItems: 1 > + maxItems: 2 > + > + dma-requests: > + const: 32 > + > +additionalProperties: false > + > +examples: > + - | > + dma-router { > + compatible = "renesas,rzn1-dmamux"; > + #dma-cells = <6>; > + dma-masters = <&dma0 &dma1>; > + dma-requests = <32>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index ea3e6c914384..c70c9c39a2f3 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -18636,6 +18636,7 @@ SYNOPSYS DESIGNWARE DMAC DRIVER > M: Viresh Kumar <vireshk@xxxxxxxxxx> > R: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > S: Maintained > +F: Documentation/devicetree/bindings/dma/renesas,rzn1-dmamux.yaml > F: Documentation/devicetree/bindings/dma/snps,dma-spear1340.yaml > F: drivers/dma/dw/ > F: include/dt-bindings/dma/dw-dmac.h > -- > 2.27.0 > >