xref: /freebsd/sys/contrib/device-tree/Bindings/net/engleder,tsnep.yaml (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/engleder,tsnep.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TSN endpoint Ethernet MAC binding
8
9maintainers:
10  - Gerhard Engleder <gerhard@engleder-embedded.com>
11
12allOf:
13  - $ref: ethernet-controller.yaml#
14
15properties:
16  compatible:
17    const: engleder,tsnep
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  local-mac-address: true
26
27  mac-address: true
28
29  nvmem-cells: true
30
31  nvmem-cells-names: true
32
33  phy-connection-type:
34    enum:
35      - mii
36      - gmii
37      - rgmii
38      - rgmii-id
39
40  phy-mode: true
41
42  phy-handle: true
43
44  mdio:
45    type: object
46    $ref: "mdio.yaml#"
47    description: optional node for embedded MDIO controller
48
49required:
50  - compatible
51  - reg
52  - interrupts
53
54additionalProperties: false
55
56examples:
57  - |
58    axi {
59        #address-cells = <2>;
60        #size-cells = <2>;
61        tnsep0: ethernet@a0000000 {
62            compatible = "engleder,tsnep";
63            reg = <0x0 0xa0000000 0x0 0x10000>;
64            interrupts = <0 89 1>;
65            interrupt-parent = <&gic>;
66            local-mac-address = [00 00 00 00 00 00];
67            phy-mode = "rgmii";
68            phy-handle = <&phy0>;
69            mdio {
70                #address-cells = <1>;
71                #size-cells = <0>;
72                suppress-preamble;
73                phy0: ethernet-phy@1 {
74                    reg = <1>;
75                    rxc-skew-ps = <1080>;
76                };
77            };
78        };
79    };
80