ARM: dts: vexpress/TC2: Update entries to match latest coresight bindings
[platform/kernel/linux-starfive.git] / arch / arm / boot / dts / vexpress-v2p-ca15_a7.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * ARM Ltd. Versatile Express
4  *
5  * CoreTile Express A15x2 A7x3
6  * Cortex-A15_A7 MPCore (V2P-CA15_A7)
7  *
8  * HBI-0249A
9  */
10
11 /dts-v1/;
12 #include "vexpress-v2m-rs1.dtsi"
13
14 / {
15         model = "V2P-CA15_CA7";
16         arm,hbi = <0x249>;
17         arm,vexpress,site = <0xf>;
18         compatible = "arm,vexpress,v2p-ca15_a7", "arm,vexpress";
19         interrupt-parent = <&gic>;
20         #address-cells = <2>;
21         #size-cells = <2>;
22
23         chosen { };
24
25         aliases {
26                 serial0 = &v2m_serial0;
27                 serial1 = &v2m_serial1;
28                 serial2 = &v2m_serial2;
29                 serial3 = &v2m_serial3;
30                 i2c0 = &v2m_i2c_dvi;
31                 i2c1 = &v2m_i2c_pcie;
32         };
33
34         cpus {
35                 #address-cells = <1>;
36                 #size-cells = <0>;
37
38                 cpu0: cpu@0 {
39                         device_type = "cpu";
40                         compatible = "arm,cortex-a15";
41                         reg = <0>;
42                         cci-control-port = <&cci_control1>;
43                         cpu-idle-states = <&CLUSTER_SLEEP_BIG>;
44                         capacity-dmips-mhz = <1024>;
45                 };
46
47                 cpu1: cpu@1 {
48                         device_type = "cpu";
49                         compatible = "arm,cortex-a15";
50                         reg = <1>;
51                         cci-control-port = <&cci_control1>;
52                         cpu-idle-states = <&CLUSTER_SLEEP_BIG>;
53                         capacity-dmips-mhz = <1024>;
54                 };
55
56                 cpu2: cpu@2 {
57                         device_type = "cpu";
58                         compatible = "arm,cortex-a7";
59                         reg = <0x100>;
60                         cci-control-port = <&cci_control2>;
61                         cpu-idle-states = <&CLUSTER_SLEEP_LITTLE>;
62                         capacity-dmips-mhz = <516>;
63                 };
64
65                 cpu3: cpu@3 {
66                         device_type = "cpu";
67                         compatible = "arm,cortex-a7";
68                         reg = <0x101>;
69                         cci-control-port = <&cci_control2>;
70                         cpu-idle-states = <&CLUSTER_SLEEP_LITTLE>;
71                         capacity-dmips-mhz = <516>;
72                 };
73
74                 cpu4: cpu@4 {
75                         device_type = "cpu";
76                         compatible = "arm,cortex-a7";
77                         reg = <0x102>;
78                         cci-control-port = <&cci_control2>;
79                         cpu-idle-states = <&CLUSTER_SLEEP_LITTLE>;
80                         capacity-dmips-mhz = <516>;
81                 };
82
83                 idle-states {
84                         CLUSTER_SLEEP_BIG: cluster-sleep-big {
85                                 compatible = "arm,idle-state";
86                                 local-timer-stop;
87                                 entry-latency-us = <1000>;
88                                 exit-latency-us = <700>;
89                                 min-residency-us = <2000>;
90                         };
91
92                         CLUSTER_SLEEP_LITTLE: cluster-sleep-little {
93                                 compatible = "arm,idle-state";
94                                 local-timer-stop;
95                                 entry-latency-us = <1000>;
96                                 exit-latency-us = <500>;
97                                 min-residency-us = <2500>;
98                         };
99                 };
100         };
101
102         memory@80000000 {
103                 device_type = "memory";
104                 reg = <0 0x80000000 0 0x40000000>;
105         };
106
107         wdt@2a490000 {
108                 compatible = "arm,sp805", "arm,primecell";
109                 reg = <0 0x2a490000 0 0x1000>;
110                 interrupts = <0 98 4>;
111                 clocks = <&oscclk6a>, <&oscclk6a>;
112                 clock-names = "wdogclk", "apb_pclk";
113         };
114
115         hdlcd@2b000000 {
116                 compatible = "arm,hdlcd";
117                 reg = <0 0x2b000000 0 0x1000>;
118                 interrupts = <0 85 4>;
119                 clocks = <&hdlcd_clk>;
120                 clock-names = "pxlclk";
121         };
122
123         memory-controller@2b0a0000 {
124                 compatible = "arm,pl341", "arm,primecell";
125                 reg = <0 0x2b0a0000 0 0x1000>;
126                 clocks = <&oscclk6a>;
127                 clock-names = "apb_pclk";
128         };
129
130         gic: interrupt-controller@2c001000 {
131                 compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
132                 #interrupt-cells = <3>;
133                 #address-cells = <0>;
134                 interrupt-controller;
135                 reg = <0 0x2c001000 0 0x1000>,
136                       <0 0x2c002000 0 0x2000>,
137                       <0 0x2c004000 0 0x2000>,
138                       <0 0x2c006000 0 0x2000>;
139                 interrupts = <1 9 0xf04>;
140         };
141
142         cci@2c090000 {
143                 compatible = "arm,cci-400";
144                 #address-cells = <1>;
145                 #size-cells = <1>;
146                 reg = <0 0x2c090000 0 0x1000>;
147                 ranges = <0x0 0x0 0x2c090000 0x10000>;
148
149                 cci_control1: slave-if@4000 {
150                         compatible = "arm,cci-400-ctrl-if";
151                         interface-type = "ace";
152                         reg = <0x4000 0x1000>;
153                 };
154
155                 cci_control2: slave-if@5000 {
156                         compatible = "arm,cci-400-ctrl-if";
157                         interface-type = "ace";
158                         reg = <0x5000 0x1000>;
159                 };
160
161                 pmu@9000 {
162                          compatible = "arm,cci-400-pmu,r0";
163                          reg = <0x9000 0x5000>;
164                          interrupts = <0 105 4>,
165                                       <0 101 4>,
166                                       <0 102 4>,
167                                       <0 103 4>,
168                                       <0 104 4>;
169                 };
170         };
171
172         memory-controller@7ffd0000 {
173                 compatible = "arm,pl354", "arm,primecell";
174                 reg = <0 0x7ffd0000 0 0x1000>;
175                 interrupts = <0 86 4>,
176                              <0 87 4>;
177                 clocks = <&oscclk6a>;
178                 clock-names = "apb_pclk";
179         };
180
181         dma@7ff00000 {
182                 compatible = "arm,pl330", "arm,primecell";
183                 reg = <0 0x7ff00000 0 0x1000>;
184                 interrupts = <0 92 4>,
185                              <0 88 4>,
186                              <0 89 4>,
187                              <0 90 4>,
188                              <0 91 4>;
189                 clocks = <&oscclk6a>;
190                 clock-names = "apb_pclk";
191         };
192
193         scc@7fff0000 {
194                 compatible = "arm,vexpress-scc,v2p-ca15_a7", "arm,vexpress-scc";
195                 reg = <0 0x7fff0000 0 0x1000>;
196                 interrupts = <0 95 4>;
197         };
198
199         timer {
200                 compatible = "arm,armv7-timer";
201                 interrupts = <1 13 0xf08>,
202                              <1 14 0xf08>,
203                              <1 11 0xf08>,
204                              <1 10 0xf08>;
205         };
206
207         pmu-a15 {
208                 compatible = "arm,cortex-a15-pmu";
209                 interrupts = <0 68 4>,
210                              <0 69 4>;
211                 interrupt-affinity = <&cpu0>,
212                                      <&cpu1>;
213         };
214
215         pmu-a7 {
216                 compatible = "arm,cortex-a7-pmu";
217                 interrupts = <0 128 4>,
218                              <0 129 4>,
219                              <0 130 4>;
220                 interrupt-affinity = <&cpu2>,
221                                      <&cpu3>,
222                                      <&cpu4>;
223         };
224
225         oscclk6a: oscclk6a {
226                 /* Reference 24MHz clock */
227                 compatible = "fixed-clock";
228                 #clock-cells = <0>;
229                 clock-frequency = <24000000>;
230                 clock-output-names = "oscclk6a";
231         };
232
233         dcc {
234                 compatible = "arm,vexpress,config-bus";
235                 arm,vexpress,config-bridge = <&v2m_sysreg>;
236
237                 oscclk0 {
238                         /* A15 PLL 0 reference clock */
239                         compatible = "arm,vexpress-osc";
240                         arm,vexpress-sysreg,func = <1 0>;
241                         freq-range = <17000000 50000000>;
242                         #clock-cells = <0>;
243                         clock-output-names = "oscclk0";
244                 };
245
246                 oscclk1 {
247                         /* A15 PLL 1 reference clock */
248                         compatible = "arm,vexpress-osc";
249                         arm,vexpress-sysreg,func = <1 1>;
250                         freq-range = <17000000 50000000>;
251                         #clock-cells = <0>;
252                         clock-output-names = "oscclk1";
253                 };
254
255                 oscclk2 {
256                         /* A7 PLL 0 reference clock */
257                         compatible = "arm,vexpress-osc";
258                         arm,vexpress-sysreg,func = <1 2>;
259                         freq-range = <17000000 50000000>;
260                         #clock-cells = <0>;
261                         clock-output-names = "oscclk2";
262                 };
263
264                 oscclk3 {
265                         /* A7 PLL 1 reference clock */
266                         compatible = "arm,vexpress-osc";
267                         arm,vexpress-sysreg,func = <1 3>;
268                         freq-range = <17000000 50000000>;
269                         #clock-cells = <0>;
270                         clock-output-names = "oscclk3";
271                 };
272
273                 oscclk4 {
274                         /* External AXI master clock */
275                         compatible = "arm,vexpress-osc";
276                         arm,vexpress-sysreg,func = <1 4>;
277                         freq-range = <20000000 40000000>;
278                         #clock-cells = <0>;
279                         clock-output-names = "oscclk4";
280                 };
281
282                 hdlcd_clk: oscclk5 {
283                         /* HDLCD PLL reference clock */
284                         compatible = "arm,vexpress-osc";
285                         arm,vexpress-sysreg,func = <1 5>;
286                         freq-range = <23750000 165000000>;
287                         #clock-cells = <0>;
288                         clock-output-names = "oscclk5";
289                 };
290
291                 smbclk: oscclk6 {
292                         /* Static memory controller clock */
293                         compatible = "arm,vexpress-osc";
294                         arm,vexpress-sysreg,func = <1 6>;
295                         freq-range = <20000000 40000000>;
296                         #clock-cells = <0>;
297                         clock-output-names = "oscclk6";
298                 };
299
300                 oscclk7 {
301                         /* SYS PLL reference clock */
302                         compatible = "arm,vexpress-osc";
303                         arm,vexpress-sysreg,func = <1 7>;
304                         freq-range = <17000000 50000000>;
305                         #clock-cells = <0>;
306                         clock-output-names = "oscclk7";
307                 };
308
309                 oscclk8 {
310                         /* DDR2 PLL reference clock */
311                         compatible = "arm,vexpress-osc";
312                         arm,vexpress-sysreg,func = <1 8>;
313                         freq-range = <20000000 50000000>;
314                         #clock-cells = <0>;
315                         clock-output-names = "oscclk8";
316                 };
317
318                 volt-a15 {
319                         /* A15 CPU core voltage */
320                         compatible = "arm,vexpress-volt";
321                         arm,vexpress-sysreg,func = <2 0>;
322                         regulator-name = "A15 Vcore";
323                         regulator-min-microvolt = <800000>;
324                         regulator-max-microvolt = <1050000>;
325                         regulator-always-on;
326                         label = "A15 Vcore";
327                 };
328
329                 volt-a7 {
330                         /* A7 CPU core voltage */
331                         compatible = "arm,vexpress-volt";
332                         arm,vexpress-sysreg,func = <2 1>;
333                         regulator-name = "A7 Vcore";
334                         regulator-min-microvolt = <800000>;
335                         regulator-max-microvolt = <1050000>;
336                         regulator-always-on;
337                         label = "A7 Vcore";
338                 };
339
340                 amp-a15 {
341                         /* Total current for the two A15 cores */
342                         compatible = "arm,vexpress-amp";
343                         arm,vexpress-sysreg,func = <3 0>;
344                         label = "A15 Icore";
345                 };
346
347                 amp-a7 {
348                         /* Total current for the three A7 cores */
349                         compatible = "arm,vexpress-amp";
350                         arm,vexpress-sysreg,func = <3 1>;
351                         label = "A7 Icore";
352                 };
353
354                 temp-dcc {
355                         /* DCC internal temperature */
356                         compatible = "arm,vexpress-temp";
357                         arm,vexpress-sysreg,func = <4 0>;
358                         label = "DCC";
359                 };
360
361                 power-a15 {
362                         /* Total power for the two A15 cores */
363                         compatible = "arm,vexpress-power";
364                         arm,vexpress-sysreg,func = <12 0>;
365                         label = "A15 Pcore";
366                 };
367
368                 power-a7 {
369                         /* Total power for the three A7 cores */
370                         compatible = "arm,vexpress-power";
371                         arm,vexpress-sysreg,func = <12 1>;
372                         label = "A7 Pcore";
373                 };
374
375                 energy-a15 {
376                         /* Total energy for the two A15 cores */
377                         compatible = "arm,vexpress-energy";
378                         arm,vexpress-sysreg,func = <13 0>, <13 1>;
379                         label = "A15 Jcore";
380                 };
381
382                 energy-a7 {
383                         /* Total energy for the three A7 cores */
384                         compatible = "arm,vexpress-energy";
385                         arm,vexpress-sysreg,func = <13 2>, <13 3>;
386                         label = "A7 Jcore";
387                 };
388         };
389
390         etb@20010000 {
391                 compatible = "arm,coresight-etb10", "arm,primecell";
392                 reg = <0 0x20010000 0 0x1000>;
393
394                 clocks = <&oscclk6a>;
395                 clock-names = "apb_pclk";
396                 in-ports {
397                         port {
398                                 etb_in_port: endpoint {
399                                         remote-endpoint = <&replicator_out_port0>;
400                                 };
401                         };
402                 };
403         };
404
405         tpiu@20030000 {
406                 compatible = "arm,coresight-tpiu", "arm,primecell";
407                 reg = <0 0x20030000 0 0x1000>;
408
409                 clocks = <&oscclk6a>;
410                 clock-names = "apb_pclk";
411                 in-ports {
412                         port {
413                                 tpiu_in_port: endpoint {
414                                         remote-endpoint = <&replicator_out_port1>;
415                                 };
416                         };
417                 };
418         };
419
420         replicator {
421                 /* non-configurable replicators don't show up on the
422                  * AMBA bus.  As such no need to add "arm,primecell".
423                  */
424                 compatible = "arm,coresight-replicator";
425
426                 out-ports {
427                         #address-cells = <1>;
428                         #size-cells = <0>;
429
430                         port@0 {
431                                 reg = <0>;
432                                 replicator_out_port0: endpoint {
433                                         remote-endpoint = <&etb_in_port>;
434                                 };
435                         };
436
437                         port@1 {
438                                 reg = <1>;
439                                 replicator_out_port1: endpoint {
440                                         remote-endpoint = <&tpiu_in_port>;
441                                 };
442                         };
443                 };
444
445                 in-ports {
446                         port {
447                                 replicator_in_port0: endpoint {
448                                         remote-endpoint = <&funnel_out_port0>;
449                                 };
450                         };
451                 };
452         };
453
454         funnel@20040000 {
455                 compatible = "arm,coresight-funnel", "arm,primecell";
456                 reg = <0 0x20040000 0 0x1000>;
457
458                 clocks = <&oscclk6a>;
459                 clock-names = "apb_pclk";
460                 out-ports {
461                         port {
462                                 funnel_out_port0: endpoint {
463                                         remote-endpoint =
464                                                 <&replicator_in_port0>;
465                                 };
466                         };
467                 };
468
469                 in-ports {
470                         #address-cells = <1>;
471                         #size-cells = <0>;
472
473                         port@0 {
474                                 reg = <0>;
475                                 funnel_in_port0: endpoint {
476                                         remote-endpoint = <&ptm0_out_port>;
477                                 };
478                         };
479
480                         port@1 {
481                                 reg = <1>;
482                                 funnel_in_port1: endpoint {
483                                         remote-endpoint = <&ptm1_out_port>;
484                                 };
485                         };
486
487                         port@2 {
488                                 reg = <2>;
489                                 funnel_in_port2: endpoint {
490                                         remote-endpoint = <&etm0_out_port>;
491                                 };
492                         };
493
494                         /* Input port #3 is for ITM, not supported here */
495
496                         port@4 {
497                                 reg = <4>;
498                                 funnel_in_port4: endpoint {
499                                         remote-endpoint = <&etm1_out_port>;
500                                 };
501                         };
502
503                         port@5 {
504                                 reg = <5>;
505                                 funnel_in_port5: endpoint {
506                                         remote-endpoint = <&etm2_out_port>;
507                                 };
508                         };
509                 };
510         };
511
512         ptm@2201c000 {
513                 compatible = "arm,coresight-etm3x", "arm,primecell";
514                 reg = <0 0x2201c000 0 0x1000>;
515
516                 cpu = <&cpu0>;
517                 clocks = <&oscclk6a>;
518                 clock-names = "apb_pclk";
519                 out-ports {
520                         port {
521                                 ptm0_out_port: endpoint {
522                                         remote-endpoint = <&funnel_in_port0>;
523                                 };
524                         };
525                 };
526         };
527
528         ptm@2201d000 {
529                 compatible = "arm,coresight-etm3x", "arm,primecell";
530                 reg = <0 0x2201d000 0 0x1000>;
531
532                 cpu = <&cpu1>;
533                 clocks = <&oscclk6a>;
534                 clock-names = "apb_pclk";
535                 out-ports {
536                         port {
537                                 ptm1_out_port: endpoint {
538                                         remote-endpoint = <&funnel_in_port1>;
539                                 };
540                         };
541                 };
542         };
543
544         etm@2203c000 {
545                 compatible = "arm,coresight-etm3x", "arm,primecell";
546                 reg = <0 0x2203c000 0 0x1000>;
547
548                 cpu = <&cpu2>;
549                 clocks = <&oscclk6a>;
550                 clock-names = "apb_pclk";
551                 out-ports {
552                         port {
553                                 etm0_out_port: endpoint {
554                                         remote-endpoint = <&funnel_in_port2>;
555                                 };
556                         };
557                 };
558         };
559
560         etm@2203d000 {
561                 compatible = "arm,coresight-etm3x", "arm,primecell";
562                 reg = <0 0x2203d000 0 0x1000>;
563
564                 cpu = <&cpu3>;
565                 clocks = <&oscclk6a>;
566                 clock-names = "apb_pclk";
567                 out-ports {
568                         port {
569                                 etm1_out_port: endpoint {
570                                         remote-endpoint = <&funnel_in_port4>;
571                                 };
572                         };
573                 };
574         };
575
576         etm@2203e000 {
577                 compatible = "arm,coresight-etm3x", "arm,primecell";
578                 reg = <0 0x2203e000 0 0x1000>;
579
580                 cpu = <&cpu4>;
581                 clocks = <&oscclk6a>;
582                 clock-names = "apb_pclk";
583                 out-ports {
584                         port {
585                                 etm2_out_port: endpoint {
586                                         remote-endpoint = <&funnel_in_port5>;
587                                 };
588                         };
589                 };
590         };
591
592         smb: smb@8000000 {
593                 compatible = "simple-bus";
594
595                 #address-cells = <2>;
596                 #size-cells = <1>;
597                 ranges = <0 0 0 0x08000000 0x04000000>,
598                          <1 0 0 0x14000000 0x04000000>,
599                          <2 0 0 0x18000000 0x04000000>,
600                          <3 0 0 0x1c000000 0x04000000>,
601                          <4 0 0 0x0c000000 0x04000000>,
602                          <5 0 0 0x10000000 0x04000000>;
603
604                 #interrupt-cells = <1>;
605                 interrupt-map-mask = <0 0 63>;
606                 interrupt-map = <0 0  0 &gic 0  0 4>,
607                                 <0 0  1 &gic 0  1 4>,
608                                 <0 0  2 &gic 0  2 4>,
609                                 <0 0  3 &gic 0  3 4>,
610                                 <0 0  4 &gic 0  4 4>,
611                                 <0 0  5 &gic 0  5 4>,
612                                 <0 0  6 &gic 0  6 4>,
613                                 <0 0  7 &gic 0  7 4>,
614                                 <0 0  8 &gic 0  8 4>,
615                                 <0 0  9 &gic 0  9 4>,
616                                 <0 0 10 &gic 0 10 4>,
617                                 <0 0 11 &gic 0 11 4>,
618                                 <0 0 12 &gic 0 12 4>,
619                                 <0 0 13 &gic 0 13 4>,
620                                 <0 0 14 &gic 0 14 4>,
621                                 <0 0 15 &gic 0 15 4>,
622                                 <0 0 16 &gic 0 16 4>,
623                                 <0 0 17 &gic 0 17 4>,
624                                 <0 0 18 &gic 0 18 4>,
625                                 <0 0 19 &gic 0 19 4>,
626                                 <0 0 20 &gic 0 20 4>,
627                                 <0 0 21 &gic 0 21 4>,
628                                 <0 0 22 &gic 0 22 4>,
629                                 <0 0 23 &gic 0 23 4>,
630                                 <0 0 24 &gic 0 24 4>,
631                                 <0 0 25 &gic 0 25 4>,
632                                 <0 0 26 &gic 0 26 4>,
633                                 <0 0 27 &gic 0 27 4>,
634                                 <0 0 28 &gic 0 28 4>,
635                                 <0 0 29 &gic 0 29 4>,
636                                 <0 0 30 &gic 0 30 4>,
637                                 <0 0 31 &gic 0 31 4>,
638                                 <0 0 32 &gic 0 32 4>,
639                                 <0 0 33 &gic 0 33 4>,
640                                 <0 0 34 &gic 0 34 4>,
641                                 <0 0 35 &gic 0 35 4>,
642                                 <0 0 36 &gic 0 36 4>,
643                                 <0 0 37 &gic 0 37 4>,
644                                 <0 0 38 &gic 0 38 4>,
645                                 <0 0 39 &gic 0 39 4>,
646                                 <0 0 40 &gic 0 40 4>,
647                                 <0 0 41 &gic 0 41 4>,
648                                 <0 0 42 &gic 0 42 4>;
649         };
650
651         site2: hsb@40000000 {
652                 compatible = "simple-bus";
653                 #address-cells = <1>;
654                 #size-cells = <1>;
655                 ranges = <0 0 0x40000000 0x3fef0000>;
656                 #interrupt-cells = <1>;
657                 interrupt-map-mask = <0 3>;
658                 interrupt-map = <0 0 &gic 0 36 4>,
659                                 <0 1 &gic 0 37 4>,
660                                 <0 2 &gic 0 38 4>,
661                                 <0 3 &gic 0 39 4>;
662         };
663 };