Skip to content

Commit 438d216

Browse files
robherringConchuOD
authored andcommitted
dt-bindings: cache: Convert marvell,{feroceon,kirkwood}-cache to DT schema
Convert the Marvell Feroceon/Kirkwood Cache binding to DT schema format. Use "marvell,kirkwood-cache" for the filename instead as that's only compatible used in a .dts upstream. Signed-off-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent d58a73c commit 438d216

File tree

2 files changed

+45
-16
lines changed

2 files changed

+45
-16
lines changed

Documentation/devicetree/bindings/cache/marvell,feroceon-cache.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/cache/marvell,kirkwood-cache.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell Feroceon/Kirkwood Cache
8+
9+
maintainers:
10+
- Andrew Lunn <[email protected]>
11+
- Gregory Clement <[email protected]>
12+
13+
properties:
14+
compatible:
15+
enum:
16+
- marvell,feroceon-cache
17+
- marvell,kirkwood-cache
18+
19+
reg:
20+
maxItems: 1
21+
22+
allOf:
23+
- if:
24+
properties:
25+
compatible:
26+
contains:
27+
const: marvell,kirkwood-cache
28+
then:
29+
required:
30+
- reg
31+
else:
32+
properties:
33+
reg: false
34+
35+
required:
36+
- compatible
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
l2-cache@20128 {
43+
compatible = "marvell,kirkwood-cache";
44+
reg = <0x20128 0x4>;
45+
};

0 commit comments

Comments
 (0)