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