xref: /freebsd/sys/contrib/device-tree/Bindings/net/lantiq,etop-xway.yaml (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
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  - interrupts
50  - interrupt-names
51  - lantiq,tx-burst-length
52  - lantiq,rx-burst-length
53  - phy-mode
54
55additionalProperties: false
56
57examples:
58  - |
59    ethernet@e180000 {
60        compatible = "lantiq,etop-xway";
61        reg = <0xe180000 0x40000>;
62        interrupt-parent = <&icu0>;
63        interrupts = <73>, <78>;
64        interrupt-names = "tx", "rx";
65        lantiq,tx-burst-length = <8>;
66        lantiq,rx-burst-length = <8>;
67        phy-mode = "rmii";
68    };
69