Skip to content

Commit 9b0b308

Browse files
committed
Merge tag 'zynq-dt-for-v5.6-v2' of https://github.com/Xilinx/linux-xlnx into arm/dt
ARM: dts: zynq: DT changes for v5.6 v2 - Enable coresight topology for Zynq * tag 'zynq-dt-for-v5.6-v2' of https://github.com/Xilinx/linux-xlnx: ARM: dts: zynq: enablement of coresight topology Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Olof Johansson <[email protected]>
2 parents 498f2a4 + 02a9392 commit 9b0b308

File tree

1 file changed

+135
-0
lines changed

1 file changed

+135
-0
lines changed

arch/arm/boot/dts/zynq-7000.dtsi

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,39 @@
5959
regulator-always-on;
6060
};
6161

62+
replicator {
63+
compatible = "arm,coresight-static-replicator";
64+
clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>;
65+
clock-names = "apb_pclk", "dbg_trc", "dbg_apb";
66+
67+
out-ports {
68+
#address-cells = <1>;
69+
#size-cells = <0>;
70+
71+
/* replicator output ports */
72+
port@0 {
73+
reg = <0>;
74+
replicator_out_port0: endpoint {
75+
remote-endpoint = <&tpiu_in_port>;
76+
};
77+
};
78+
port@1 {
79+
reg = <1>;
80+
replicator_out_port1: endpoint {
81+
remote-endpoint = <&etb_in_port>;
82+
};
83+
};
84+
};
85+
in-ports {
86+
/* replicator input port */
87+
port {
88+
replicator_in_port0: endpoint {
89+
remote-endpoint = <&funnel_out_port>;
90+
};
91+
};
92+
};
93+
};
94+
6295
amba: amba {
6396
compatible = "simple-bus";
6497
#address-cells = <1>;
@@ -365,5 +398,107 @@
365398
reg = <0xf8005000 0x1000>;
366399
timeout-sec = <10>;
367400
};
401+
402+
etb@f8801000 {
403+
compatible = "arm,coresight-etb10", "arm,primecell";
404+
reg = <0xf8801000 0x1000>;
405+
clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>;
406+
clock-names = "apb_pclk", "dbg_trc", "dbg_apb";
407+
in-ports {
408+
port {
409+
etb_in_port: endpoint {
410+
remote-endpoint = <&replicator_out_port1>;
411+
};
412+
};
413+
};
414+
};
415+
416+
tpiu@f8803000 {
417+
compatible = "arm,coresight-tpiu", "arm,primecell";
418+
reg = <0xf8803000 0x1000>;
419+
clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>;
420+
clock-names = "apb_pclk", "dbg_trc", "dbg_apb";
421+
in-ports {
422+
port {
423+
tpiu_in_port: endpoint {
424+
remote-endpoint = <&replicator_out_port0>;
425+
};
426+
};
427+
};
428+
};
429+
430+
funnel@f8804000 {
431+
compatible = "arm,coresight-static-funnel", "arm,primecell";
432+
reg = <0xf8804000 0x1000>;
433+
clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>;
434+
clock-names = "apb_pclk", "dbg_trc", "dbg_apb";
435+
436+
/* funnel output ports */
437+
out-ports {
438+
port {
439+
funnel_out_port: endpoint {
440+
remote-endpoint =
441+
<&replicator_in_port0>;
442+
};
443+
};
444+
};
445+
446+
in-ports {
447+
#address-cells = <1>;
448+
#size-cells = <0>;
449+
450+
/* funnel input ports */
451+
port@0 {
452+
reg = <0>;
453+
funnel0_in_port0: endpoint {
454+
remote-endpoint = <&ptm0_out_port>;
455+
};
456+
};
457+
458+
port@1 {
459+
reg = <1>;
460+
funnel0_in_port1: endpoint {
461+
remote-endpoint = <&ptm1_out_port>;
462+
};
463+
};
464+
465+
port@2 {
466+
reg = <2>;
467+
funnel0_in_port2: endpoint {
468+
};
469+
};
470+
/* The other input ports are not connect to anything */
471+
};
472+
};
473+
474+
ptm@f889c000 {
475+
compatible = "arm,coresight-etm3x", "arm,primecell";
476+
reg = <0xf889c000 0x1000>;
477+
clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>;
478+
clock-names = "apb_pclk", "dbg_trc", "dbg_apb";
479+
cpu = <&cpu0>;
480+
out-ports {
481+
port {
482+
ptm0_out_port: endpoint {
483+
remote-endpoint = <&funnel0_in_port0>;
484+
};
485+
};
486+
};
487+
};
488+
489+
ptm@f889d000 {
490+
compatible = "arm,coresight-etm3x", "arm,primecell";
491+
reg = <0xf889d000 0x1000>;
492+
clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>;
493+
clock-names = "apb_pclk", "dbg_trc", "dbg_apb";
494+
cpu = <&cpu1>;
495+
out-ports {
496+
port {
497+
ptm1_out_port: endpoint {
498+
remote-endpoint = <&funnel0_in_port1>;
499+
};
500+
};
501+
};
502+
};
368503
};
369504
};

0 commit comments

Comments
 (0)