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,dfx-server.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Marvell Prestera DFX server
8
9maintainers:
10  - Miquel Raynal <miquel.raynal@bootlin.com>
11
12select:
13  properties:
14    compatible:
15      contains:
16        const: marvell,dfx-server
17  required:
18    - compatible
19
20properties:
21  compatible:
22    items:
23      - const: marvell,dfx-server
24      - const: simple-bus
25
26  reg:
27    maxItems: 1
28
29  ranges: true
30
31  '#address-cells':
32    const: 1
33
34  '#size-cells':
35    const: 1
36
37required:
38  - compatible
39  - reg
40  - ranges
41
42# The DFX server may expose clocks described as subnodes
43additionalProperties:
44  type: object
45
46examples:
47  - |
48
49    #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
50    bus@0 {
51        reg = <0 0>;
52        #address-cells = <2>;
53        #size-cells = <1>;
54
55        dfx-bus@ac000000 {
56            compatible = "marvell,dfx-server", "simple-bus";
57            #address-cells = <1>;
58            #size-cells = <1>;
59            ranges = <0 MBUS_ID(0x08, 0x00) 0 0x100000>;
60            reg = <MBUS_ID(0x08, 0x00) 0 0x100000>;
61        };
62    };
63