1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/lantiq,etop-xway.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Lantiq Xway ETOP Ethernet driver
8
9maintainers:
10  - John Crispin <john@phrozen.org>
11
12properties:
13  $nodename:
14    pattern: "^ethernet@[0-9a-f]+$"
15
16  compatible:
17    const: lantiq,etop-xway
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    items:
24      - description: TX interrupt
25      - description: RX interrupt
26
27  interrupt-names:
28    items:
29      - const: tx
30      - const: rx
31
32  lantiq,tx-burst-length:
33    $ref: /schemas/types.yaml#/definitions/uint32
34    description: |
35      TX programmable burst length.
36    enum: [2, 4, 8]
37
38  lantiq,rx-burst-length:
39    $ref: /schemas/types.yaml#/definitions/uint32
40    description: |
41      RX programmable burst length.
42    enum: [2, 4, 8]
43
44  phy-mode: true
45
46required:
47  - compatible
48  - reg
49  - interrupt-parent
50  - interrupts
51  - interrupt-names
52  - lantiq,tx-burst-length
53  - lantiq,rx-burst-length
54  - phy-mode
55
56additionalProperties: false
57
58examples:
59  - |
60    ethernet@e180000 {
61        compatible = "lantiq,etop-xway";
62        reg = <0xe180000 0x40000>;
63        interrupt-parent = <&icu0>;
64        interrupts = <73>, <78>;
65        interrupt-names = "tx", "rx";
66        lantiq,tx-burst-length = <8>;
67        lantiq,rx-burst-length = <8>;
68        phy-mode = "rmii";
69    };
70