Cirrus Logic ep93xx SoC M2P DMA controller
Schema identifier ($id): "http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2p.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"cirrus,ep9301-dma-m2p"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cirrus,ep9302-dma-m2p","cirrus,ep9307-dma-m2p","cirrus,ep9312-dma-m2p","cirrus,ep9315-dma-m2p"Item 2
Exact value (
const):"cirrus,ep9301-dma-m2p"
reg — required here #
Array item rules (items) #
Item 1
m2p0 channel registers
Item 2
m2p1 channel registers
Item 3
m2p2 channel registers
Item 4
m2p3 channel registers
Item 5
m2p4 channel registers
Item 6
m2p5 channel registers
Item 7
m2p6 channel registers
Item 8
m2p7 channel registers
Item 9
m2p8 channel registers
Item 10
m2p9 channel registers
clocks — required here #
Array item rules (items) #
Item 1
m2p0 channel gate clock
Item 2
m2p1 channel gate clock
Item 3
m2p2 channel gate clock
Item 4
m2p3 channel gate clock
Item 5
m2p4 channel gate clock
Item 6
m2p5 channel gate clock
Item 7
m2p6 channel gate clock
Item 8
m2p7 channel gate clock
Item 9
m2p8 channel gate clock
Item 10
m2p9 channel gate clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"m2p0"
Item 2
Exact value (
const):"m2p1"
Item 3
Exact value (
const):"m2p2"
Item 4
Exact value (
const):"m2p3"
Item 5
Exact value (
const):"m2p4"
Item 6
Exact value (
const):"m2p5"
Item 7
Exact value (
const):"m2p6"
Item 8
Exact value (
const):"m2p7"
Item 9
Exact value (
const):"m2p8"
Item 10
Exact value (
const):"m2p9"
interrupts — required here #
Array item rules (items) #
Item 1
m2p0 channel interrupt
Item 2
m2p1 channel interrupt
Item 3
m2p2 channel interrupt
Item 4
m2p3 channel interrupt
Item 5
m2p4 channel interrupt
Item 6
m2p5 channel interrupt
Item 7
m2p6 channel interrupt
Item 8
m2p7 channel interrupt
Item 9
m2p8 channel interrupt
Item 10
m2p9 channel interrupt
#dma-cells — not listed as required here #
Exact value (const): 2
The first cell is the unique device channel number as indicated by this table for ep93xx:
0: I2S channel 1 1: I2S channel 2 (unused) 2: AC97 channel 1 (unused) 3: AC97 channel 2 (unused) 4: AC97 channel 3 (unused) 5: I2S channel 3 (unused) 6: UART1 (unused) 7: UART2 (unused) 8: UART3 (unused) 9: IRDA (unused)
The second cell is the DMA direction line number:
1: Memory to device 2: Device to memory
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/cirrus,ep9301-syscon.h>
dma-controller@80000000 {
compatible = "cirrus,ep9301-dma-m2p";
reg = <0x80000000 0x0040>,
<0x80000040 0x0040>,
<0x80000080 0x0040>,
<0x800000c0 0x0040>,
<0x80000240 0x0040>,
<0x80000200 0x0040>,
<0x800002c0 0x0040>,
<0x80000280 0x0040>,
<0x80000340 0x0040>,
<0x80000300 0x0040>;
clocks = <&syscon EP93XX_CLK_M2P0>,
<&syscon EP93XX_CLK_M2P1>,
<&syscon EP93XX_CLK_M2P2>,
<&syscon EP93XX_CLK_M2P3>,
<&syscon EP93XX_CLK_M2P4>,
<&syscon EP93XX_CLK_M2P5>,
<&syscon EP93XX_CLK_M2P6>,
<&syscon EP93XX_CLK_M2P7>,
<&syscon EP93XX_CLK_M2P8>,
<&syscon EP93XX_CLK_M2P9>;
clock-names = "m2p0", "m2p1",
"m2p2", "m2p3",
"m2p4", "m2p5",
"m2p6", "m2p7",
"m2p8", "m2p9";
interrupt-parent = <&vic0>;
interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>;
#dma-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)