xref: /linux/Documentation/devicetree/bindings/net/adi,ad3306.yaml (revision 91ec2035134982b98fab0609a9fd8480e8217dc1)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/adi,ad3306.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ADI ADIN1140 10BASE-T1S MAC-PHY
8
9maintainers:
10  - Ciprian Regus <ciprian.regus@analog.com>
11
12description: |
13  The ADIN1140 (also called AD3306) is a low power single port
14  10BASE-T1S MAC-PHY. It integrates an Ethernet PHY with a MAC
15  and all the associated analog circuitry.
16  The device tries to implement the Open Alliance TC6 10BASE-T1x MAC-PHY
17  Serial Interface specification and is compliant with the
18  IEEE 802.3cg-2019 Ethernet standard for 10 Mbps single pair
19  Ethernet (SPE). The device has a 4-wire SPI interface for
20  communication between the MAC and host processor.
21
22allOf:
23  - $ref: /schemas/net/ethernet-controller.yaml#
24  - $ref: /schemas/spi/spi-peripheral-props.yaml#
25
26properties:
27  compatible:
28    oneOf:
29      - items:
30          - const: adi,adin1140
31          - const: adi,ad3306
32      - const: adi,ad3306
33
34  reg:
35    maxItems: 1
36
37  spi-max-frequency:
38    maximum: 25000000
39
40  interrupts:
41    maxItems: 1
42    description: Interrupt from the MAC-PHY for receive data available
43      and error conditions
44
45required:
46  - compatible
47  - reg
48  - interrupts
49  - spi-max-frequency
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/irq.h>
56
57    spi {
58        #address-cells = <1>;
59        #size-cells = <0>;
60
61        ethernet@0 {
62            compatible = "adi,ad3306";
63            reg = <0>;
64            spi-max-frequency = <23000000>;
65
66            interrupt-parent = <&gpio>;
67            interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
68
69            local-mac-address = [ 00 11 22 33 44 55 ];
70        };
71    };
72