xref: /freebsd/sys/contrib/device-tree/Bindings/net/socionext,synquacer-netsec.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8bab661aSEmmanuel Vadot%YAML 1.2
3*8bab661aSEmmanuel Vadot---
4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/net/socionext,synquacer-netsec.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Socionext NetSec Ethernet Controller IP
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotmaintainers:
10*8bab661aSEmmanuel Vadot  - Jassi Brar <jaswinder.singh@linaro.org>
11*8bab661aSEmmanuel Vadot  - Ilias Apalodimas <ilias.apalodimas@linaro.org>
12*8bab661aSEmmanuel Vadot
13*8bab661aSEmmanuel VadotallOf:
14*8bab661aSEmmanuel Vadot  - $ref: ethernet-controller.yaml#
15*8bab661aSEmmanuel Vadot
16*8bab661aSEmmanuel Vadotproperties:
17*8bab661aSEmmanuel Vadot  compatible:
18*8bab661aSEmmanuel Vadot    const: socionext,synquacer-netsec
19*8bab661aSEmmanuel Vadot
20*8bab661aSEmmanuel Vadot  reg:
21*8bab661aSEmmanuel Vadot    items:
22*8bab661aSEmmanuel Vadot      - description: control register area
23*8bab661aSEmmanuel Vadot      - description: EEPROM holding the MAC address and microengine firmware
24*8bab661aSEmmanuel Vadot
25*8bab661aSEmmanuel Vadot  clocks:
26*8bab661aSEmmanuel Vadot    maxItems: 1
27*8bab661aSEmmanuel Vadot
28*8bab661aSEmmanuel Vadot  clock-names:
29*8bab661aSEmmanuel Vadot    const: phy_ref_clk
30*8bab661aSEmmanuel Vadot
31*8bab661aSEmmanuel Vadot  dma-coherent: true
32*8bab661aSEmmanuel Vadot
33*8bab661aSEmmanuel Vadot  interrupts:
34*8bab661aSEmmanuel Vadot    maxItems: 1
35*8bab661aSEmmanuel Vadot
36*8bab661aSEmmanuel Vadot  mdio:
37*8bab661aSEmmanuel Vadot    $ref: mdio.yaml#
38*8bab661aSEmmanuel Vadot
39*8bab661aSEmmanuel Vadotrequired:
40*8bab661aSEmmanuel Vadot  - compatible
41*8bab661aSEmmanuel Vadot  - reg
42*8bab661aSEmmanuel Vadot  - clocks
43*8bab661aSEmmanuel Vadot  - clock-names
44*8bab661aSEmmanuel Vadot  - interrupts
45*8bab661aSEmmanuel Vadot  - mdio
46*8bab661aSEmmanuel Vadot
47*8bab661aSEmmanuel VadotunevaluatedProperties: false
48*8bab661aSEmmanuel Vadot
49*8bab661aSEmmanuel Vadotexamples:
50*8bab661aSEmmanuel Vadot  - |
51*8bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
52*8bab661aSEmmanuel Vadot
53*8bab661aSEmmanuel Vadot    ethernet@522d0000 {
54*8bab661aSEmmanuel Vadot        compatible = "socionext,synquacer-netsec";
55*8bab661aSEmmanuel Vadot        reg = <0x522d0000 0x10000>, <0x10000000 0x10000>;
56*8bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
57*8bab661aSEmmanuel Vadot        clocks = <&clk_netsec>;
58*8bab661aSEmmanuel Vadot        clock-names = "phy_ref_clk";
59*8bab661aSEmmanuel Vadot        phy-mode = "rgmii";
60*8bab661aSEmmanuel Vadot        max-speed = <1000>;
61*8bab661aSEmmanuel Vadot        max-frame-size = <9000>;
62*8bab661aSEmmanuel Vadot        phy-handle = <&phy1>;
63*8bab661aSEmmanuel Vadot
64*8bab661aSEmmanuel Vadot        mdio {
65*8bab661aSEmmanuel Vadot            #address-cells = <1>;
66*8bab661aSEmmanuel Vadot            #size-cells = <0>;
67*8bab661aSEmmanuel Vadot            phy1: ethernet-phy@1 {
68*8bab661aSEmmanuel Vadot                compatible = "ethernet-phy-ieee802.3-c22";
69*8bab661aSEmmanuel Vadot                reg = <1>;
70*8bab661aSEmmanuel Vadot            };
71*8bab661aSEmmanuel Vadot        };
72*8bab661aSEmmanuel Vadot    };
73*8bab661aSEmmanuel Vadot...
74