xref: /freebsd/sys/contrib/device-tree/Bindings/net/marvell,armada-380-neta-bm.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-380-neta-bm.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Marvell Armada 380/XP Buffer Manager (BM)
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Marcin Wojtas <marcin.s.wojtas@gmail.com>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotdescription:
13*833e5d42SEmmanuel Vadot  In order to see how to hook the BM to a given ethernet port, please refer to
14*833e5d42SEmmanuel Vadot  Documentation/devicetree/bindings/net/marvell,armada-370-neta.yaml.
15*833e5d42SEmmanuel Vadot
16*833e5d42SEmmanuel Vadotproperties:
17*833e5d42SEmmanuel Vadot  compatible:
18*833e5d42SEmmanuel Vadot    const: marvell,armada-380-neta-bm
19*833e5d42SEmmanuel Vadot
20*833e5d42SEmmanuel Vadot  reg:
21*833e5d42SEmmanuel Vadot    maxItems: 1
22*833e5d42SEmmanuel Vadot
23*833e5d42SEmmanuel Vadot  clocks:
24*833e5d42SEmmanuel Vadot    maxItems: 1
25*833e5d42SEmmanuel Vadot
26*833e5d42SEmmanuel Vadot  internal-mem:
27*833e5d42SEmmanuel Vadot    description: Phandle to internal SRAM region
28*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
29*833e5d42SEmmanuel Vadot
30*833e5d42SEmmanuel VadotpatternProperties:
31*833e5d42SEmmanuel Vadot  "^pool[0-3],capacity$":
32*833e5d42SEmmanuel Vadot    description:
33*833e5d42SEmmanuel Vadot      size of external buffer pointers' ring maintained in DRAM for pool 0-3
34*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
35*833e5d42SEmmanuel Vadot    minimum: 128
36*833e5d42SEmmanuel Vadot    maximum: 16352
37*833e5d42SEmmanuel Vadot
38*833e5d42SEmmanuel Vadot  "^pool[0-3],pkt-size$":
39*833e5d42SEmmanuel Vadot    description:
40*833e5d42SEmmanuel Vadot      maximum packet size for a short buffer pool entry (pool 0-3)
41*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
42*833e5d42SEmmanuel Vadot
43*833e5d42SEmmanuel Vadotrequired:
44*833e5d42SEmmanuel Vadot  - compatible
45*833e5d42SEmmanuel Vadot  - reg
46*833e5d42SEmmanuel Vadot  - clocks
47*833e5d42SEmmanuel Vadot  - internal-mem
48*833e5d42SEmmanuel Vadot
49*833e5d42SEmmanuel VadotadditionalProperties: false
50*833e5d42SEmmanuel Vadot
51*833e5d42SEmmanuel Vadotexamples:
52*833e5d42SEmmanuel Vadot  - |
53*833e5d42SEmmanuel Vadot    bm@c8000 {
54*833e5d42SEmmanuel Vadot        compatible = "marvell,armada-380-neta-bm";
55*833e5d42SEmmanuel Vadot        reg = <0xc8000 0xac>;
56*833e5d42SEmmanuel Vadot        clocks = <&gateclk 13>;
57*833e5d42SEmmanuel Vadot        internal-mem = <&bm_bppi>;
58*833e5d42SEmmanuel Vadot        pool2,capacity = <4096>;
59*833e5d42SEmmanuel Vadot        pool1,pkt-size = <512>;
60*833e5d42SEmmanuel Vadot    };
61