Commit 19ac17c0 authored by Sudeep Holla's avatar Sudeep Holla

arm64: dts: juno: refactor CoreSight support on Juno r0

Currently the Coresight components are supported only on Juno r0
variant. In preparation to add support to Juno r1/r2 variants, this
patch refactors the existing coresight device nodes so that r1/r2
support can be added easily.

It also cleans up some of the device node names which were previously
named so as they were confused as the labels rather than the node names.
Reviewed-and-tested-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent d29e849c
...@@ -86,7 +86,7 @@ timer { ...@@ -86,7 +86,7 @@ timer {
* The actual size is just 4K though 64K is reserved. Access to the * The actual size is just 4K though 64K is reserved. Access to the
* unmapped reserved region results in a DECERR response. * unmapped reserved region results in a DECERR response.
*/ */
etf@20010000 { etf@20010000 { /* etf0 */
compatible = "arm,coresight-tmc", "arm,primecell"; compatible = "arm,coresight-tmc", "arm,primecell";
reg = <0 0x20010000 0 0x1000>; reg = <0 0x20010000 0 0x1000>;
...@@ -100,7 +100,7 @@ ports { ...@@ -100,7 +100,7 @@ ports {
/* input port */ /* input port */
port@0 { port@0 {
reg = <0>; reg = <0>;
etf_in_port: endpoint { etf0_in_port: endpoint {
slave-mode; slave-mode;
remote-endpoint = <&main_funnel_out_port>; remote-endpoint = <&main_funnel_out_port>;
}; };
...@@ -109,8 +109,7 @@ etf_in_port: endpoint { ...@@ -109,8 +109,7 @@ etf_in_port: endpoint {
/* output port */ /* output port */
port@1 { port@1 {
reg = <0>; reg = <0>;
etf_out_port: endpoint { etf0_out_port: endpoint {
remote-endpoint = <&replicator_in_port0>;
}; };
}; };
}; };
...@@ -131,7 +130,8 @@ tpiu_in_port: endpoint { ...@@ -131,7 +130,8 @@ tpiu_in_port: endpoint {
}; };
}; };
main-funnel@20040000 { /* main funnel on Juno r0, cssys0 funnel on Juno r1/r2 as per TRM*/
main_funnel: funnel@20040000 {
compatible = "arm,coresight-funnel", "arm,primecell"; compatible = "arm,coresight-funnel", "arm,primecell";
reg = <0 0x20040000 0 0x1000>; reg = <0 0x20040000 0 0x1000>;
...@@ -142,13 +142,15 @@ ports { ...@@ -142,13 +142,15 @@ ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
/* output port */
port@0 { port@0 {
reg = <0>; reg = <0>;
main_funnel_out_port: endpoint { main_funnel_out_port: endpoint {
remote-endpoint = <&etf_in_port>; remote-endpoint = <&etf0_in_port>;
}; };
}; };
/* input ports */
port@1 { port@1 {
reg = <0>; reg = <0>;
main_funnel_in_port0: endpoint { main_funnel_in_port0: endpoint {
...@@ -164,7 +166,6 @@ main_funnel_in_port1: endpoint { ...@@ -164,7 +166,6 @@ main_funnel_in_port1: endpoint {
remote-endpoint = <&cluster1_funnel_out_port>; remote-endpoint = <&cluster1_funnel_out_port>;
}; };
}; };
}; };
}; };
...@@ -198,7 +199,7 @@ cluster0_etm0_out_port: endpoint { ...@@ -198,7 +199,7 @@ cluster0_etm0_out_port: endpoint {
}; };
}; };
cluster0-funnel@220c0000 { funnel@220c0000 { /* cluster0 funnel */
compatible = "arm,coresight-funnel", "arm,primecell"; compatible = "arm,coresight-funnel", "arm,primecell";
reg = <0 0x220c0000 0 0x1000>; reg = <0 0x220c0000 0 0x1000>;
...@@ -262,7 +263,7 @@ cluster1_etm0_out_port: endpoint { ...@@ -262,7 +263,7 @@ cluster1_etm0_out_port: endpoint {
}; };
}; };
cluster1-funnel@230c0000 { funnel@230c0000 { /* cluster1 funnel */
compatible = "arm,coresight-funnel", "arm,primecell"; compatible = "arm,coresight-funnel", "arm,primecell";
reg = <0 0x230c0000 0 0x1000>; reg = <0 0x230c0000 0 0x1000>;
...@@ -385,7 +386,6 @@ port@2 { ...@@ -385,7 +386,6 @@ port@2 {
reg = <0>; reg = <0>;
replicator_in_port0: endpoint { replicator_in_port0: endpoint {
slave-mode; slave-mode;
remote-endpoint = <&etf_out_port>;
}; };
}; };
}; };
......
...@@ -202,3 +202,11 @@ &etm4 { ...@@ -202,3 +202,11 @@ &etm4 {
&etm5 { &etm5 {
cpu = <&A53_3>; cpu = <&A53_3>;
}; };
&etf0_out_port {
remote-endpoint = <&replicator_in_port0>;
};
&replicator_in_port0 {
remote-endpoint = <&etf0_out_port>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment