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: 13cde9a96eSYoshihiro Shimoda - $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: 45*b965182aSGeert Uytterhoeven - enum: 46*b965182aSGeert Uytterhoeven - renesas,dmac-r8a779a0 # R-Car V3U 47*b965182aSGeert Uytterhoeven - renesas,dmac-r8a779f0 # R-Car S4-8 48*b965182aSGeert Uytterhoeven - const: renesas,rcar-gen4-dmac # R-Car Gen4 49401c1511SYoshihiro Shimoda 5072ec393bSGeert Uytterhoeven reg: true 51cde9a96eSYoshihiro Shimoda 52cde9a96eSYoshihiro Shimoda interrupts: 53cde9a96eSYoshihiro Shimoda minItems: 9 54cde9a96eSYoshihiro Shimoda maxItems: 17 55cde9a96eSYoshihiro Shimoda 56cde9a96eSYoshihiro Shimoda interrupt-names: 57cde9a96eSYoshihiro Shimoda minItems: 9 58cde9a96eSYoshihiro Shimoda items: 59cde9a96eSYoshihiro Shimoda - const: error 60cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 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 77cde9a96eSYoshihiro Shimoda clocks: 78cde9a96eSYoshihiro Shimoda maxItems: 1 79cde9a96eSYoshihiro Shimoda 80cde9a96eSYoshihiro Shimoda clock-names: 81cde9a96eSYoshihiro Shimoda items: 82cde9a96eSYoshihiro Shimoda - const: fck 83cde9a96eSYoshihiro Shimoda 84cde9a96eSYoshihiro Shimoda '#dma-cells': 85cde9a96eSYoshihiro Shimoda const: 1 86cde9a96eSYoshihiro Shimoda description: 87cde9a96eSYoshihiro Shimoda The cell specifies the MID/RID of the DMAC port connected to 88cde9a96eSYoshihiro Shimoda the DMA client. 89cde9a96eSYoshihiro Shimoda 90cde9a96eSYoshihiro Shimoda dma-channels: 91cde9a96eSYoshihiro Shimoda minimum: 8 92cde9a96eSYoshihiro Shimoda maximum: 16 93cde9a96eSYoshihiro Shimoda 94cde9a96eSYoshihiro Shimoda dma-channel-mask: true 95cde9a96eSYoshihiro Shimoda 96cde9a96eSYoshihiro Shimoda iommus: 97cde9a96eSYoshihiro Shimoda minItems: 8 98cde9a96eSYoshihiro Shimoda maxItems: 16 99cde9a96eSYoshihiro Shimoda 100cde9a96eSYoshihiro Shimoda power-domains: 101cde9a96eSYoshihiro Shimoda maxItems: 1 102cde9a96eSYoshihiro Shimoda 103cde9a96eSYoshihiro Shimoda resets: 104cde9a96eSYoshihiro Shimoda maxItems: 1 105cde9a96eSYoshihiro Shimoda 106cde9a96eSYoshihiro Shimodarequired: 107cde9a96eSYoshihiro Shimoda - compatible 108cde9a96eSYoshihiro Shimoda - reg 109cde9a96eSYoshihiro Shimoda - interrupts 110cde9a96eSYoshihiro Shimoda - interrupt-names 111cde9a96eSYoshihiro Shimoda - clocks 112cde9a96eSYoshihiro Shimoda - clock-names 113cde9a96eSYoshihiro Shimoda - '#dma-cells' 114cde9a96eSYoshihiro Shimoda - dma-channels 115cde9a96eSYoshihiro Shimoda - power-domains 116cde9a96eSYoshihiro Shimoda - resets 117cde9a96eSYoshihiro Shimoda 11872ec393bSGeert Uytterhoevenif: 11972ec393bSGeert Uytterhoeven properties: 12072ec393bSGeert Uytterhoeven compatible: 12172ec393bSGeert Uytterhoeven contains: 12272ec393bSGeert Uytterhoeven enum: 123401c1511SYoshihiro Shimoda - renesas,rcar-gen4-dmac 12472ec393bSGeert Uytterhoeventhen: 12572ec393bSGeert Uytterhoeven properties: 12672ec393bSGeert Uytterhoeven reg: 12772ec393bSGeert Uytterhoeven items: 12872ec393bSGeert Uytterhoeven - description: Base register block 12972ec393bSGeert Uytterhoeven - description: Channel register block 13072ec393bSGeert Uytterhoevenelse: 13172ec393bSGeert Uytterhoeven properties: 13272ec393bSGeert Uytterhoeven reg: 13372ec393bSGeert Uytterhoeven maxItems: 1 13472ec393bSGeert Uytterhoeven 135cde9a96eSYoshihiro ShimodaadditionalProperties: false 136cde9a96eSYoshihiro Shimoda 137cde9a96eSYoshihiro Shimodaexamples: 138cde9a96eSYoshihiro Shimoda - | 139cde9a96eSYoshihiro Shimoda #include <dt-bindings/clock/r8a7790-cpg-mssr.h> 140cde9a96eSYoshihiro Shimoda #include <dt-bindings/interrupt-controller/arm-gic.h> 141cde9a96eSYoshihiro Shimoda #include <dt-bindings/power/r8a7790-sysc.h> 142cde9a96eSYoshihiro Shimoda 143cde9a96eSYoshihiro Shimoda dmac0: dma-controller@e6700000 { 144cde9a96eSYoshihiro Shimoda compatible = "renesas,dmac-r8a7790", "renesas,rcar-dmac"; 145cde9a96eSYoshihiro Shimoda reg = <0xe6700000 0x20000>; 146cde9a96eSYoshihiro Shimoda interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, 147cde9a96eSYoshihiro Shimoda <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>, 148cde9a96eSYoshihiro Shimoda <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>, 149cde9a96eSYoshihiro Shimoda <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>, 150cde9a96eSYoshihiro Shimoda <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>, 151cde9a96eSYoshihiro Shimoda <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>, 152cde9a96eSYoshihiro Shimoda <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, 153cde9a96eSYoshihiro Shimoda <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>, 154cde9a96eSYoshihiro Shimoda <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, 155cde9a96eSYoshihiro Shimoda <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>, 156cde9a96eSYoshihiro Shimoda <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>, 157cde9a96eSYoshihiro Shimoda <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>, 158cde9a96eSYoshihiro Shimoda <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, 159cde9a96eSYoshihiro Shimoda <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>, 160cde9a96eSYoshihiro Shimoda <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, 161cde9a96eSYoshihiro Shimoda <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>; 162cde9a96eSYoshihiro Shimoda interrupt-names = "error", 163cde9a96eSYoshihiro Shimoda "ch0", "ch1", "ch2", "ch3", 164cde9a96eSYoshihiro Shimoda "ch4", "ch5", "ch6", "ch7", 165cde9a96eSYoshihiro Shimoda "ch8", "ch9", "ch10", "ch11", 166cde9a96eSYoshihiro Shimoda "ch12", "ch13", "ch14"; 167cde9a96eSYoshihiro Shimoda clocks = <&cpg CPG_MOD 219>; 168cde9a96eSYoshihiro Shimoda clock-names = "fck"; 169cde9a96eSYoshihiro Shimoda power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; 170cde9a96eSYoshihiro Shimoda resets = <&cpg 219>; 171cde9a96eSYoshihiro Shimoda #dma-cells = <1>; 172cde9a96eSYoshihiro Shimoda dma-channels = <15>; 173cde9a96eSYoshihiro Shimoda }; 174