aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2017-01-12 06:53:35 -0500
committerSudeep Holla <sudeep.holla@arm.com>2017-01-18 06:14:14 -0500
commit19ac17c031ce37c697966b6513d611f9e322a290 (patch)
tree7a4bf8fb45e14021a246a05c0fe41a35ce12abba
parentd29e849cafe666195ecfa0afd61ae6ff096cc140 (diff)
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: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
-rw-r--r--arch/arm64/boot/dts/arm/juno-base.dtsi20
-rw-r--r--arch/arm64/boot/dts/arm/juno.dts8
2 files changed, 18 insertions, 10 deletions
diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
index 580afaee978f..66907430a70a 100644
--- a/arch/arm64/boot/dts/arm/juno-base.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
@@ -86,7 +86,7 @@
86 * The actual size is just 4K though 64K is reserved. Access to the 86 * The actual size is just 4K though 64K is reserved. Access to the
87 * unmapped reserved region results in a DECERR response. 87 * unmapped reserved region results in a DECERR response.
88 */ 88 */
89 etf@20010000 { 89 etf@20010000 { /* etf0 */
90 compatible = "arm,coresight-tmc", "arm,primecell"; 90 compatible = "arm,coresight-tmc", "arm,primecell";
91 reg = <0 0x20010000 0 0x1000>; 91 reg = <0 0x20010000 0 0x1000>;
92 92
@@ -100,7 +100,7 @@
100 /* input port */ 100 /* input port */
101 port@0 { 101 port@0 {
102 reg = <0>; 102 reg = <0>;
103 etf_in_port: endpoint { 103 etf0_in_port: endpoint {
104 slave-mode; 104 slave-mode;
105 remote-endpoint = <&main_funnel_out_port>; 105 remote-endpoint = <&main_funnel_out_port>;
106 }; 106 };
@@ -109,8 +109,7 @@
109 /* output port */ 109 /* output port */
110 port@1 { 110 port@1 {
111 reg = <0>; 111 reg = <0>;
112 etf_out_port: endpoint { 112 etf0_out_port: endpoint {
113 remote-endpoint = <&replicator_in_port0>;
114 }; 113 };
115 }; 114 };
116 }; 115 };
@@ -131,7 +130,8 @@
131 }; 130 };
132 }; 131 };
133 132
134 main-funnel@20040000 { 133 /* main funnel on Juno r0, cssys0 funnel on Juno r1/r2 as per TRM*/
134 main_funnel: funnel@20040000 {
135 compatible = "arm,coresight-funnel", "arm,primecell"; 135 compatible = "arm,coresight-funnel", "arm,primecell";
136 reg = <0 0x20040000 0 0x1000>; 136 reg = <0 0x20040000 0 0x1000>;
137 137
@@ -142,13 +142,15 @@
142 #address-cells = <1>; 142 #address-cells = <1>;
143 #size-cells = <0>; 143 #size-cells = <0>;
144 144
145 /* output port */
145 port@0 { 146 port@0 {
146 reg = <0>; 147 reg = <0>;
147 main_funnel_out_port: endpoint { 148 main_funnel_out_port: endpoint {
148 remote-endpoint = <&etf_in_port>; 149 remote-endpoint = <&etf0_in_port>;
149 }; 150 };
150 }; 151 };
151 152
153 /* input ports */
152 port@1 { 154 port@1 {
153 reg = <0>; 155 reg = <0>;
154 main_funnel_in_port0: endpoint { 156 main_funnel_in_port0: endpoint {
@@ -164,7 +166,6 @@
164 remote-endpoint = <&cluster1_funnel_out_port>; 166 remote-endpoint = <&cluster1_funnel_out_port>;
165 }; 167 };
166 }; 168 };
167
168 }; 169 };
169 }; 170 };
170 171
@@ -198,7 +199,7 @@
198 }; 199 };
199 }; 200 };
200 201
201 cluster0-funnel@220c0000 { 202 funnel@220c0000 { /* cluster0 funnel */
202 compatible = "arm,coresight-funnel", "arm,primecell"; 203 compatible = "arm,coresight-funnel", "arm,primecell";
203 reg = <0 0x220c0000 0 0x1000>; 204 reg = <0 0x220c0000 0 0x1000>;
204 205
@@ -262,7 +263,7 @@
262 }; 263 };
263 }; 264 };
264 265
265 cluster1-funnel@230c0000 { 266 funnel@230c0000 { /* cluster1 funnel */
266 compatible = "arm,coresight-funnel", "arm,primecell"; 267 compatible = "arm,coresight-funnel", "arm,primecell";
267 reg = <0 0x230c0000 0 0x1000>; 268 reg = <0 0x230c0000 0 0x1000>;
268 269
@@ -385,7 +386,6 @@
385 reg = <0>; 386 reg = <0>;
386 replicator_in_port0: endpoint { 387 replicator_in_port0: endpoint {
387 slave-mode; 388 slave-mode;
388 remote-endpoint = <&etf_out_port>;
389 }; 389 };
390 }; 390 };
391 }; 391 };
diff --git a/arch/arm64/boot/dts/arm/juno.dts b/arch/arm64/boot/dts/arm/juno.dts
index 9967c808a92d..66fa4388d181 100644
--- a/arch/arm64/boot/dts/arm/juno.dts
+++ b/arch/arm64/boot/dts/arm/juno.dts
@@ -202,3 +202,11 @@
202&etm5 { 202&etm5 {
203 cpu = <&A53_3>; 203 cpu = <&A53_3>;
204}; 204};
205
206&etf0_out_port {
207 remote-endpoint = <&replicator_in_port0>;
208};
209
210&replicator_in_port0 {
211 remote-endpoint = <&etf0_out_port>;
212};