Skip to content

Commit 31c70e0

Browse files
Yttrium-32vinodkoul
authored andcommitted
dt-bindings: dma: mv-xor-v2: Convert to dtschema
Convert txt bindings of Marvell XOR v2 engines to dtschema to allow for validation. Also add missing property `dma-coherent` as `drivers/dma/mv_xor_v2.c` calls various dma-coherent memory functions. Signed-off-by: Shresth Prasad <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 7492b2f commit 31c70e0

File tree

2 files changed

+61
-28
lines changed

2 files changed

+61
-28
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/marvell,xor-v2.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell XOR v2 engines
8+
9+
maintainers:
10+
- Andrew Lunn <[email protected]>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- const: marvell,xor-v2
16+
- items:
17+
- enum:
18+
- marvell,armada-7k-xor
19+
- const: marvell,xor-v2
20+
21+
reg:
22+
items:
23+
- description: DMA registers
24+
- description: global registers
25+
26+
clocks:
27+
minItems: 1
28+
maxItems: 2
29+
30+
clock-names:
31+
minItems: 1
32+
items:
33+
- const: core
34+
- const: reg
35+
36+
msi-parent:
37+
description:
38+
Phandle to the MSI-capable interrupt controller used for
39+
interrupts.
40+
maxItems: 1
41+
42+
dma-coherent: true
43+
44+
required:
45+
- compatible
46+
- reg
47+
- msi-parent
48+
- dma-coherent
49+
50+
additionalProperties: false
51+
52+
examples:
53+
- |
54+
xor0@6a0000 {
55+
compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
56+
reg = <0x6a0000 0x1000>, <0x6b0000 0x1000>;
57+
clocks = <&ap_clk 0>, <&ap_clk 1>;
58+
clock-names = "core", "reg";
59+
msi-parent = <&gic_v2m0>;
60+
dma-coherent;
61+
};

Documentation/devicetree/bindings/dma/mv-xor-v2.txt

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)