xref: /freebsd/sys/contrib/device-tree/Bindings/perf/marvell-cn10k-tad.yaml (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/perf/marvell-cn10k-tad.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Marvell CN10K LLC-TAD performance monitor
8
9maintainers:
10  - Bhaskara Budiredla <bbudiredla@marvell.com>
11
12description: |
13  The Tag-and-Data units (TADs) maintain coherence and contain CN10K
14  shared on-chip last level cache (LLC). The tad pmu measures the
15  performance of last-level cache. Each tad pmu supports up to eight
16  counters.
17
18  The DT setup comprises of number of tad blocks, the sizes of pmu
19  regions, tad blocks and overall base address of the HW.
20
21properties:
22  compatible:
23    const: marvell,cn10k-tad-pmu
24
25  reg:
26    maxItems: 1
27
28  marvell,tad-cnt:
29    description: specifies the number of tads on the soc
30    $ref: /schemas/types.yaml#/definitions/uint32
31
32  marvell,tad-page-size:
33    description: specifies the size of each tad page
34    $ref: /schemas/types.yaml#/definitions/uint32
35
36  marvell,tad-pmu-page-size:
37    description: specifies the size of page that the pmu uses
38    $ref: /schemas/types.yaml#/definitions/uint32
39
40required:
41  - compatible
42  - reg
43  - marvell,tad-cnt
44  - marvell,tad-page-size
45  - marvell,tad-pmu-page-size
46
47additionalProperties: false
48
49examples:
50  - |
51
52    tad {
53        #address-cells = <2>;
54        #size-cells = <2>;
55
56        tad_pmu@80000000 {
57            compatible = "marvell,cn10k-tad-pmu";
58            reg = <0x87e2 0x80000000 0x0 0x1000>;
59            marvell,tad-cnt = <1>;
60            marvell,tad-page-size = <0x1000>;
61            marvell,tad-pmu-page-size = <0x1000>;
62        };
63    };
64