| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/dma/allwinner,sun50i-a64-dma.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Allwinner A64 DMA Controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Chen-Yu Tsai <[email protected]> |
| 11 |
- Maxime Ripard <[email protected]> |
| 12 |
|
| 13 |
allOf: |
| 14 |
- $ref: dma-controller.yaml# |
| 15 |
|
| 16 |
properties: |
| 17 |
"#dma-cells": |
| 18 |
const: 1 |
| 19 |
description: The cell is the request line number. |
| 20 |
|
| 21 |
compatible: |
| 22 |
oneOf: |
| 23 |
- enum: |
| 24 |
- allwinner,sun20i-d1-dma |
| 25 |
- allwinner,sun50i-a64-dma |
| 26 |
- allwinner,sun50i-a100-dma |
| 27 |
- allwinner,sun50i-h6-dma |
| 28 |
- items: |
| 29 |
- const: allwinner,sun8i-r40-dma |
| 30 |
- const: allwinner,sun50i-a64-dma |
| 31 |
- items: |
| 32 |
- enum: |
| 33 |
- allwinner,sun50i-h616-dma |
| 34 |
- allwinner,sun55i-a523-dma |
| 35 |
- allwinner,sun55i-a523-mcu-dma |
| 36 |
- const: allwinner,sun50i-a100-dma |
| 37 |
|
| 38 |
reg: |
| 39 |
maxItems: 1 |
| 40 |
|
| 41 |
interrupts: |
| 42 |
maxItems: 1 |
| 43 |
|
| 44 |
clocks: |
| 45 |
minItems: 1 |
| 46 |
maxItems: 2 |
| 47 |
|
| 48 |
clock-names: |
| 49 |
items: |
| 50 |
- const: bus |
| 51 |
- const: mbus |
| 52 |
|
| 53 |
resets: |
| 54 |
maxItems: 1 |
| 55 |
|
| 56 |
required: |
| 57 |
- "#dma-cells" |
| 58 |
- compatible |
| 59 |
- reg |
| 60 |
- interrupts |
| 61 |
- clocks |
| 62 |
- resets |
| 63 |
- dma-channels |
| 64 |
|
| 65 |
if: |
| 66 |
properties: |
| 67 |
compatible: |
| 68 |
contains: |
| 69 |
enum: |
| 70 |
- allwinner,sun20i-d1-dma |
| 71 |
- allwinner,sun50i-a100-dma |
| 72 |
- allwinner,sun50i-h6-dma |
| 73 |
|
| 74 |
then: |
| 75 |
properties: |
| 76 |
clocks: |
| 77 |
minItems: 2 |
| 78 |
|
| 79 |
required: |
| 80 |
- clock-names |
| 81 |
|
| 82 |
else: |
| 83 |
properties: |
| 84 |
clocks: |
| 85 |
maxItems: 1 |
| 86 |
|
| 87 |
unevaluatedProperties: false |
| 88 |
|
| 89 |
examples: |
| 90 |
- | |
| 91 |
dma: dma-controller@1c02000 { |
| 92 |
compatible = "allwinner,sun50i-a64-dma"; |
| 93 |
reg = <0x01c02000 0x1000>; |
| 94 |
interrupts = <0 50 4>; |
| 95 |
clocks = <&ccu 30>; |
| 96 |
dma-channels = <8>; |
| 97 |
dma-requests = <27>; |
| 98 |
resets = <&ccu 7>; |
| 99 |
#dma-cells = <1>; |
| 100 |
}; |
| 101 |
|
| 102 |
... |