1# Copyright (c) 2023 PHOENIX CONTACT Electronics GmbH
2# SPDX-License-Identifier: Apache-2.0
3
4description: |
5  ADIN2111 standalone 10BASE-T1L Ethernet controller with SPI interface.
6
7  An example:
8
9  adin2111: adin2111@0 {
10          compatible = "adi,adin2111";
11          reg = <0x0>;
12          spi-max-frequency = <25000000>;
13          int-gpios   = <&gpioe 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
14          reset-gpios = <&gpioe 8 GPIO_ACTIVE_LOW>;
15          port1 {
16              local-mac-address = [ CA 2F B7 10 23 63 ];
17          };
18          port2 {
19              local-mac-address = [ 3C 82 D4 A2 29 8E ];
20          };
21          mdio: mdio {
22                  compatible = "adi,adin2111-mdio";
23                  status = "okay";
24                  #address-cells = <1>;
25                  #size-cells = <0>;
26                  ethernet-phy@1 {
27                    reg = <0x1>;
28                    compatible = "adi,adin2111-phy";
29                    status = "okay";
30                  };
31                  ethernet-phy@2 {
32                    reg = <0x2>;
33                    compatible = "adi,adin2111-phy";
34                    status = "okay";
35                  };
36          };
37  };
38
39compatible: "adi,adin2111"
40
41include: [spi-device.yaml]
42
43bus: adin2111
44
45properties:
46  int-gpios:
47    type: phandle-array
48    required: true
49    description: |
50      The interrupt pin of ADIN2111 is active low.
51      If connected directly the MCU pin should be configured
52      as active low.
53  reset-gpios:
54    type: phandle-array
55    description: The reset pin of ADIN2111.
56
57child-binding:
58  description: Port properties
59  properties:
60    local-mac-address:
61      type: uint8-array
62      description: |
63        Specifies the MAC address that was assigned to the network device.
64