Skip to content

Commit a429ab0

Browse files
miquelraynalPaolo Abeni
authored andcommitted
dt-bindings: net: marvell,prestera: Convert to yaml
The currently described switch family is named AlleyCat3, it is a memory mapped switch found on Armada XP boards. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 63b956f commit a429ab0

File tree

2 files changed

+45
-29
lines changed

2 files changed

+45
-29
lines changed

Documentation/devicetree/bindings/net/marvell,prestera.txt

Lines changed: 0 additions & 29 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/net/marvell,prestera.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell Prestera AlleyCat3 switch
8+
9+
maintainers:
10+
- Miquel Raynal <miquel.raynal@bootlin.com>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- enum:
16+
- marvell,prestera-98dx3236
17+
- marvell,prestera-98dx3336
18+
- marvell,prestera-98dx4251
19+
- const: marvell,prestera
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 3
26+
27+
dfx:
28+
description: Reference to the DFX Server bus node.
29+
$ref: /schemas/types.yaml#/definitions/phandle
30+
31+
required:
32+
- compatible
33+
- reg
34+
- interrupts
35+
36+
additionalProperties: false
37+
38+
examples:
39+
- |
40+
packet-processor@0 {
41+
compatible = "marvell,prestera-98dx3236", "marvell,prestera";
42+
reg = <0 0x4000000>;
43+
interrupts = <33>, <34>, <35>;
44+
dfx = <&dfx>;
45+
};

0 commit comments

Comments
 (0)