1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * dtsi file for Hisilicon Hi6220 coresight 4 * 5 * Copyright (C) 2017 Hisilicon Ltd. 6 * 7 * Author: Pengcheng Li <lipengcheng8@huawei.com> 8 * Leo Yan <leo.yan@linaro.org> 9 */ 10 11/ { 12 soc { 13 funnel@f6401000 { 14 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 15 reg = <0 0xf6401000 0 0x1000>; 16 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 17 clock-names = "apb_pclk"; 18 19 out-ports { 20 port { 21 soc_funnel_out: endpoint { 22 remote-endpoint = 23 <&etf_in>; 24 }; 25 }; 26 }; 27 28 in-ports { 29 port { 30 soc_funnel_in: endpoint { 31 remote-endpoint = 32 <&acpu_funnel_out>; 33 }; 34 }; 35 }; 36 }; 37 38 etf@f6402000 { 39 compatible = "arm,coresight-tmc", "arm,primecell"; 40 reg = <0 0xf6402000 0 0x1000>; 41 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 42 clock-names = "apb_pclk"; 43 44 in-ports { 45 port { 46 etf_in: endpoint { 47 remote-endpoint = 48 <&soc_funnel_out>; 49 }; 50 }; 51 }; 52 53 out-ports { 54 port { 55 etf_out: endpoint { 56 remote-endpoint = 57 <&replicator_in>; 58 }; 59 }; 60 }; 61 }; 62 63 replicator { 64 compatible = "arm,coresight-static-replicator"; 65 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 66 clock-names = "apb_pclk"; 67 68 in-ports { 69 port { 70 replicator_in: endpoint { 71 remote-endpoint = 72 <&etf_out>; 73 }; 74 }; 75 }; 76 77 out-ports { 78 #address-cells = <1>; 79 #size-cells = <0>; 80 81 port@0 { 82 reg = <0>; 83 replicator_out0: endpoint { 84 remote-endpoint = 85 <&etr_in>; 86 }; 87 }; 88 89 port@1 { 90 reg = <1>; 91 replicator_out1: endpoint { 92 remote-endpoint = 93 <&tpiu_in>; 94 }; 95 }; 96 }; 97 }; 98 99 etr@f6404000 { 100 compatible = "arm,coresight-tmc", "arm,primecell"; 101 reg = <0 0xf6404000 0 0x1000>; 102 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 103 clock-names = "apb_pclk"; 104 105 in-ports { 106 port { 107 etr_in: endpoint { 108 remote-endpoint = 109 <&replicator_out0>; 110 }; 111 }; 112 }; 113 }; 114 115 tpiu@f6405000 { 116 compatible = "arm,coresight-tpiu", "arm,primecell"; 117 reg = <0 0xf6405000 0 0x1000>; 118 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 119 clock-names = "apb_pclk"; 120 121 in-ports { 122 port { 123 tpiu_in: endpoint { 124 remote-endpoint = 125 <&replicator_out1>; 126 }; 127 }; 128 }; 129 }; 130 131 funnel@f6501000 { 132 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 133 reg = <0 0xf6501000 0 0x1000>; 134 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 135 clock-names = "apb_pclk"; 136 137 out-ports { 138 port { 139 acpu_funnel_out: endpoint { 140 remote-endpoint = 141 <&soc_funnel_in>; 142 }; 143 }; 144 }; 145 146 in-ports { 147 #address-cells = <1>; 148 #size-cells = <0>; 149 150 port@0 { 151 reg = <0>; 152 acpu_funnel_in0: endpoint { 153 remote-endpoint = 154 <&etm0_out>; 155 }; 156 }; 157 158 port@1 { 159 reg = <1>; 160 acpu_funnel_in1: endpoint { 161 remote-endpoint = 162 <&etm1_out>; 163 }; 164 }; 165 166 port@2 { 167 reg = <2>; 168 acpu_funnel_in2: endpoint { 169 remote-endpoint = 170 <&etm2_out>; 171 }; 172 }; 173 174 port@3 { 175 reg = <3>; 176 acpu_funnel_in3: endpoint { 177 remote-endpoint = 178 <&etm3_out>; 179 }; 180 }; 181 182 port@4 { 183 reg = <4>; 184 acpu_funnel_in4: endpoint { 185 remote-endpoint = 186 <&etm4_out>; 187 }; 188 }; 189 190 port@5 { 191 reg = <5>; 192 acpu_funnel_in5: endpoint { 193 remote-endpoint = 194 <&etm5_out>; 195 }; 196 }; 197 198 port@6 { 199 reg = <6>; 200 acpu_funnel_in6: endpoint { 201 remote-endpoint = 202 <&etm6_out>; 203 }; 204 }; 205 206 port@7 { 207 reg = <7>; 208 acpu_funnel_in7: endpoint { 209 remote-endpoint = 210 <&etm7_out>; 211 }; 212 }; 213 }; 214 }; 215 216 etm@f659c000 { 217 compatible = "arm,coresight-etm4x", "arm,primecell"; 218 reg = <0 0xf659c000 0 0x1000>; 219 220 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 221 clock-names = "apb_pclk"; 222 223 cpu = <&cpu0>; 224 225 out-ports { 226 port { 227 etm0_out: endpoint { 228 remote-endpoint = 229 <&acpu_funnel_in0>; 230 }; 231 }; 232 }; 233 }; 234 235 etm@f659d000 { 236 compatible = "arm,coresight-etm4x", "arm,primecell"; 237 reg = <0 0xf659d000 0 0x1000>; 238 239 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 240 clock-names = "apb_pclk"; 241 242 cpu = <&cpu1>; 243 244 out-ports { 245 port { 246 etm1_out: endpoint { 247 remote-endpoint = 248 <&acpu_funnel_in1>; 249 }; 250 }; 251 }; 252 }; 253 254 etm@f659e000 { 255 compatible = "arm,coresight-etm4x", "arm,primecell"; 256 reg = <0 0xf659e000 0 0x1000>; 257 258 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 259 clock-names = "apb_pclk"; 260 261 cpu = <&cpu2>; 262 263 out-ports { 264 port { 265 etm2_out: endpoint { 266 remote-endpoint = 267 <&acpu_funnel_in2>; 268 }; 269 }; 270 }; 271 }; 272 273 etm@f659f000 { 274 compatible = "arm,coresight-etm4x", "arm,primecell"; 275 reg = <0 0xf659f000 0 0x1000>; 276 277 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 278 clock-names = "apb_pclk"; 279 280 cpu = <&cpu3>; 281 282 out-ports { 283 port { 284 etm3_out: endpoint { 285 remote-endpoint = 286 <&acpu_funnel_in3>; 287 }; 288 }; 289 }; 290 }; 291 292 etm@f65dc000 { 293 compatible = "arm,coresight-etm4x", "arm,primecell"; 294 reg = <0 0xf65dc000 0 0x1000>; 295 296 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 297 clock-names = "apb_pclk"; 298 299 cpu = <&cpu4>; 300 301 out-ports { 302 port { 303 etm4_out: endpoint { 304 remote-endpoint = 305 <&acpu_funnel_in4>; 306 }; 307 }; 308 }; 309 }; 310 311 etm@f65dd000 { 312 compatible = "arm,coresight-etm4x", "arm,primecell"; 313 reg = <0 0xf65dd000 0 0x1000>; 314 315 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 316 clock-names = "apb_pclk"; 317 318 cpu = <&cpu5>; 319 320 out-ports { 321 port { 322 etm5_out: endpoint { 323 remote-endpoint = 324 <&acpu_funnel_in5>; 325 }; 326 }; 327 }; 328 }; 329 330 etm@f65de000 { 331 compatible = "arm,coresight-etm4x", "arm,primecell"; 332 reg = <0 0xf65de000 0 0x1000>; 333 334 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 335 clock-names = "apb_pclk"; 336 337 cpu = <&cpu6>; 338 339 out-ports { 340 port { 341 etm6_out: endpoint { 342 remote-endpoint = 343 <&acpu_funnel_in6>; 344 }; 345 }; 346 }; 347 }; 348 349 etm@f65df000 { 350 compatible = "arm,coresight-etm4x", "arm,primecell"; 351 reg = <0 0xf65df000 0 0x1000>; 352 353 clocks = <&acpu_sctrl HI6220_ACPU_SFT_AT_S>; 354 clock-names = "apb_pclk"; 355 356 cpu = <&cpu7>; 357 358 out-ports { 359 port { 360 etm7_out: endpoint { 361 remote-endpoint = 362 <&acpu_funnel_in7>; 363 }; 364 }; 365 }; 366 }; 367 }; 368}; 369