1*581e2ff8SNikita Shubin# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*581e2ff8SNikita Shubin%YAML 1.2 3*581e2ff8SNikita Shubin--- 4*581e2ff8SNikita Shubin$id: http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2m.yaml# 5*581e2ff8SNikita Shubin$schema: http://devicetree.org/meta-schemas/core.yaml# 6*581e2ff8SNikita Shubin 7*581e2ff8SNikita Shubintitle: Cirrus Logic ep93xx SoC DMA controller 8*581e2ff8SNikita Shubin 9*581e2ff8SNikita Shubinmaintainers: 10*581e2ff8SNikita Shubin - Alexander Sverdlin <alexander.sverdlin@gmail.com> 11*581e2ff8SNikita Shubin - Nikita Shubin <nikita.shubin@maquefel.me> 12*581e2ff8SNikita Shubin 13*581e2ff8SNikita ShubinallOf: 14*581e2ff8SNikita Shubin - $ref: dma-controller.yaml# 15*581e2ff8SNikita Shubin 16*581e2ff8SNikita Shubinproperties: 17*581e2ff8SNikita Shubin compatible: 18*581e2ff8SNikita Shubin oneOf: 19*581e2ff8SNikita Shubin - const: cirrus,ep9301-dma-m2m 20*581e2ff8SNikita Shubin - items: 21*581e2ff8SNikita Shubin - enum: 22*581e2ff8SNikita Shubin - cirrus,ep9302-dma-m2m 23*581e2ff8SNikita Shubin - cirrus,ep9307-dma-m2m 24*581e2ff8SNikita Shubin - cirrus,ep9312-dma-m2m 25*581e2ff8SNikita Shubin - cirrus,ep9315-dma-m2m 26*581e2ff8SNikita Shubin - const: cirrus,ep9301-dma-m2m 27*581e2ff8SNikita Shubin 28*581e2ff8SNikita Shubin reg: 29*581e2ff8SNikita Shubin items: 30*581e2ff8SNikita Shubin - description: m2m0 channel registers 31*581e2ff8SNikita Shubin - description: m2m1 channel registers 32*581e2ff8SNikita Shubin 33*581e2ff8SNikita Shubin clocks: 34*581e2ff8SNikita Shubin items: 35*581e2ff8SNikita Shubin - description: m2m0 channel gate clock 36*581e2ff8SNikita Shubin - description: m2m1 channel gate clock 37*581e2ff8SNikita Shubin 38*581e2ff8SNikita Shubin clock-names: 39*581e2ff8SNikita Shubin items: 40*581e2ff8SNikita Shubin - const: m2m0 41*581e2ff8SNikita Shubin - const: m2m1 42*581e2ff8SNikita Shubin 43*581e2ff8SNikita Shubin interrupts: 44*581e2ff8SNikita Shubin items: 45*581e2ff8SNikita Shubin - description: m2m0 channel interrupt 46*581e2ff8SNikita Shubin - description: m2m1 channel interrupt 47*581e2ff8SNikita Shubin 48*581e2ff8SNikita Shubin '#dma-cells': 49*581e2ff8SNikita Shubin const: 2 50*581e2ff8SNikita Shubin description: | 51*581e2ff8SNikita Shubin The first cell is the unique device channel number as indicated by this 52*581e2ff8SNikita Shubin table for ep93xx: 53*581e2ff8SNikita Shubin 54*581e2ff8SNikita Shubin 10: SPI controller 55*581e2ff8SNikita Shubin 11: IDE controller 56*581e2ff8SNikita Shubin 57*581e2ff8SNikita Shubin The second cell is the DMA direction line number: 58*581e2ff8SNikita Shubin 59*581e2ff8SNikita Shubin 1: Memory to device 60*581e2ff8SNikita Shubin 2: Device to memory 61*581e2ff8SNikita Shubin 62*581e2ff8SNikita Shubinrequired: 63*581e2ff8SNikita Shubin - compatible 64*581e2ff8SNikita Shubin - reg 65*581e2ff8SNikita Shubin - clocks 66*581e2ff8SNikita Shubin - clock-names 67*581e2ff8SNikita Shubin - interrupts 68*581e2ff8SNikita Shubin 69*581e2ff8SNikita ShubinadditionalProperties: false 70*581e2ff8SNikita Shubin 71*581e2ff8SNikita Shubinexamples: 72*581e2ff8SNikita Shubin - | 73*581e2ff8SNikita Shubin #include <dt-bindings/clock/cirrus,ep9301-syscon.h> 74*581e2ff8SNikita Shubin dma-controller@80000100 { 75*581e2ff8SNikita Shubin compatible = "cirrus,ep9301-dma-m2m"; 76*581e2ff8SNikita Shubin reg = <0x80000100 0x0040>, 77*581e2ff8SNikita Shubin <0x80000140 0x0040>; 78*581e2ff8SNikita Shubin clocks = <&syscon EP93XX_CLK_M2M0>, 79*581e2ff8SNikita Shubin <&syscon EP93XX_CLK_M2M1>; 80*581e2ff8SNikita Shubin clock-names = "m2m0", "m2m1"; 81*581e2ff8SNikita Shubin interrupt-parent = <&vic0>; 82*581e2ff8SNikita Shubin interrupts = <17>, <18>; 83*581e2ff8SNikita Shubin #dma-cells = <2>; 84*581e2ff8SNikita Shubin }; 85