xref: /freebsd/sys/contrib/device-tree/Bindings/dma/sophgo,cv1800b-dmamux.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/dma/sophgo,cv1800b-dmamux.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sophgo CV1800/SG200 Series DMA multiplexer
8
9maintainers:
10  - Inochi Amaoto <inochiama@gmail.com>
11
12description:
13  The DMA multiplexer of CV1800 is a subdevice of the system
14  controller. It support mapping 8 channels, but each channel
15  can be mapped only once.
16
17allOf:
18  - $ref: dma-router.yaml#
19
20properties:
21  compatible:
22    const: sophgo,cv1800b-dmamux
23
24  reg:
25    items:
26      - description: DMA channal remapping register
27      - description: DMA channel interrupt mapping register
28
29  '#dma-cells':
30    const: 2
31    description:
32      The first cells is device id. The second one is the cpu id.
33
34  dma-masters:
35    maxItems: 1
36
37required:
38  - reg
39  - '#dma-cells'
40  - dma-masters
41
42additionalProperties: false
43
44examples:
45  - |
46    dma-router@154 {
47      compatible = "sophgo,cv1800b-dmamux";
48      reg = <0x154 0x8>, <0x298 0x4>;
49      #dma-cells = <2>;
50      dma-masters = <&dmac>;
51    };
52