arm64: dts: qcom: sm8250: Add tpdm mm/prng
authorMao Jinlong <quic_jinlmao@quicinc.com>
Tue, 17 Jan 2023 14:57:08 +0000 (06:57 -0800)
committerBjorn Andersson <andersson@kernel.org>
Wed, 15 Mar 2023 23:41:54 +0000 (16:41 -0700)
Add tpdm mm and tpdm prng for sm8250.

+---------------+                +-------------+
|  tpdm@6c08000 |                |tpdm@684C000 |
+-------|-------+                +------|------+
        |                               |
+-------|-------+                       |
| funnel@6c0b000|                       |
+-------|-------+                       |
        |                               |
+-------|-------+                       |
|funnel@6c2d000 |                       |
+-------|-------+                       |
        |                               |
        |    +---------------+          |
        +----- tpda@6004000  -----------+
             +-------|-------+
                     |
             +-------|-------+
             |funnel@6005000 |
             +---------------+

Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230117145708.16739-10-quic_jinlmao@quicinc.com
arch/arm64/boot/dts/qcom/sm8250.dtsi

index 9c8a48c..9916186 100644 (file)
                        };
                };
 
+               tpda@6004000 {
+                       compatible = "qcom,coresight-tpda", "arm,primecell";
+                       reg = <0 0x06004000 0 0x1000>;
+
+                       clocks = <&aoss_qmp>;
+                       clock-names = "apb_pclk";
+
+                       out-ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+                                       tpda_out_funnel_qatb: endpoint {
+                                               remote-endpoint = <&funnel_qatb_in_tpda>;
+                                       };
+                               };
+                       };
+
+                       in-ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@9 {
+                                       reg = <9>;
+                                       tpda_9_in_tpdm_mm: endpoint {
+                                               remote-endpoint = <&tpdm_mm_out_tpda9>;
+                                       };
+                               };
+
+                               port@17 {
+                                       reg = <23>;
+                                       tpda_23_in_tpdm_prng: endpoint {
+                                               remote-endpoint = <&tpdm_prng_out_tpda_23>;
+                                       };
+                               };
+                       };
+               };
+
+               funnel@6005000 {
+                       compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
+                       reg = <0 0x06005000 0 0x1000>;
+
+                       clocks = <&aoss_qmp>;
+                       clock-names = "apb_pclk";
+
+                       out-ports {
+                               port {
+                                       funnel_qatb_out_funnel_in0: endpoint {
+                                               remote-endpoint = <&funnel_in0_in_funnel_qatb>;
+                                       };
+                               };
+                       };
+
+                       in-ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+                                       funnel_qatb_in_tpda: endpoint {
+                                               remote-endpoint = <&tpda_out_funnel_qatb>;
+                                       };
+                               };
+                       };
+               };
+
                funnel@6041000 {
                        compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
                        reg = <0 0x06041000 0 0x1000>;
                                #address-cells = <1>;
                                #size-cells = <0>;
 
+                               port@6 {
+                                       reg = <6>;
+                                       funnel_in0_in_funnel_qatb: endpoint {
+                                               remote-endpoint = <&funnel_qatb_out_funnel_in0>;
+                                       };
+                               };
+
                                port@7 {
                                        reg = <7>;
                                        funnel0_in7: endpoint {
                        };
                };
 
+               tpdm@684c000 {
+                       compatible = "qcom,coresight-tpdm", "arm,primecell";
+                       reg = <0 0x0684c000 0 0x1000>;
+
+                       clocks = <&aoss_qmp>;
+                       clock-names = "apb_pclk";
+
+                       out-ports {
+                               port {
+                                       tpdm_prng_out_tpda_23: endpoint {
+                                               remote-endpoint = <&tpda_23_in_tpdm_prng>;
+                                       };
+                               };
+                       };
+               };
+
                funnel@6b04000 {
                        compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
                        arm,primecell-periphid = <0x000bb908>;
                        };
                };
 
+               tpdm@6c08000 {
+                       compatible = "qcom,coresight-tpdm", "arm,primecell";
+                       reg = <0 0x06c08000 0 0x1000>;
+
+                       clocks = <&aoss_qmp>;
+                       clock-names = "apb_pclk";
+
+                       out-ports {
+                               port {
+                                       tpdm_mm_out_funnel_dl_mm: endpoint {
+                                               remote-endpoint = <&funnel_dl_mm_in_tpdm_mm>;
+                                       };
+                               };
+                       };
+               };
+
+               funnel@6c0b000 {
+                       compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
+                       reg = <0 0x06c0b000 0 0x1000>;
+
+                       clocks = <&aoss_qmp>;
+                       clock-names = "apb_pclk";
+
+                       out-ports {
+                               port {
+                                       funnel_dl_mm_out_funnel_dl_center: endpoint {
+                                       remote-endpoint = <&funnel_dl_center_in_funnel_dl_mm>;
+                                       };
+                               };
+                       };
+
+                       in-ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@3 {
+                                       reg = <3>;
+                                       funnel_dl_mm_in_tpdm_mm: endpoint {
+                                               remote-endpoint = <&tpdm_mm_out_funnel_dl_mm>;
+                                       };
+                               };
+                       };
+               };
+
+               funnel@6c2d000 {
+                       compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
+                       reg = <0 0x06c2d000 0 0x1000>;
+
+                       clocks = <&aoss_qmp>;
+                       clock-names = "apb_pclk";
+
+                       out-ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               port {
+                                       tpdm_mm_out_tpda9: endpoint {
+                                               remote-endpoint = <&tpda_9_in_tpdm_mm>;
+                                       };
+                               };
+                       };
+
+                       in-ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@2 {
+                                       reg = <2>;
+                                       funnel_dl_center_in_funnel_dl_mm: endpoint {
+                                       remote-endpoint = <&funnel_dl_mm_out_funnel_dl_center>;
+                                       };
+                               };
+                       };
+               };
+
                etm@7040000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
                        reg = <0 0x07040000 0 0x1000>;