xref: /freebsd/sys/contrib/device-tree/Bindings/net/marvell,armada-370-neta.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/net/marvell,armada-370-neta.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Marvell Armada 370/XP/3700/AC5 Ethernet Controller (NETA)
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Marcin Wojtas <marcin.s.wojtas@gmail.com>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel VadotallOf:
13*833e5d42SEmmanuel Vadot  - $ref: /schemas/net/ethernet-controller.yaml#
14*833e5d42SEmmanuel Vadot
15*833e5d42SEmmanuel Vadotproperties:
16*833e5d42SEmmanuel Vadot  compatible:
17*833e5d42SEmmanuel Vadot    enum:
18*833e5d42SEmmanuel Vadot      - marvell,armada-370-neta
19*833e5d42SEmmanuel Vadot      - marvell,armada-xp-neta
20*833e5d42SEmmanuel Vadot      - marvell,armada-3700-neta
21*833e5d42SEmmanuel Vadot      - marvell,armada-ac5-neta
22*833e5d42SEmmanuel Vadot
23*833e5d42SEmmanuel Vadot  reg:
24*833e5d42SEmmanuel Vadot    maxItems: 1
25*833e5d42SEmmanuel Vadot
26*833e5d42SEmmanuel Vadot  interrupts:
27*833e5d42SEmmanuel Vadot    maxItems: 1
28*833e5d42SEmmanuel Vadot
29*833e5d42SEmmanuel Vadot  clocks:
30*833e5d42SEmmanuel Vadot    minItems: 1
31*833e5d42SEmmanuel Vadot    maxItems: 2
32*833e5d42SEmmanuel Vadot
33*833e5d42SEmmanuel Vadot  clock-names:
34*833e5d42SEmmanuel Vadot    minItems: 1
35*833e5d42SEmmanuel Vadot    items:
36*833e5d42SEmmanuel Vadot      - const: core
37*833e5d42SEmmanuel Vadot      - const: bus
38*833e5d42SEmmanuel Vadot
39*833e5d42SEmmanuel Vadot  phys:
40*833e5d42SEmmanuel Vadot    maxItems: 1
41*833e5d42SEmmanuel Vadot
42*833e5d42SEmmanuel Vadot  tx-csum-limit:
43*833e5d42SEmmanuel Vadot    description: Maximum MTU in bytes for Tx checksum offload; default is 1600 for
44*833e5d42SEmmanuel Vadot      armada-370-neta and 9800 for others.
45*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
46*833e5d42SEmmanuel Vadot
47*833e5d42SEmmanuel Vadot  buffer-manager:
48*833e5d42SEmmanuel Vadot    description: Phandle to hardware buffer manager.
49*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
50*833e5d42SEmmanuel Vadot
51*833e5d42SEmmanuel Vadot  bm,pool-long:
52*833e5d42SEmmanuel Vadot    description: Pool ID for packets larger than the short threshold.
53*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
54*833e5d42SEmmanuel Vadot
55*833e5d42SEmmanuel Vadot  bm,pool-short:
56*833e5d42SEmmanuel Vadot    description: Pool ID for packets smaller than the long threshold.
57*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
58*833e5d42SEmmanuel Vadot
59*833e5d42SEmmanuel Vadotrequired:
60*833e5d42SEmmanuel Vadot  - compatible
61*833e5d42SEmmanuel Vadot  - reg
62*833e5d42SEmmanuel Vadot  - clocks
63*833e5d42SEmmanuel Vadot
64*833e5d42SEmmanuel VadotunevaluatedProperties: false
65*833e5d42SEmmanuel Vadot
66*833e5d42SEmmanuel Vadotexamples:
67*833e5d42SEmmanuel Vadot  - |
68*833e5d42SEmmanuel Vadot    ethernet@70000 {
69*833e5d42SEmmanuel Vadot        compatible = "marvell,armada-370-neta";
70*833e5d42SEmmanuel Vadot        reg = <0x70000 0x2500>;
71*833e5d42SEmmanuel Vadot        interrupts = <8>;
72*833e5d42SEmmanuel Vadot        clocks = <&gate_clk 4>;
73*833e5d42SEmmanuel Vadot        tx-csum-limit = <9800>;
74*833e5d42SEmmanuel Vadot        phy = <&phy0>;
75*833e5d42SEmmanuel Vadot        phy-mode = "rgmii-id";
76*833e5d42SEmmanuel Vadot        buffer-manager = <&bm>;
77*833e5d42SEmmanuel Vadot        bm,pool-long = <0>;
78*833e5d42SEmmanuel Vadot        bm,pool-short = <1>;
79*833e5d42SEmmanuel Vadot    };
80