Skip to content

Commit 4f791e0

Browse files
jiegan0107andersson
authored andcommitted
arm64: dts: qcom: monaco: Add CTCU and ETR nodes
Add CTCU and ETR nodes in DT to enable expected functionalities. Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com> Link: https://lore.kernel.org/r/20251103-enable-ctcu-for-monaco-v4-2-92ff83201584@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent ac62730 commit 4f791e0

1 file changed

Lines changed: 153 additions & 0 deletions

File tree

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

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2873,6 +2873,35 @@
28732873
qcom,bcm-voters = <&apps_bcm_voter>;
28742874
};
28752875

2876+
ctcu@4001000 {
2877+
compatible = "qcom,qcs8300-ctcu", "qcom,sa8775p-ctcu";
2878+
reg = <0x0 0x04001000 0x0 0x1000>;
2879+
2880+
clocks = <&aoss_qmp>;
2881+
clock-names = "apb";
2882+
2883+
in-ports {
2884+
#address-cells = <1>;
2885+
#size-cells = <0>;
2886+
2887+
port@0 {
2888+
reg = <0>;
2889+
2890+
ctcu_in0: endpoint {
2891+
remote-endpoint = <&etr0_out>;
2892+
};
2893+
};
2894+
2895+
port@1 {
2896+
reg = <1>;
2897+
2898+
ctcu_in1: endpoint {
2899+
remote-endpoint = <&etr1_out>;
2900+
};
2901+
};
2902+
};
2903+
};
2904+
28762905
stm@4002000 {
28772906
compatible = "arm,coresight-stm", "arm,primecell";
28782907
reg = <0x0 0x04002000 0x0 0x1000>,
@@ -2903,6 +2932,14 @@
29032932
#address-cells = <1>;
29042933
#size-cells = <0>;
29052934

2935+
port@0 {
2936+
reg = <0>;
2937+
2938+
swao_rep_out0: endpoint {
2939+
remote-endpoint = <&qdss_rep_in>;
2940+
};
2941+
};
2942+
29062943
port@1 {
29072944
reg = <1>;
29082945

@@ -3067,6 +3104,122 @@
30673104
};
30683105
};
30693106

3107+
replicator@4046000 {
3108+
compatible = "arm,coresight-dynamic-replicator", "arm,primecell";
3109+
reg = <0x0 0x04046000 0x0 0x1000>;
3110+
3111+
clocks = <&aoss_qmp>;
3112+
clock-names = "apb_pclk";
3113+
3114+
in-ports {
3115+
port {
3116+
qdss_rep_in: endpoint {
3117+
remote-endpoint = <&swao_rep_out0>;
3118+
};
3119+
};
3120+
};
3121+
3122+
out-ports {
3123+
port {
3124+
qdss_rep_out0: endpoint {
3125+
remote-endpoint = <&etr_rep_in>;
3126+
};
3127+
};
3128+
};
3129+
};
3130+
3131+
tmc@4048000 {
3132+
compatible = "arm,coresight-tmc", "arm,primecell";
3133+
reg = <0x0 0x04048000 0x0 0x1000>;
3134+
3135+
clocks = <&aoss_qmp>;
3136+
clock-names = "apb_pclk";
3137+
iommus = <&apps_smmu 0x04c0 0x00>;
3138+
3139+
arm,scatter-gather;
3140+
3141+
in-ports {
3142+
port {
3143+
etr0_in: endpoint {
3144+
remote-endpoint = <&etr_rep_out0>;
3145+
};
3146+
};
3147+
};
3148+
3149+
out-ports {
3150+
port {
3151+
etr0_out: endpoint {
3152+
remote-endpoint = <&ctcu_in0>;
3153+
};
3154+
};
3155+
};
3156+
};
3157+
3158+
replicator@404e000 {
3159+
compatible = "arm,coresight-dynamic-replicator", "arm,primecell";
3160+
reg = <0x0 0x0404e000 0x0 0x1000>;
3161+
3162+
clocks = <&aoss_qmp>;
3163+
clock-names = "apb_pclk";
3164+
3165+
in-ports {
3166+
port {
3167+
etr_rep_in: endpoint {
3168+
remote-endpoint = <&qdss_rep_out0>;
3169+
};
3170+
};
3171+
};
3172+
3173+
out-ports {
3174+
#address-cells = <1>;
3175+
#size-cells = <0>;
3176+
3177+
port@0 {
3178+
reg = <0>;
3179+
3180+
etr_rep_out0: endpoint {
3181+
remote-endpoint = <&etr0_in>;
3182+
};
3183+
};
3184+
3185+
port@1 {
3186+
reg = <1>;
3187+
3188+
etr_rep_out1: endpoint {
3189+
remote-endpoint = <&etr1_in>;
3190+
};
3191+
};
3192+
};
3193+
};
3194+
3195+
tmc@404f000 {
3196+
compatible = "arm,coresight-tmc", "arm,primecell";
3197+
reg = <0x0 0x0404f000 0x0 0x1000>;
3198+
3199+
clocks = <&aoss_qmp>;
3200+
clock-names = "apb_pclk";
3201+
iommus = <&apps_smmu 0x04a0 0x40>;
3202+
3203+
arm,scatter-gather;
3204+
arm,buffer-size = <0x400000>;
3205+
3206+
in-ports {
3207+
port {
3208+
etr1_in: endpoint {
3209+
remote-endpoint = <&etr_rep_out1>;
3210+
};
3211+
};
3212+
};
3213+
3214+
out-ports {
3215+
port {
3216+
etr1_out: endpoint {
3217+
remote-endpoint = <&ctcu_in1>;
3218+
};
3219+
};
3220+
};
3221+
};
3222+
30703223
tpdm@4841000 {
30713224
compatible = "qcom,coresight-tpdm", "arm,primecell";
30723225
reg = <0x0 0x04841000 0x0 0x1000>;

0 commit comments

Comments
 (0)