Skip to content

Commit cde6f9a

Browse files
mikel-armbbsudeep-holla
authored andcommitted
arm64: dts: juno: add missing CoreSight STM component
This patch adds the missing CoreSight STM component definition to the device tree of all the juno variants(r0,r1,r2) STM component is connected to different funnels depending on Juno platform variant. Reviewed-and-tested-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 reorganising the STM node back into juno-base.dtsi to avoid duplication] Signed-off-by: Sudeep Holla <[email protected]>
1 parent cdc07e9 commit cde6f9a

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

arch/arm64/boot/dts/arm/juno-base.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,21 @@
185185
};
186186
};
187187

188+
stm@20100000 {
189+
compatible = "arm,coresight-stm", "arm,primecell";
190+
reg = <0 0x20100000 0 0x1000>,
191+
<0 0x28000000 0 0x1000000>;
192+
reg-names = "stm-base", "stm-stimulus-base";
193+
194+
clocks = <&soc_smc50mhz>;
195+
clock-names = "apb_pclk";
196+
power-domains = <&scpi_devpd 0>;
197+
port {
198+
stm_out_port: endpoint {
199+
};
200+
};
201+
};
202+
188203
etm0: etm@22040000 {
189204
compatible = "arm,coresight-etm4x", "arm,primecell";
190205
reg = <0 0x22040000 0 0x1000>;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,7 @@
235235
&replicator_in_port0 {
236236
remote-endpoint = <&csys2_funnel_out_port>;
237237
};
238+
239+
&stm_out_port {
240+
remote-endpoint = <&csys1_funnel_in_port0>;
241+
};

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,7 @@
235235
&replicator_in_port0 {
236236
remote-endpoint = <&csys2_funnel_out_port>;
237237
};
238+
239+
&stm_out_port {
240+
remote-endpoint = <&csys1_funnel_in_port0>;
241+
};

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,19 @@
210210
&replicator_in_port0 {
211211
remote-endpoint = <&etf0_out_port>;
212212
};
213+
214+
&stm_out_port {
215+
remote-endpoint = <&main_funnel_in_port2>;
216+
};
217+
218+
&main_funnel {
219+
ports {
220+
port@3 {
221+
reg = <2>;
222+
main_funnel_in_port2: endpoint {
223+
slave-mode;
224+
remote-endpoint = <&stm_out_port>;
225+
};
226+
};
227+
};
228+
};

0 commit comments

Comments
 (0)