Skip to content

Commit 91ce695

Browse files
committed
FROMLIST: arm64: dts: qcom: hamoa: enable ETR and CTCU devices
Embedded Trace Router(ETR) is working as a DDR memory sink to collect tracing data from source device. The CTCU serves as the control unit for the ETR device, managing its behavior to determine how trace data is collected. Link: https://lore.kernel.org/all/20251104-enable-etr-and-ctcu-for-hamoa-v1-2-af552cfb902c@oss.qualcomm.com/ Signed-off-by: Jie Gan <[email protected]>
1 parent 5339851 commit 91ce695

File tree

1 file changed

+159
-1
lines changed

1 file changed

+159
-1
lines changed

arch/arm64/boot/dts/qcom/x1e80100.dtsi

Lines changed: 159 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6634,6 +6634,35 @@
66346634
};
66356635
};
66366636

6637+
ctcu@10001000 {
6638+
compatible = "qcom,hamoa-ctcu", "qcom,sa8775p-ctcu";
6639+
reg = <0x0 0x10001000 0x0 0x1000>;
6640+
6641+
clocks = <&aoss_qmp>;
6642+
clock-names = "apb";
6643+
6644+
in-ports {
6645+
#address-cells = <1>;
6646+
#size-cells = <0>;
6647+
6648+
port@0 {
6649+
reg = <0>;
6650+
6651+
ctcu_in0: endpoint {
6652+
remote-endpoint = <&etr0_out>;
6653+
};
6654+
};
6655+
6656+
port@1 {
6657+
reg = <1>;
6658+
6659+
ctcu_in1: endpoint {
6660+
remote-endpoint = <&etr1_out>;
6661+
};
6662+
};
6663+
};
6664+
};
6665+
66376666
stm@10002000 {
66386667
compatible = "arm,coresight-stm", "arm,primecell";
66396668
reg = <0x0 0x10002000 0x0 0x1000>,
@@ -6856,6 +6885,122 @@
68566885
};
68576886
};
68586887

6888+
replicator@10046000 {
6889+
compatible = "arm,coresight-dynamic-replicator", "arm,primecell";
6890+
reg = <0x0 0x10046000 0x0 0x1000>;
6891+
6892+
clocks = <&aoss_qmp>;
6893+
clock-names = "apb_pclk";
6894+
6895+
in-ports {
6896+
port {
6897+
qdss_rep_in: endpoint {
6898+
remote-endpoint = <&swao_rep_out0>;
6899+
};
6900+
};
6901+
};
6902+
6903+
out-ports {
6904+
port {
6905+
qdss_rep_out0: endpoint {
6906+
remote-endpoint = <&etr_rep_in>;
6907+
};
6908+
};
6909+
};
6910+
};
6911+
6912+
tmc_etr: tmc@10048000 {
6913+
compatible = "arm,coresight-tmc", "arm,primecell";
6914+
reg = <0x0 0x10048000 0x0 0x1000>;
6915+
6916+
clocks = <&aoss_qmp>;
6917+
clock-names = "apb_pclk";
6918+
iommus = <&apps_smmu 0x04e0 0x0>;
6919+
6920+
arm,scatter-gather;
6921+
6922+
in-ports {
6923+
port {
6924+
etr0_in: endpoint {
6925+
remote-endpoint = <&etr_rep_out0>;
6926+
};
6927+
};
6928+
};
6929+
6930+
out-ports {
6931+
port {
6932+
etr0_out: endpoint {
6933+
remote-endpoint = <&ctcu_in0>;
6934+
};
6935+
};
6936+
};
6937+
};
6938+
6939+
replicator@1004e000 {
6940+
compatible = "arm,coresight-dynamic-replicator", "arm,primecell";
6941+
reg = <0x0 0x1004e000 0x0 0x1000>;
6942+
6943+
clocks = <&aoss_qmp>;
6944+
clock-names = "apb_pclk";
6945+
6946+
in-ports {
6947+
port {
6948+
etr_rep_in: endpoint {
6949+
remote-endpoint = <&qdss_rep_out0>;
6950+
};
6951+
};
6952+
};
6953+
6954+
out-ports {
6955+
#address-cells = <1>;
6956+
#size-cells = <0>;
6957+
6958+
port@0 {
6959+
reg = <0>;
6960+
6961+
etr_rep_out0: endpoint {
6962+
remote-endpoint = <&etr0_in>;
6963+
};
6964+
};
6965+
6966+
port@1 {
6967+
reg = <1>;
6968+
6969+
etr_rep_out1: endpoint {
6970+
remote-endpoint = <&etr1_in>;
6971+
};
6972+
};
6973+
};
6974+
};
6975+
6976+
tmc_etr1: tmc@1004f000 {
6977+
compatible = "arm,coresight-tmc", "arm,primecell";
6978+
reg = <0x0 0x1004f000 0x0 0x1000>;
6979+
6980+
clocks = <&aoss_qmp>;
6981+
clock-names = "apb_pclk";
6982+
iommus = <&apps_smmu 0x0500 0x0>;
6983+
6984+
arm,scatter-gather;
6985+
arm,buffer-size = <0x400000>;
6986+
6987+
in-ports {
6988+
port {
6989+
etr1_in: endpoint {
6990+
remote-endpoint = <&etr_rep_out1>;
6991+
};
6992+
};
6993+
};
6994+
6995+
out-ports {
6996+
port {
6997+
etr1_out: endpoint {
6998+
remote-endpoint = <&ctcu_in1>;
6999+
};
7000+
};
7001+
};
7002+
};
7003+
68597004
tpdm@10800000 {
68607005
compatible = "qcom,coresight-tpdm", "arm,primecell";
68617006
reg = <0x0 0x10800000 0x0 0x1000>;
@@ -7169,7 +7314,20 @@
71697314
};
71707315

71717316
out-ports {
7172-
port {
7317+
#address-cells = <1>;
7318+
#size-cells = <0>;
7319+
7320+
port@0 {
7321+
reg = <0>;
7322+
7323+
swao_rep_out0: endpoint {
7324+
remote-endpoint = <&qdss_rep_in>;
7325+
};
7326+
};
7327+
7328+
port@1 {
7329+
reg = <1>;
7330+
71737331
swao_rep_out1: endpoint {
71747332
remote-endpoint = <&eud_in>;
71757333
};

0 commit comments

Comments
 (0)