arm64: dts: qcom: msm8916: Add CTI options
authorMike Leach <mike.leach@linaro.org>
Wed, 15 Apr 2020 20:12:30 +0000 (21:12 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 23 Apr 2020 05:11:21 +0000 (22:11 -0700)
Adds system and CPU bound CTI definitions for Qualcom msm8916 platform
(Dragonboard DB410C).
System CTIs 2-11 are omitted as no information available at present.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20200415201230.15766-1-mike.leach@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8916.dtsi

index 569639f..8b42995 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
  */
 
+#include <dt-bindings/arm/coresight-cti-dt.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/qcom,gcc-msm8916.h>
 #include <dt-bindings/reset/qcom,gcc-msm8916.h>
                        cpu = <&CPU3>;
                };
 
-               etm@85c000 {
+               etm0: etm@85c000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
                        reg = <0x85c000 0x1000>;
 
                        };
                };
 
-               etm@85d000 {
+               etm1: etm@85d000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
                        reg = <0x85d000 0x1000>;
 
                        };
                };
 
-               etm@85e000 {
+               etm2: etm@85e000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
                        reg = <0x85e000 0x1000>;
 
                        };
                };
 
-               etm@85f000 {
+               etm3: etm@85f000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
                        reg = <0x85f000 0x1000>;
 
                        };
                };
 
+               /* System CTIs */
+               /* CTI 0 - TMC connections */
+               cti@810000 {
+                       compatible = "arm,coresight-cti", "arm,primecell";
+                       reg = <0x810000 0x1000>;
+
+                       clocks = <&rpmcc RPM_QDSS_CLK>;
+                       clock-names = "apb_pclk";
+               };
+
+               /* CTI 1 - TPIU connections */
+               cti@811000 {
+                       compatible = "arm,coresight-cti", "arm,primecell";
+                       reg = <0x811000 0x1000>;
+
+                       clocks = <&rpmcc RPM_QDSS_CLK>;
+                       clock-names = "apb_pclk";
+               };
+
+               /* CTIs 2-11 - no information - not instantiated */
+
+               /* Core CTIs; CTIs 12-15 */
+               /* CTI - CPU-0 */
+               cti@858000 {
+                       compatible = "arm,coresight-cti-v8-arch", "arm,coresight-cti",
+                                    "arm,primecell";
+                       reg = <0x858000 0x1000>;
+
+                       clocks = <&rpmcc RPM_QDSS_CLK>;
+                       clock-names = "apb_pclk";
+
+                       cpu = <&CPU0>;
+                       arm,cs-dev-assoc = <&etm0>;
+
+               };
+
+               /* CTI - CPU-1 */
+               cti@859000 {
+                       compatible = "arm,coresight-cti-v8-arch", "arm,coresight-cti",
+                                    "arm,primecell";
+                       reg = <0x859000 0x1000>;
+
+                       clocks = <&rpmcc RPM_QDSS_CLK>;
+                       clock-names = "apb_pclk";
+
+                       cpu = <&CPU1>;
+                       arm,cs-dev-assoc = <&etm1>;
+               };
+
+               /* CTI - CPU-2 */
+               cti@85a000 {
+                       compatible = "arm,coresight-cti-v8-arch", "arm,coresight-cti",
+                                    "arm,primecell";
+                       reg = <0x85a000 0x1000>;
+
+                       clocks = <&rpmcc RPM_QDSS_CLK>;
+                       clock-names = "apb_pclk";
+
+                       cpu = <&CPU2>;
+                       arm,cs-dev-assoc = <&etm2>;
+               };
+
+               /* CTI - CPU-3 */
+               cti@85b000 {
+                       compatible = "arm,coresight-cti-v8-arch", "arm,coresight-cti",
+                                    "arm,primecell";
+                       reg = <0x85b000 0x1000>;
+
+                       clocks = <&rpmcc RPM_QDSS_CLK>;
+                       clock-names = "apb_pclk";
+
+                       cpu = <&CPU3>;
+                       arm,cs-dev-assoc = <&etm3>;
+               };
+
+
                venus: video-codec@1d00000 {
                        compatible = "qcom,msm8916-venus";
                        reg = <0x01d00000 0xff000>;