xref: /freebsd/sys/contrib/device-tree/Bindings/net/microchip,lan8650.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/net/microchip,lan8650.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Microchip LAN8650/1 10BASE-T1S MACPHY Ethernet Controllers
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
11*b2d2a78aSEmmanuel Vadot
12*b2d2a78aSEmmanuel Vadotdescription:
13*b2d2a78aSEmmanuel Vadot  The LAN8650/1 combines a Media Access Controller (MAC) and an Ethernet
14*b2d2a78aSEmmanuel Vadot  PHY to enable 10BASET1S networks. The Ethernet Media Access Controller
15*b2d2a78aSEmmanuel Vadot  (MAC) module implements a 10 Mbps half duplex Ethernet MAC, compatible
16*b2d2a78aSEmmanuel Vadot  with the IEEE 802.3 standard and a 10BASE-T1S physical layer transceiver
17*b2d2a78aSEmmanuel Vadot  integrated into the LAN8650/1. The communication between the Host and
18*b2d2a78aSEmmanuel Vadot  the MAC-PHY is specified in the OPEN Alliance 10BASE-T1x MACPHY Serial
19*b2d2a78aSEmmanuel Vadot  Interface (TC6).
20*b2d2a78aSEmmanuel Vadot
21*b2d2a78aSEmmanuel VadotallOf:
22*b2d2a78aSEmmanuel Vadot  - $ref: /schemas/net/ethernet-controller.yaml#
23*b2d2a78aSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
24*b2d2a78aSEmmanuel Vadot
25*b2d2a78aSEmmanuel Vadotproperties:
26*b2d2a78aSEmmanuel Vadot  compatible:
27*b2d2a78aSEmmanuel Vadot    oneOf:
28*b2d2a78aSEmmanuel Vadot      - const: microchip,lan8650
29*b2d2a78aSEmmanuel Vadot      - items:
30*b2d2a78aSEmmanuel Vadot          - const: microchip,lan8651
31*b2d2a78aSEmmanuel Vadot          - const: microchip,lan8650
32*b2d2a78aSEmmanuel Vadot
33*b2d2a78aSEmmanuel Vadot  reg:
34*b2d2a78aSEmmanuel Vadot    maxItems: 1
35*b2d2a78aSEmmanuel Vadot
36*b2d2a78aSEmmanuel Vadot  interrupts:
37*b2d2a78aSEmmanuel Vadot    description:
38*b2d2a78aSEmmanuel Vadot      Interrupt from MAC-PHY asserted in the event of Receive Chunks
39*b2d2a78aSEmmanuel Vadot      Available, Transmit Chunk Credits Available and Extended Status
40*b2d2a78aSEmmanuel Vadot      Event.
41*b2d2a78aSEmmanuel Vadot    maxItems: 1
42*b2d2a78aSEmmanuel Vadot
43*b2d2a78aSEmmanuel Vadot  spi-max-frequency:
44*b2d2a78aSEmmanuel Vadot    minimum: 15000000
45*b2d2a78aSEmmanuel Vadot    maximum: 25000000
46*b2d2a78aSEmmanuel Vadot
47*b2d2a78aSEmmanuel Vadotrequired:
48*b2d2a78aSEmmanuel Vadot  - compatible
49*b2d2a78aSEmmanuel Vadot  - reg
50*b2d2a78aSEmmanuel Vadot  - interrupts
51*b2d2a78aSEmmanuel Vadot  - spi-max-frequency
52*b2d2a78aSEmmanuel Vadot
53*b2d2a78aSEmmanuel VadotunevaluatedProperties: false
54*b2d2a78aSEmmanuel Vadot
55*b2d2a78aSEmmanuel Vadotexamples:
56*b2d2a78aSEmmanuel Vadot  - |
57*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
58*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
59*b2d2a78aSEmmanuel Vadot
60*b2d2a78aSEmmanuel Vadot    spi {
61*b2d2a78aSEmmanuel Vadot      #address-cells = <1>;
62*b2d2a78aSEmmanuel Vadot      #size-cells = <0>;
63*b2d2a78aSEmmanuel Vadot
64*b2d2a78aSEmmanuel Vadot      ethernet@0 {
65*b2d2a78aSEmmanuel Vadot        compatible = "microchip,lan8651", "microchip,lan8650";
66*b2d2a78aSEmmanuel Vadot        reg = <0>;
67*b2d2a78aSEmmanuel Vadot        pinctrl-names = "default";
68*b2d2a78aSEmmanuel Vadot        pinctrl-0 = <&eth0_pins>;
69*b2d2a78aSEmmanuel Vadot        interrupt-parent = <&gpio>;
70*b2d2a78aSEmmanuel Vadot        interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
71*b2d2a78aSEmmanuel Vadot        local-mac-address = [04 05 06 01 02 03];
72*b2d2a78aSEmmanuel Vadot        spi-max-frequency = <15000000>;
73*b2d2a78aSEmmanuel Vadot      };
74*b2d2a78aSEmmanuel Vadot    };
75