1cde9a96eSYoshihiro Shimoda# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2cde9a96eSYoshihiro Shimoda%YAML 1.2 3cde9a96eSYoshihiro Shimoda--- 4cde9a96eSYoshihiro Shimoda$id: http://devicetree.org/schemas/dma/renesas,rcar-dmac.yaml# 5cde9a96eSYoshihiro Shimoda$schema: http://devicetree.org/meta-schemas/core.yaml# 6cde9a96eSYoshihiro Shimoda 7cde9a96eSYoshihiro Shimodatitle: Renesas R-Car and RZ/G DMA Controller 8cde9a96eSYoshihiro Shimoda 9cde9a96eSYoshihiro Shimodamaintainers: 10cde9a96eSYoshihiro Shimoda - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 11cde9a96eSYoshihiro Shimoda 12cde9a96eSYoshihiro ShimodaallOf: 13*10cafa2dSKrzysztof Kozlowski - $ref: dma-controller.yaml# 14cde9a96eSYoshihiro Shimoda 15cde9a96eSYoshihiro Shimodaproperties: 16cde9a96eSYoshihiro Shimoda compatible: 1772ec393bSGeert Uytterhoeven oneOf: 1872ec393bSGeert Uytterhoeven - items: 19cde9a96eSYoshihiro Shimoda - enum: 2078e7a522SLad Prabhakar - renesas,dmac-r8a7742 # RZ/G1H 21cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7743 # RZ/G1M 22cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7744 # RZ/G1N 23cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7745 # RZ/G1E 24cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77470 # RZ/G1C 25cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a774a1 # RZ/G2M 26cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a774b1 # RZ/G2N 27cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a774c0 # RZ/G2E 2809b4db27SLad Prabhakar - renesas,dmac-r8a774e1 # RZ/G2H 29cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7790 # R-Car H2 30cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7791 # R-Car M2-W 31cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7792 # R-Car V2H 32cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7793 # R-Car M2-N 33cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7794 # R-Car E2 34cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7795 # R-Car H3 35cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7796 # R-Car M3-W 36cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77961 # R-Car M3-W+ 37cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77965 # R-Car M3-N 38cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77970 # R-Car V3M 39cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77980 # R-Car V3H 40cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77990 # R-Car E3 41cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77995 # R-Car D3 42cde9a96eSYoshihiro Shimoda - const: renesas,rcar-dmac 43cde9a96eSYoshihiro Shimoda 4472ec393bSGeert Uytterhoeven - items: 45b965182aSGeert Uytterhoeven - enum: 46b965182aSGeert Uytterhoeven - renesas,dmac-r8a779a0 # R-Car V3U 47b965182aSGeert Uytterhoeven - renesas,dmac-r8a779f0 # R-Car S4-8 48612fcfddSGeert Uytterhoeven - renesas,dmac-r8a779g0 # R-Car V4H 49b965182aSGeert Uytterhoeven - const: renesas,rcar-gen4-dmac # R-Car Gen4 50401c1511SYoshihiro Shimoda 5172ec393bSGeert Uytterhoeven reg: true 52cde9a96eSYoshihiro Shimoda 53cde9a96eSYoshihiro Shimoda interrupts: 54cde9a96eSYoshihiro Shimoda minItems: 9 55cde9a96eSYoshihiro Shimoda maxItems: 17 56cde9a96eSYoshihiro Shimoda 57cde9a96eSYoshihiro Shimoda interrupt-names: 58cde9a96eSYoshihiro Shimoda minItems: 9 59cde9a96eSYoshihiro Shimoda items: 60cde9a96eSYoshihiro Shimoda - const: error 61cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 62cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 63cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 64cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 65cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 66cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 67cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 68cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 69cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 70cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 71cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 72cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 73cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 74cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 75cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 76cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 77cde9a96eSYoshihiro Shimoda 78cde9a96eSYoshihiro Shimoda clocks: 79cde9a96eSYoshihiro Shimoda maxItems: 1 80cde9a96eSYoshihiro Shimoda 81cde9a96eSYoshihiro Shimoda clock-names: 82cde9a96eSYoshihiro Shimoda items: 83cde9a96eSYoshihiro Shimoda - const: fck 84cde9a96eSYoshihiro Shimoda 85cde9a96eSYoshihiro Shimoda '#dma-cells': 86cde9a96eSYoshihiro Shimoda const: 1 87cde9a96eSYoshihiro Shimoda description: 88cde9a96eSYoshihiro Shimoda The cell specifies the MID/RID of the DMAC port connected to 89cde9a96eSYoshihiro Shimoda the DMA client. 90cde9a96eSYoshihiro Shimoda 91cde9a96eSYoshihiro Shimoda dma-channels: 92cde9a96eSYoshihiro Shimoda minimum: 8 93cde9a96eSYoshihiro Shimoda maximum: 16 94cde9a96eSYoshihiro Shimoda 95cde9a96eSYoshihiro Shimoda dma-channel-mask: true 96cde9a96eSYoshihiro Shimoda 97cde9a96eSYoshihiro Shimoda iommus: 98cde9a96eSYoshihiro Shimoda minItems: 8 99cde9a96eSYoshihiro Shimoda maxItems: 16 100cde9a96eSYoshihiro Shimoda 101cde9a96eSYoshihiro Shimoda power-domains: 102cde9a96eSYoshihiro Shimoda maxItems: 1 103cde9a96eSYoshihiro Shimoda 104cde9a96eSYoshihiro Shimoda resets: 105cde9a96eSYoshihiro Shimoda maxItems: 1 106cde9a96eSYoshihiro Shimoda 107cde9a96eSYoshihiro Shimodarequired: 108cde9a96eSYoshihiro Shimoda - compatible 109cde9a96eSYoshihiro Shimoda - reg 110cde9a96eSYoshihiro Shimoda - interrupts 111cde9a96eSYoshihiro Shimoda - interrupt-names 112cde9a96eSYoshihiro Shimoda - clocks 113cde9a96eSYoshihiro Shimoda - clock-names 114cde9a96eSYoshihiro Shimoda - '#dma-cells' 115cde9a96eSYoshihiro Shimoda - dma-channels 116cde9a96eSYoshihiro Shimoda - power-domains 117cde9a96eSYoshihiro Shimoda - resets 118cde9a96eSYoshihiro Shimoda 11972ec393bSGeert Uytterhoevenif: 12072ec393bSGeert Uytterhoeven properties: 12172ec393bSGeert Uytterhoeven compatible: 12272ec393bSGeert Uytterhoeven contains: 12372ec393bSGeert Uytterhoeven enum: 124401c1511SYoshihiro Shimoda - renesas,rcar-gen4-dmac 12572ec393bSGeert Uytterhoeventhen: 12672ec393bSGeert Uytterhoeven properties: 12772ec393bSGeert Uytterhoeven reg: 12872ec393bSGeert Uytterhoeven items: 12972ec393bSGeert Uytterhoeven - description: Base register block 13072ec393bSGeert Uytterhoeven - description: Channel register block 13172ec393bSGeert Uytterhoevenelse: 13272ec393bSGeert Uytterhoeven properties: 13372ec393bSGeert Uytterhoeven reg: 13472ec393bSGeert Uytterhoeven maxItems: 1 13572ec393bSGeert Uytterhoeven 136cde9a96eSYoshihiro ShimodaadditionalProperties: false 137cde9a96eSYoshihiro Shimoda 138cde9a96eSYoshihiro Shimodaexamples: 139cde9a96eSYoshihiro Shimoda - | 140cde9a96eSYoshihiro Shimoda #include <dt-bindings/clock/r8a7790-cpg-mssr.h> 141cde9a96eSYoshihiro Shimoda #include <dt-bindings/interrupt-controller/arm-gic.h> 142cde9a96eSYoshihiro Shimoda #include <dt-bindings/power/r8a7790-sysc.h> 143cde9a96eSYoshihiro Shimoda 144cde9a96eSYoshihiro Shimoda dmac0: dma-controller@e6700000 { 145cde9a96eSYoshihiro Shimoda compatible = "renesas,dmac-r8a7790", "renesas,rcar-dmac"; 146cde9a96eSYoshihiro Shimoda reg = <0xe6700000 0x20000>; 147cde9a96eSYoshihiro Shimoda interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, 148cde9a96eSYoshihiro Shimoda <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>, 149cde9a96eSYoshihiro Shimoda <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>, 150cde9a96eSYoshihiro Shimoda <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>, 151cde9a96eSYoshihiro Shimoda <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>, 152cde9a96eSYoshihiro Shimoda <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>, 153cde9a96eSYoshihiro Shimoda <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, 154cde9a96eSYoshihiro Shimoda <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>, 155cde9a96eSYoshihiro Shimoda <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, 156cde9a96eSYoshihiro Shimoda <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>, 157cde9a96eSYoshihiro Shimoda <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>, 158cde9a96eSYoshihiro Shimoda <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>, 159cde9a96eSYoshihiro Shimoda <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, 160cde9a96eSYoshihiro Shimoda <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>, 161cde9a96eSYoshihiro Shimoda <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, 162cde9a96eSYoshihiro Shimoda <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>; 163cde9a96eSYoshihiro Shimoda interrupt-names = "error", 164cde9a96eSYoshihiro Shimoda "ch0", "ch1", "ch2", "ch3", 165cde9a96eSYoshihiro Shimoda "ch4", "ch5", "ch6", "ch7", 166cde9a96eSYoshihiro Shimoda "ch8", "ch9", "ch10", "ch11", 167cde9a96eSYoshihiro Shimoda "ch12", "ch13", "ch14"; 168cde9a96eSYoshihiro Shimoda clocks = <&cpg CPG_MOD 219>; 169cde9a96eSYoshihiro Shimoda clock-names = "fck"; 170cde9a96eSYoshihiro Shimoda power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; 171cde9a96eSYoshihiro Shimoda resets = <&cpg 219>; 172cde9a96eSYoshihiro Shimoda #dma-cells = <1>; 173cde9a96eSYoshihiro Shimoda dma-channels = <15>; 174cde9a96eSYoshihiro Shimoda }; 175