.. | .. |
---|
8 | 8 | sink. Each CoreSight component device should use these properties to describe |
---|
9 | 9 | its hardware characteristcs. |
---|
10 | 10 | |
---|
11 | | -* Required properties for all components *except* non-configurable replicators: |
---|
| 11 | +* Required properties for all components *except* non-configurable replicators |
---|
| 12 | + and non-configurable funnels: |
---|
12 | 13 | |
---|
13 | 14 | * compatible: These have to be supplemented with "arm,primecell" as |
---|
14 | 15 | drivers are using the AMBA bus interface. Possible values include: |
---|
.. | .. |
---|
24 | 25 | discovered at boot time when the device is probed. |
---|
25 | 26 | "arm,coresight-tmc", "arm,primecell"; |
---|
26 | 27 | |
---|
27 | | - - Trace Funnel: |
---|
28 | | - "arm,coresight-funnel", "arm,primecell"; |
---|
| 28 | + - Trace Programmable Funnel: |
---|
| 29 | + "arm,coresight-dynamic-funnel", "arm,primecell"; |
---|
| 30 | + "arm,coresight-funnel", "arm,primecell"; (OBSOLETE. For |
---|
| 31 | + backward compatibility and will be removed) |
---|
29 | 32 | |
---|
30 | 33 | - Embedded Trace Macrocell (version 3.x) and |
---|
31 | 34 | Program Flow Trace Macrocell: |
---|
32 | 35 | "arm,coresight-etm3x", "arm,primecell"; |
---|
33 | 36 | |
---|
34 | | - - Embedded Trace Macrocell (version 4.x): |
---|
| 37 | + - Embedded Trace Macrocell (version 4.x), with memory mapped access. |
---|
35 | 38 | "arm,coresight-etm4x", "arm,primecell"; |
---|
| 39 | + |
---|
| 40 | + - Embedded Trace Macrocell (version 4.x), with system register access only. |
---|
| 41 | + "arm,coresight-etm4x-sysreg"; |
---|
36 | 42 | |
---|
37 | 43 | - Coresight programmable Replicator : |
---|
38 | 44 | "arm,coresight-dynamic-replicator", "arm,primecell"; |
---|
.. | .. |
---|
41 | 47 | "arm,coresight-stm", "arm,primecell"; [1] |
---|
42 | 48 | - Coresight Address Translation Unit (CATU) |
---|
43 | 49 | "arm,coresight-catu", "arm,primecell"; |
---|
| 50 | + |
---|
| 51 | + - Coresight Cross Trigger Interface (CTI): |
---|
| 52 | + "arm,coresight-cti", "arm,primecell"; |
---|
| 53 | + See coresight-cti.yaml for full CTI definitions. |
---|
44 | 54 | |
---|
45 | 55 | * reg: physical base address and length of the register |
---|
46 | 56 | set(s) of the component. |
---|
.. | .. |
---|
54 | 64 | clocks the core of that coresight component. The latter clock |
---|
55 | 65 | is optional. |
---|
56 | 66 | |
---|
57 | | - * port or ports: The representation of the component's port |
---|
58 | | - layout using the generic DT graph presentation found in |
---|
59 | | - "bindings/graph.txt". |
---|
| 67 | + * port or ports: see "Graph bindings for Coresight" below. |
---|
| 68 | + |
---|
| 69 | +* Additional required property for Embedded Trace Macrocell (version 3.x and |
---|
| 70 | + version 4.x): |
---|
| 71 | + * cpu: the cpu phandle this ETM/PTM is affined to. Do not |
---|
| 72 | + assume it to default to CPU0 if omitted. |
---|
60 | 73 | |
---|
61 | 74 | * Additional required properties for System Trace Macrocells (STM): |
---|
62 | 75 | * reg: along with the physical base address and length of the register |
---|
.. | .. |
---|
66 | 79 | * reg-names: the only acceptable values are "stm-base" and |
---|
67 | 80 | "stm-stimulus-base", each corresponding to the areas defined in "reg". |
---|
68 | 81 | |
---|
| 82 | +* Required properties for Coresight Cross Trigger Interface (CTI) |
---|
| 83 | + See coresight-cti.yaml for full CTI definitions. |
---|
| 84 | + |
---|
69 | 85 | * Required properties for devices that don't show up on the AMBA bus, such as |
---|
70 | | - non-configurable replicators: |
---|
| 86 | + non-configurable replicators and non-configurable funnels: |
---|
71 | 87 | |
---|
72 | 88 | * compatible: Currently supported value is (note the absence of the |
---|
73 | 89 | AMBA markee): |
---|
74 | | - - "arm,coresight-replicator" |
---|
| 90 | + - Coresight Non-configurable Replicator: |
---|
| 91 | + "arm,coresight-static-replicator"; |
---|
| 92 | + "arm,coresight-replicator"; (OBSOLETE. For backward |
---|
| 93 | + compatibility and will be removed) |
---|
75 | 94 | |
---|
76 | | - * port or ports: same as above. |
---|
| 95 | + - Coresight Non-configurable Funnel: |
---|
| 96 | + "arm,coresight-static-funnel"; |
---|
| 97 | + |
---|
| 98 | + * port or ports: see "Graph bindings for Coresight" below. |
---|
77 | 99 | |
---|
78 | 100 | * Optional properties for all components: |
---|
79 | 101 | |
---|
.. | .. |
---|
89 | 111 | * arm,cp14: must be present if the system accesses ETM/PTM management |
---|
90 | 112 | registers via co-processor 14. |
---|
91 | 113 | |
---|
92 | | - * cpu: the cpu phandle this ETM/PTM is affined to. When omitted the |
---|
93 | | - source is considered to belong to CPU0. |
---|
| 114 | + * qcom,skip-power-up: boolean. Indicates that an implementation can |
---|
| 115 | + skip powering up the trace unit. TRCPDCR.PU does not have to be set |
---|
| 116 | + on Qualcomm Technologies Inc. systems since ETMs are in the same power |
---|
| 117 | + domain as their CPU cores. This property is required to identify such |
---|
| 118 | + systems with hardware errata where the CPU watchdog counter is stopped |
---|
| 119 | + when TRCPDCR.PU is set. |
---|
94 | 120 | |
---|
95 | 121 | * Optional property for TMC: |
---|
96 | 122 | |
---|
.. | .. |
---|
105 | 131 | * interrupts : Exactly one SPI may be listed for reporting the address |
---|
106 | 132 | error |
---|
107 | 133 | |
---|
| 134 | +* Optional property for configurable replicators: |
---|
| 135 | + |
---|
| 136 | + * qcom,replicator-loses-context: boolean. Indicates that the replicator |
---|
| 137 | + will lose register context when AMBA clock is removed which is observed |
---|
| 138 | + in some replicator designs. |
---|
| 139 | + |
---|
| 140 | +Graph bindings for Coresight |
---|
| 141 | +------------------------------- |
---|
| 142 | + |
---|
| 143 | +Coresight components are interconnected to create a data path for the flow of |
---|
| 144 | +trace data generated from the "sources" to their collection points "sink". |
---|
| 145 | +Each coresight component must describe the "input" and "output" connections. |
---|
| 146 | +The connections must be described via generic DT graph bindings as described |
---|
| 147 | +by the "bindings/graph.txt", where each "port" along with an "endpoint" |
---|
| 148 | +component represents a hardware port and the connection. |
---|
| 149 | + |
---|
| 150 | + * All output ports must be listed inside a child node named "out-ports" |
---|
| 151 | + * All input ports must be listed inside a child node named "in-ports". |
---|
| 152 | + * Port address must match the hardware port number. |
---|
| 153 | + |
---|
108 | 154 | Example: |
---|
109 | 155 | |
---|
110 | 156 | 1. Sinks |
---|
.. | .. |
---|
114 | 160 | |
---|
115 | 161 | clocks = <&oscclk6a>; |
---|
116 | 162 | clock-names = "apb_pclk"; |
---|
117 | | - port { |
---|
118 | | - etb_in_port: endpoint@0 { |
---|
119 | | - slave-mode; |
---|
120 | | - remote-endpoint = <&replicator_out_port0>; |
---|
| 163 | + in-ports { |
---|
| 164 | + port { |
---|
| 165 | + etb_in_port: endpoint@0 { |
---|
| 166 | + remote-endpoint = <&replicator_out_port0>; |
---|
| 167 | + }; |
---|
121 | 168 | }; |
---|
122 | 169 | }; |
---|
123 | 170 | }; |
---|
.. | .. |
---|
128 | 175 | |
---|
129 | 176 | clocks = <&oscclk6a>; |
---|
130 | 177 | clock-names = "apb_pclk"; |
---|
131 | | - port { |
---|
132 | | - tpiu_in_port: endpoint@0 { |
---|
133 | | - slave-mode; |
---|
134 | | - remote-endpoint = <&replicator_out_port1>; |
---|
| 178 | + in-ports { |
---|
| 179 | + port { |
---|
| 180 | + tpiu_in_port: endpoint@0 { |
---|
| 181 | + remote-endpoint = <&replicator_out_port1>; |
---|
| 182 | + }; |
---|
135 | 183 | }; |
---|
136 | 184 | }; |
---|
137 | 185 | }; |
---|
.. | .. |
---|
142 | 190 | |
---|
143 | 191 | clocks = <&oscclk6a>; |
---|
144 | 192 | clock-names = "apb_pclk"; |
---|
145 | | - ports { |
---|
146 | | - #address-cells = <1>; |
---|
147 | | - #size-cells = <0>; |
---|
148 | | - |
---|
149 | | - /* input port */ |
---|
150 | | - port@0 { |
---|
151 | | - reg = <0>; |
---|
| 193 | + in-ports { |
---|
| 194 | + port { |
---|
152 | 195 | etr_in_port: endpoint { |
---|
153 | | - slave-mode; |
---|
154 | 196 | remote-endpoint = <&replicator2_out_port0>; |
---|
155 | 197 | }; |
---|
156 | 198 | }; |
---|
| 199 | + }; |
---|
157 | 200 | |
---|
158 | | - /* CATU link represented by output port */ |
---|
159 | | - port@1 { |
---|
160 | | - reg = <1>; |
---|
| 201 | + out-ports { |
---|
| 202 | + port { |
---|
161 | 203 | etr_out_port: endpoint { |
---|
162 | 204 | remote-endpoint = <&catu_in_port>; |
---|
163 | 205 | }; |
---|
.. | .. |
---|
170 | 212 | /* non-configurable replicators don't show up on the |
---|
171 | 213 | * AMBA bus. As such no need to add "arm,primecell". |
---|
172 | 214 | */ |
---|
173 | | - compatible = "arm,coresight-replicator"; |
---|
| 215 | + compatible = "arm,coresight-static-replicator"; |
---|
174 | 216 | |
---|
175 | | - ports { |
---|
| 217 | + out-ports { |
---|
176 | 218 | #address-cells = <1>; |
---|
177 | 219 | #size-cells = <0>; |
---|
178 | 220 | |
---|
.. | .. |
---|
190 | 232 | remote-endpoint = <&tpiu_in_port>; |
---|
191 | 233 | }; |
---|
192 | 234 | }; |
---|
| 235 | + }; |
---|
193 | 236 | |
---|
194 | | - /* replicator input port */ |
---|
195 | | - port@2 { |
---|
196 | | - reg = <0>; |
---|
| 237 | + in-ports { |
---|
| 238 | + port { |
---|
197 | 239 | replicator_in_port0: endpoint { |
---|
198 | | - slave-mode; |
---|
199 | 240 | remote-endpoint = <&funnel_out_port0>; |
---|
200 | 241 | }; |
---|
201 | 242 | }; |
---|
202 | 243 | }; |
---|
203 | 244 | }; |
---|
204 | 245 | |
---|
| 246 | + funnel { |
---|
| 247 | + /* |
---|
| 248 | + * non-configurable funnel don't show up on the AMBA |
---|
| 249 | + * bus. As such no need to add "arm,primecell". |
---|
| 250 | + */ |
---|
| 251 | + compatible = "arm,coresight-static-funnel"; |
---|
| 252 | + clocks = <&crg_ctrl HI3660_PCLK>; |
---|
| 253 | + clock-names = "apb_pclk"; |
---|
| 254 | + |
---|
| 255 | + out-ports { |
---|
| 256 | + port { |
---|
| 257 | + combo_funnel_out: endpoint { |
---|
| 258 | + remote-endpoint = <&top_funnel_in>; |
---|
| 259 | + }; |
---|
| 260 | + }; |
---|
| 261 | + }; |
---|
| 262 | + |
---|
| 263 | + in-ports { |
---|
| 264 | + #address-cells = <1>; |
---|
| 265 | + #size-cells = <0>; |
---|
| 266 | + |
---|
| 267 | + port@0 { |
---|
| 268 | + reg = <0>; |
---|
| 269 | + combo_funnel_in0: endpoint { |
---|
| 270 | + remote-endpoint = <&cluster0_etf_out>; |
---|
| 271 | + }; |
---|
| 272 | + }; |
---|
| 273 | + |
---|
| 274 | + port@1 { |
---|
| 275 | + reg = <1>; |
---|
| 276 | + combo_funnel_in1: endpoint { |
---|
| 277 | + remote-endpoint = <&cluster1_etf_out>; |
---|
| 278 | + }; |
---|
| 279 | + }; |
---|
| 280 | + }; |
---|
| 281 | + }; |
---|
| 282 | + |
---|
205 | 283 | funnel@20040000 { |
---|
206 | | - compatible = "arm,coresight-funnel", "arm,primecell"; |
---|
| 284 | + compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; |
---|
207 | 285 | reg = <0 0x20040000 0 0x1000>; |
---|
208 | 286 | |
---|
209 | 287 | clocks = <&oscclk6a>; |
---|
210 | 288 | clock-names = "apb_pclk"; |
---|
211 | | - ports { |
---|
212 | | - #address-cells = <1>; |
---|
213 | | - #size-cells = <0>; |
---|
214 | | - |
---|
215 | | - /* funnel output port */ |
---|
216 | | - port@0 { |
---|
217 | | - reg = <0>; |
---|
| 289 | + out-ports { |
---|
| 290 | + port { |
---|
218 | 291 | funnel_out_port0: endpoint { |
---|
219 | 292 | remote-endpoint = |
---|
220 | 293 | <&replicator_in_port0>; |
---|
221 | 294 | }; |
---|
222 | 295 | }; |
---|
| 296 | + }; |
---|
223 | 297 | |
---|
224 | | - /* funnel input ports */ |
---|
225 | | - port@1 { |
---|
| 298 | + in-ports { |
---|
| 299 | + #address-cells = <1>; |
---|
| 300 | + #size-cells = <0>; |
---|
| 301 | + |
---|
| 302 | + port@0 { |
---|
226 | 303 | reg = <0>; |
---|
227 | 304 | funnel_in_port0: endpoint { |
---|
228 | | - slave-mode; |
---|
229 | 305 | remote-endpoint = <&ptm0_out_port>; |
---|
230 | 306 | }; |
---|
231 | 307 | }; |
---|
232 | 308 | |
---|
233 | | - port@2 { |
---|
| 309 | + port@1 { |
---|
234 | 310 | reg = <1>; |
---|
235 | 311 | funnel_in_port1: endpoint { |
---|
236 | | - slave-mode; |
---|
237 | 312 | remote-endpoint = <&ptm1_out_port>; |
---|
238 | 313 | }; |
---|
239 | 314 | }; |
---|
240 | 315 | |
---|
241 | | - port@3 { |
---|
| 316 | + port@2 { |
---|
242 | 317 | reg = <2>; |
---|
243 | 318 | funnel_in_port2: endpoint { |
---|
244 | | - slave-mode; |
---|
245 | 319 | remote-endpoint = <&etm0_out_port>; |
---|
246 | 320 | }; |
---|
247 | 321 | }; |
---|
.. | .. |
---|
257 | 331 | cpu = <&cpu0>; |
---|
258 | 332 | clocks = <&oscclk6a>; |
---|
259 | 333 | clock-names = "apb_pclk"; |
---|
260 | | - port { |
---|
261 | | - ptm0_out_port: endpoint { |
---|
262 | | - remote-endpoint = <&funnel_in_port0>; |
---|
| 334 | + out-ports { |
---|
| 335 | + port { |
---|
| 336 | + ptm0_out_port: endpoint { |
---|
| 337 | + remote-endpoint = <&funnel_in_port0>; |
---|
| 338 | + }; |
---|
263 | 339 | }; |
---|
264 | 340 | }; |
---|
265 | 341 | }; |
---|
.. | .. |
---|
271 | 347 | cpu = <&cpu1>; |
---|
272 | 348 | clocks = <&oscclk6a>; |
---|
273 | 349 | clock-names = "apb_pclk"; |
---|
274 | | - port { |
---|
275 | | - ptm1_out_port: endpoint { |
---|
276 | | - remote-endpoint = <&funnel_in_port1>; |
---|
| 350 | + out-ports { |
---|
| 351 | + port { |
---|
| 352 | + ptm1_out_port: endpoint { |
---|
| 353 | + remote-endpoint = <&funnel_in_port1>; |
---|
| 354 | + }; |
---|
277 | 355 | }; |
---|
278 | 356 | }; |
---|
279 | 357 | }; |
---|
.. | .. |
---|
287 | 365 | |
---|
288 | 366 | clocks = <&soc_smc50mhz>; |
---|
289 | 367 | clock-names = "apb_pclk"; |
---|
290 | | - port { |
---|
291 | | - stm_out_port: endpoint { |
---|
292 | | - remote-endpoint = <&main_funnel_in_port2>; |
---|
| 368 | + out-ports { |
---|
| 369 | + port { |
---|
| 370 | + stm_out_port: endpoint { |
---|
| 371 | + remote-endpoint = <&main_funnel_in_port2>; |
---|
| 372 | + }; |
---|
293 | 373 | }; |
---|
294 | 374 | }; |
---|
295 | 375 | }; |
---|
.. | .. |
---|
304 | 384 | clock-names = "apb_pclk"; |
---|
305 | 385 | |
---|
306 | 386 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
---|
307 | | - port { |
---|
308 | | - catu_in_port: endpoint { |
---|
309 | | - slave-mode; |
---|
310 | | - remote-endpoint = <&etr_out_port>; |
---|
| 387 | + in-ports { |
---|
| 388 | + port { |
---|
| 389 | + catu_in_port: endpoint { |
---|
| 390 | + remote-endpoint = <&etr_out_port>; |
---|
| 391 | + }; |
---|
311 | 392 | }; |
---|
312 | 393 | }; |
---|
313 | 394 | }; |
---|