xref: /freebsd/sys/contrib/device-tree/Bindings/dma/renesas,rzn1-dmamux.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2d5b0e70fSEmmanuel Vadot%YAML 1.2
3d5b0e70fSEmmanuel Vadot---
4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/dma/renesas,rzn1-dmamux.yaml#
5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6d5b0e70fSEmmanuel Vadot
7d5b0e70fSEmmanuel Vadottitle: Renesas RZ/N1 DMA mux
8d5b0e70fSEmmanuel Vadot
9d5b0e70fSEmmanuel Vadotmaintainers:
10d5b0e70fSEmmanuel Vadot  - Miquel Raynal <miquel.raynal@bootlin.com>
11d5b0e70fSEmmanuel Vadot
12d5b0e70fSEmmanuel VadotallOf:
13*cb7aa33aSEmmanuel Vadot  - $ref: dma-router.yaml#
14d5b0e70fSEmmanuel Vadot
15d5b0e70fSEmmanuel Vadotproperties:
16d5b0e70fSEmmanuel Vadot  compatible:
17d5b0e70fSEmmanuel Vadot    const: renesas,rzn1-dmamux
18d5b0e70fSEmmanuel Vadot
19d5b0e70fSEmmanuel Vadot  reg:
20d5b0e70fSEmmanuel Vadot    maxItems: 1
21d5b0e70fSEmmanuel Vadot    description: DMA mux first register offset within the system control parent.
22d5b0e70fSEmmanuel Vadot
23d5b0e70fSEmmanuel Vadot  '#dma-cells':
24d5b0e70fSEmmanuel Vadot    const: 6
25d5b0e70fSEmmanuel Vadot    description:
26d5b0e70fSEmmanuel Vadot      The first four cells are dedicated to the master DMA controller. The fifth
27d5b0e70fSEmmanuel Vadot      cell gives the DMA mux bit index that must be set starting from 0. The
28d5b0e70fSEmmanuel Vadot      sixth cell gives the binary value that must be written there, ie. 0 or 1.
29d5b0e70fSEmmanuel Vadot
30d5b0e70fSEmmanuel Vadot  dma-masters:
31d5b0e70fSEmmanuel Vadot    minItems: 1
32d5b0e70fSEmmanuel Vadot    maxItems: 2
33d5b0e70fSEmmanuel Vadot
34d5b0e70fSEmmanuel Vadot  dma-requests:
35d5b0e70fSEmmanuel Vadot    const: 32
36d5b0e70fSEmmanuel Vadot
37d5b0e70fSEmmanuel Vadotrequired:
38d5b0e70fSEmmanuel Vadot  - reg
39d5b0e70fSEmmanuel Vadot  - dma-requests
40d5b0e70fSEmmanuel Vadot
41d5b0e70fSEmmanuel VadotadditionalProperties: false
42d5b0e70fSEmmanuel Vadot
43d5b0e70fSEmmanuel Vadotexamples:
44d5b0e70fSEmmanuel Vadot  - |
45d5b0e70fSEmmanuel Vadot    dma-router@a0 {
46d5b0e70fSEmmanuel Vadot      compatible = "renesas,rzn1-dmamux";
47d5b0e70fSEmmanuel Vadot      reg = <0xa0 4>;
48d5b0e70fSEmmanuel Vadot      #dma-cells = <6>;
49d5b0e70fSEmmanuel Vadot      dma-masters = <&dma0 &dma1>;
50d5b0e70fSEmmanuel Vadot      dma-requests = <32>;
51d5b0e70fSEmmanuel Vadot    };
52