1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/arm/arm,coresight-static-replicator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Arm CoreSight Static Trace Bus Replicator
8
9maintainers:
10  - Mathieu Poirier <mathieu.poirier@linaro.org>
11  - Mike Leach <mike.leach@linaro.org>
12  - Leo Yan <leo.yan@linaro.org>
13  - Suzuki K Poulose <suzuki.poulose@arm.com>
14
15description: |
16  CoreSight components are compliant with the ARM CoreSight architecture
17  specification and can be connected in various topologies to suit a particular
18  SoCs tracing needs. These trace components can generally be classified as
19  sinks, links and sources. Trace data produced by one or more sources flows
20  through the intermediate links connecting the source to the currently selected
21  sink.
22
23  The Coresight replicator splits a single trace stream into two trace streams
24  for systems that have more than one trace sink component.
25
26properties:
27  compatible:
28    const: arm,coresight-static-replicator
29
30  in-ports:
31    $ref: /schemas/graph.yaml#/properties/ports
32    additionalProperties: false
33
34    properties:
35      port:
36        description: Input connection from CoreSight Trace bus
37        $ref: /schemas/graph.yaml#/properties/port
38
39  out-ports:
40    $ref: /schemas/graph.yaml#/properties/ports
41
42    patternProperties:
43      '^port@[01]$':
44        description: Output connections to CoreSight Trace bus
45        $ref: /schemas/graph.yaml#/properties/port
46
47required:
48  - compatible
49  - in-ports
50  - out-ports
51
52additionalProperties: false
53
54examples:
55  - |
56    replicator {
57        /*
58         * non-configurable replicators don't show up on the
59         * AMBA bus.  As such no need to add "arm,primecell".
60         */
61        compatible = "arm,coresight-static-replicator";
62
63        out-ports {
64            #address-cells = <1>;
65            #size-cells = <0>;
66
67            /* replicator output ports */
68            port@0 {
69                reg = <0>;
70                replicator_out_port0: endpoint {
71                    remote-endpoint = <&etb_in_port>;
72                };
73            };
74
75            port@1 {
76                reg = <1>;
77                replicator_out_port1: endpoint {
78                    remote-endpoint = <&tpiu_in_port>;
79                };
80            };
81        };
82
83        in-ports {
84            port {
85                replicator_in_port0: endpoint {
86                    remote-endpoint = <&funnel_out_port0>;
87                };
88            };
89        };
90    };
91...
92