xref: /freebsd/sys/contrib/device-tree/Bindings/net/davicom,dm9051.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
1*c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c9ccf3a3SEmmanuel Vadot%YAML 1.2
3*c9ccf3a3SEmmanuel Vadot---
4*c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/net/davicom,dm9051.yaml#
5*c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c9ccf3a3SEmmanuel Vadot
7*c9ccf3a3SEmmanuel Vadottitle: Davicom DM9051 SPI Ethernet Controller
8*c9ccf3a3SEmmanuel Vadot
9*c9ccf3a3SEmmanuel Vadotmaintainers:
10*c9ccf3a3SEmmanuel Vadot  - Joseph CHANG <josright123@gmail.com>
11*c9ccf3a3SEmmanuel Vadot
12*c9ccf3a3SEmmanuel Vadotdescription: |
13*c9ccf3a3SEmmanuel Vadot  The DM9051 is a fully integrated and cost-effective low pin count single
14*c9ccf3a3SEmmanuel Vadot  chip Fast Ethernet controller with a Serial Peripheral Interface (SPI).
15*c9ccf3a3SEmmanuel Vadot
16*c9ccf3a3SEmmanuel VadotallOf:
17*c9ccf3a3SEmmanuel Vadot  - $ref: ethernet-controller.yaml#
18*c9ccf3a3SEmmanuel Vadot
19*c9ccf3a3SEmmanuel Vadotproperties:
20*c9ccf3a3SEmmanuel Vadot  compatible:
21*c9ccf3a3SEmmanuel Vadot    const: davicom,dm9051
22*c9ccf3a3SEmmanuel Vadot
23*c9ccf3a3SEmmanuel Vadot  reg:
24*c9ccf3a3SEmmanuel Vadot    maxItems: 1
25*c9ccf3a3SEmmanuel Vadot
26*c9ccf3a3SEmmanuel Vadot  spi-max-frequency:
27*c9ccf3a3SEmmanuel Vadot    maximum: 45000000
28*c9ccf3a3SEmmanuel Vadot
29*c9ccf3a3SEmmanuel Vadot  interrupts:
30*c9ccf3a3SEmmanuel Vadot    maxItems: 1
31*c9ccf3a3SEmmanuel Vadot
32*c9ccf3a3SEmmanuel Vadot  local-mac-address: true
33*c9ccf3a3SEmmanuel Vadot
34*c9ccf3a3SEmmanuel Vadot  mac-address: true
35*c9ccf3a3SEmmanuel Vadot
36*c9ccf3a3SEmmanuel Vadotrequired:
37*c9ccf3a3SEmmanuel Vadot  - compatible
38*c9ccf3a3SEmmanuel Vadot  - reg
39*c9ccf3a3SEmmanuel Vadot  - spi-max-frequency
40*c9ccf3a3SEmmanuel Vadot  - interrupts
41*c9ccf3a3SEmmanuel Vadot
42*c9ccf3a3SEmmanuel VadotadditionalProperties: false
43*c9ccf3a3SEmmanuel Vadot
44*c9ccf3a3SEmmanuel Vadotexamples:
45*c9ccf3a3SEmmanuel Vadot  # Raspberry Pi platform
46*c9ccf3a3SEmmanuel Vadot  - |
47*c9ccf3a3SEmmanuel Vadot    /* for Raspberry Pi with pin control stuff for GPIO irq */
48*c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
49*c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
50*c9ccf3a3SEmmanuel Vadot    spi {
51*c9ccf3a3SEmmanuel Vadot        #address-cells = <1>;
52*c9ccf3a3SEmmanuel Vadot        #size-cells = <0>;
53*c9ccf3a3SEmmanuel Vadot
54*c9ccf3a3SEmmanuel Vadot        ethernet@0 {
55*c9ccf3a3SEmmanuel Vadot            compatible = "davicom,dm9051";
56*c9ccf3a3SEmmanuel Vadot            reg = <0>; /* spi chip select */
57*c9ccf3a3SEmmanuel Vadot            local-mac-address = [00 00 00 00 00 00];
58*c9ccf3a3SEmmanuel Vadot            interrupt-parent = <&gpio>;
59*c9ccf3a3SEmmanuel Vadot            interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
60*c9ccf3a3SEmmanuel Vadot            spi-max-frequency = <31200000>;
61*c9ccf3a3SEmmanuel Vadot        };
62*c9ccf3a3SEmmanuel Vadot    };
63