xref: /freebsd/sys/contrib/device-tree/Bindings/dma/renesas,rz-dmac.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/dma/renesas,rz-dmac.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7c9ccf3a3SEmmanuel Vadottitle: Renesas RZ/{G2L,G2UL,V2L} DMA Controller
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Biju Das <biju.das.jz@bp.renesas.com>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel VadotallOf:
13*cb7aa33aSEmmanuel Vadot  - $ref: dma-controller.yaml#
14354d7675SEmmanuel Vadot
15354d7675SEmmanuel Vadotproperties:
16354d7675SEmmanuel Vadot  compatible:
17354d7675SEmmanuel Vadot    items:
18354d7675SEmmanuel Vadot      - enum:
19c9ccf3a3SEmmanuel Vadot          - renesas,r9a07g043-dmac # RZ/G2UL
20354d7675SEmmanuel Vadot          - renesas,r9a07g044-dmac # RZ/G2{L,LC}
21c9ccf3a3SEmmanuel Vadot          - renesas,r9a07g054-dmac # RZ/V2L
22354d7675SEmmanuel Vadot      - const: renesas,rz-dmac
23354d7675SEmmanuel Vadot
24354d7675SEmmanuel Vadot  reg:
25354d7675SEmmanuel Vadot    items:
26354d7675SEmmanuel Vadot      - description: Control and channel register block
27354d7675SEmmanuel Vadot      - description: DMA extended resource selector block
28354d7675SEmmanuel Vadot
29354d7675SEmmanuel Vadot  interrupts:
30354d7675SEmmanuel Vadot    maxItems: 17
31354d7675SEmmanuel Vadot
32354d7675SEmmanuel Vadot  interrupt-names:
33354d7675SEmmanuel Vadot    items:
34354d7675SEmmanuel Vadot      - const: error
35354d7675SEmmanuel Vadot      - const: ch0
36354d7675SEmmanuel Vadot      - const: ch1
37354d7675SEmmanuel Vadot      - const: ch2
38354d7675SEmmanuel Vadot      - const: ch3
39354d7675SEmmanuel Vadot      - const: ch4
40354d7675SEmmanuel Vadot      - const: ch5
41354d7675SEmmanuel Vadot      - const: ch6
42354d7675SEmmanuel Vadot      - const: ch7
43354d7675SEmmanuel Vadot      - const: ch8
44354d7675SEmmanuel Vadot      - const: ch9
45354d7675SEmmanuel Vadot      - const: ch10
46354d7675SEmmanuel Vadot      - const: ch11
47354d7675SEmmanuel Vadot      - const: ch12
48354d7675SEmmanuel Vadot      - const: ch13
49354d7675SEmmanuel Vadot      - const: ch14
50354d7675SEmmanuel Vadot      - const: ch15
51354d7675SEmmanuel Vadot
52354d7675SEmmanuel Vadot  clocks:
53354d7675SEmmanuel Vadot    items:
54354d7675SEmmanuel Vadot      - description: DMA main clock
55354d7675SEmmanuel Vadot      - description: DMA register access clock
56354d7675SEmmanuel Vadot
57354d7675SEmmanuel Vadot  '#dma-cells':
58354d7675SEmmanuel Vadot    const: 1
59354d7675SEmmanuel Vadot    description:
60354d7675SEmmanuel Vadot      The cell specifies the encoded MID/RID values of the DMAC port
61354d7675SEmmanuel Vadot      connected to the DMA client and the slave channel configuration
62354d7675SEmmanuel Vadot      parameters.
63354d7675SEmmanuel Vadot      bits[0:9] - Specifies MID/RID value
64354d7675SEmmanuel Vadot      bit[10] - Specifies DMA request high enable (HIEN)
65354d7675SEmmanuel Vadot      bit[11] - Specifies DMA request detection type (LVL)
66354d7675SEmmanuel Vadot      bits[12:14] - Specifies DMAACK output mode (AM)
67354d7675SEmmanuel Vadot      bit[15] - Specifies Transfer Mode (TM)
68354d7675SEmmanuel Vadot
69354d7675SEmmanuel Vadot  dma-channels:
70354d7675SEmmanuel Vadot    const: 16
71354d7675SEmmanuel Vadot
72354d7675SEmmanuel Vadot  power-domains:
73354d7675SEmmanuel Vadot    maxItems: 1
74354d7675SEmmanuel Vadot
75354d7675SEmmanuel Vadot  resets:
76354d7675SEmmanuel Vadot    items:
77354d7675SEmmanuel Vadot      - description: Reset for DMA ARESETN reset terminal
78354d7675SEmmanuel Vadot      - description: Reset for DMA RST_ASYNC reset terminal
79354d7675SEmmanuel Vadot
80354d7675SEmmanuel Vadotrequired:
81354d7675SEmmanuel Vadot  - compatible
82354d7675SEmmanuel Vadot  - reg
83354d7675SEmmanuel Vadot  - interrupts
84354d7675SEmmanuel Vadot  - interrupt-names
85354d7675SEmmanuel Vadot  - clocks
86354d7675SEmmanuel Vadot  - '#dma-cells'
87354d7675SEmmanuel Vadot  - dma-channels
88354d7675SEmmanuel Vadot  - power-domains
89354d7675SEmmanuel Vadot  - resets
90354d7675SEmmanuel Vadot
91354d7675SEmmanuel VadotadditionalProperties: false
92354d7675SEmmanuel Vadot
93354d7675SEmmanuel Vadotexamples:
94354d7675SEmmanuel Vadot  - |
95354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
96354d7675SEmmanuel Vadot    #include <dt-bindings/clock/r9a07g044-cpg.h>
97354d7675SEmmanuel Vadot
98354d7675SEmmanuel Vadot    dmac: dma-controller@11820000 {
99354d7675SEmmanuel Vadot        compatible = "renesas,r9a07g044-dmac",
100354d7675SEmmanuel Vadot                     "renesas,rz-dmac";
101354d7675SEmmanuel Vadot        reg = <0x11820000 0x10000>,
102354d7675SEmmanuel Vadot              <0x11830000 0x10000>;
103354d7675SEmmanuel Vadot        interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>,
104354d7675SEmmanuel Vadot                     <GIC_SPI 125 IRQ_TYPE_EDGE_RISING>,
105354d7675SEmmanuel Vadot                     <GIC_SPI 126 IRQ_TYPE_EDGE_RISING>,
106354d7675SEmmanuel Vadot                     <GIC_SPI 127 IRQ_TYPE_EDGE_RISING>,
107354d7675SEmmanuel Vadot                     <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>,
108354d7675SEmmanuel Vadot                     <GIC_SPI 129 IRQ_TYPE_EDGE_RISING>,
109354d7675SEmmanuel Vadot                     <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>,
110354d7675SEmmanuel Vadot                     <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>,
111354d7675SEmmanuel Vadot                     <GIC_SPI 132 IRQ_TYPE_EDGE_RISING>,
112354d7675SEmmanuel Vadot                     <GIC_SPI 133 IRQ_TYPE_EDGE_RISING>,
113354d7675SEmmanuel Vadot                     <GIC_SPI 134 IRQ_TYPE_EDGE_RISING>,
114354d7675SEmmanuel Vadot                     <GIC_SPI 135 IRQ_TYPE_EDGE_RISING>,
115354d7675SEmmanuel Vadot                     <GIC_SPI 136 IRQ_TYPE_EDGE_RISING>,
116354d7675SEmmanuel Vadot                     <GIC_SPI 137 IRQ_TYPE_EDGE_RISING>,
117354d7675SEmmanuel Vadot                     <GIC_SPI 138 IRQ_TYPE_EDGE_RISING>,
118354d7675SEmmanuel Vadot                     <GIC_SPI 139 IRQ_TYPE_EDGE_RISING>,
119354d7675SEmmanuel Vadot                     <GIC_SPI 140 IRQ_TYPE_EDGE_RISING>;
120354d7675SEmmanuel Vadot        interrupt-names = "error",
121354d7675SEmmanuel Vadot                          "ch0", "ch1", "ch2", "ch3",
122354d7675SEmmanuel Vadot                          "ch4", "ch5", "ch6", "ch7",
123354d7675SEmmanuel Vadot                          "ch8", "ch9", "ch10", "ch11",
124354d7675SEmmanuel Vadot                          "ch12", "ch13", "ch14", "ch15";
125354d7675SEmmanuel Vadot        clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>,
126354d7675SEmmanuel Vadot                 <&cpg CPG_MOD R9A07G044_DMAC_PCLK>;
127354d7675SEmmanuel Vadot        power-domains = <&cpg>;
128354d7675SEmmanuel Vadot        resets = <&cpg R9A07G044_DMAC_ARESETN>,
129354d7675SEmmanuel Vadot                 <&cpg R9A07G044_DMAC_RST_ASYNC>;
130354d7675SEmmanuel Vadot        #dma-cells = <1>;
131354d7675SEmmanuel Vadot        dma-channels = <16>;
132354d7675SEmmanuel Vadot    };
133