Skip to content

Commit cdc07e9

Browse files
mikel-armbbsudeep-holla
authored andcommitted
arm64: dts: juno: add CoreSight support for Juno r1/r2 variants
The CoreSight support added for Juno is valid for only Juno r0. The Juno r1 and r2 variants have additional components and alternative connection routes between trace source and sinks. This patch builds on top of the existing r0 support and extends it to Juno r1/r2 variants. Reviewed-by: Mathieu Poirier <[email protected]> Reviewed-by: Suzuki K Poulose <[email protected]> Signed-off-by: Mike Leach <[email protected]> [[email protected]: minor changelog update and major reorganisation of the common coresight components back into juno-base.dtsi to avoid duplication, also renamed funnel node names] Signed-off-by: Sudeep Holla <[email protected]>
1 parent 19ac17c commit cdc07e9

File tree

3 files changed

+118
-0
lines changed

3 files changed

+118
-0
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
/ {
2+
funnel@20130000 { /* cssys1 */
3+
compatible = "arm,coresight-funnel", "arm,primecell";
4+
reg = <0 0x20130000 0 0x1000>;
5+
6+
clocks = <&soc_smc50mhz>;
7+
clock-names = "apb_pclk";
8+
power-domains = <&scpi_devpd 0>;
9+
ports {
10+
#address-cells = <1>;
11+
#size-cells = <0>;
12+
13+
/* output port */
14+
port@0 {
15+
reg = <0>;
16+
csys1_funnel_out_port: endpoint {
17+
remote-endpoint = <&etf1_in_port>;
18+
};
19+
};
20+
21+
/* input port */
22+
port@1 {
23+
reg = <0>;
24+
csys1_funnel_in_port0: endpoint {
25+
slave-mode;
26+
};
27+
};
28+
29+
};
30+
};
31+
32+
etf@20140000 { /* etf1 */
33+
compatible = "arm,coresight-tmc", "arm,primecell";
34+
reg = <0 0x20140000 0 0x1000>;
35+
36+
clocks = <&soc_smc50mhz>;
37+
clock-names = "apb_pclk";
38+
power-domains = <&scpi_devpd 0>;
39+
ports {
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
43+
/* input port */
44+
port@0 {
45+
reg = <0>;
46+
etf1_in_port: endpoint {
47+
slave-mode;
48+
remote-endpoint = <&csys1_funnel_out_port>;
49+
};
50+
};
51+
52+
/* output port */
53+
port@1 {
54+
reg = <0>;
55+
etf1_out_port: endpoint {
56+
remote-endpoint = <&csys2_funnel_in_port1>;
57+
};
58+
};
59+
};
60+
};
61+
62+
funnel@20150000 { /* cssys2 */
63+
compatible = "arm,coresight-funnel", "arm,primecell";
64+
reg = <0 0x20150000 0 0x1000>;
65+
66+
clocks = <&soc_smc50mhz>;
67+
clock-names = "apb_pclk";
68+
power-domains = <&scpi_devpd 0>;
69+
ports {
70+
#address-cells = <1>;
71+
#size-cells = <0>;
72+
73+
/* output port */
74+
port@0 {
75+
reg = <0>;
76+
csys2_funnel_out_port: endpoint {
77+
remote-endpoint = <&replicator_in_port0>;
78+
};
79+
};
80+
81+
/* input ports */
82+
port@1 {
83+
reg = <0>;
84+
csys2_funnel_in_port0: endpoint {
85+
slave-mode;
86+
remote-endpoint = <&etf0_out_port>;
87+
};
88+
};
89+
90+
port@2 {
91+
reg = <1>;
92+
csys2_funnel_in_port1: endpoint {
93+
slave-mode;
94+
remote-endpoint = <&etf1_out_port>;
95+
};
96+
};
97+
98+
};
99+
};
100+
};

arch/arm64/boot/dts/arm/juno-r1.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <dt-bindings/interrupt-controller/arm-gic.h>
1212
#include "juno-base.dtsi"
13+
#include "juno-cs-r1r2.dtsi"
1314

1415
/ {
1516
model = "ARM Juno development board (r1)";
@@ -226,3 +227,11 @@
226227
&gpu1_thermal_zone {
227228
status = "okay";
228229
};
230+
231+
&etf0_out_port {
232+
remote-endpoint = <&csys2_funnel_in_port0>;
233+
};
234+
235+
&replicator_in_port0 {
236+
remote-endpoint = <&csys2_funnel_out_port>;
237+
};

arch/arm64/boot/dts/arm/juno-r2.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <dt-bindings/interrupt-controller/arm-gic.h>
1212
#include "juno-base.dtsi"
13+
#include "juno-cs-r1r2.dtsi"
1314

1415
/ {
1516
model = "ARM Juno development board (r2)";
@@ -226,3 +227,11 @@
226227
&gpu1_thermal_zone {
227228
status = "okay";
228229
};
230+
231+
&etf0_out_port {
232+
remote-endpoint = <&csys2_funnel_in_port0>;
233+
};
234+
235+
&replicator_in_port0 {
236+
remote-endpoint = <&csys2_funnel_out_port>;
237+
};

0 commit comments

Comments
 (0)