arm64: dts: sdm845: add IPA information
authorAlex Elder <elder@linaro.org>
Fri, 13 Mar 2020 11:52:36 +0000 (06:52 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 17 Mar 2020 05:16:35 +0000 (22:16 -0700)
Add IPA-related nodes and definitions to "sdm845.dtsi".

Signed-off-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20200313115237.10491-2-elder@linaro.org
[bjorn: Moved modem-init to cheza.dtsi]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
arch/arm64/boot/dts/qcom/sdm845.dtsi

index 8d16d016efec157a3d9f4625dd038fe263869542..9070be43a30964342103baadbc8b919fa7a8cf08 100644 (file)
@@ -614,6 +614,11 @@ ap_ts_i2c: &i2c14 {
        };
 };
 
+&ipa {
+       status = "okay";
+       modem-init;
+};
+
 &lpasscc {
        status = "okay";
 };
index fe35d37a11cc3b0fbb04f0bca7cff000dca4fa52..8f926b5234d40c3ddfdf6abed4cce35a412b396a 100644 (file)
                        interrupt-controller;
                        #interrupt-cells = <2>;
                };
+
+               ipa_smp2p_out: ipa-ap-to-modem {
+                       qcom,entry-name = "ipa";
+                       #qcom,smem-state-cells = <1>;
+               };
+
+               ipa_smp2p_in: ipa-modem-to-ap {
+                       qcom,entry-name = "ipa";
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+               };
        };
 
        smp2p-slpi {
                        };
                };
 
+               ipa: ipa@1e40000 {
+                       compatible = "qcom,sdm845-ipa";
+                       reg = <0 0x1e40000 0 0x7000>,
+                             <0 0x1e47000 0 0x2000>,
+                             <0 0x1e04000 0 0x2c000>;
+                       reg-names = "ipa-reg",
+                                   "ipa-shared",
+                                   "gsi";
+
+                       interrupts-extended = <&intc 0 311 IRQ_TYPE_EDGE_RISING>,
+                                             <&intc 0 432 IRQ_TYPE_LEVEL_HIGH>,
+                                             <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
+                                             <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
+                       interrupt-names = "ipa",
+                                         "gsi",
+                                         "ipa-clock-query",
+                                         "ipa-setup-ready";
+
+                       clocks = <&rpmhcc RPMH_IPA_CLK>;
+                       clock-names = "core";
+
+                       interconnects = <&aggre2_noc MASTER_IPA &mem_noc SLAVE_EBI1>,
+                                       <&aggre2_noc MASTER_IPA &system_noc SLAVE_IMEM>,
+                                       <&gladiator_noc MASTER_APPSS_PROC &config_noc SLAVE_IPA_CFG>;
+                       interconnect-names = "memory",
+                                            "imem",
+                                            "config";
+
+                       qcom,smem-states = <&ipa_smp2p_out 0>,
+                                          <&ipa_smp2p_out 1>;
+                       qcom,smem-state-names = "ipa-clock-enabled-valid",
+                                               "ipa-clock-enabled";
+
+                       modem-remoteproc = <&mss_pil>;
+
+                       status = "disabled";
+               };
+
                tcsr_mutex_regs: syscon@1f40000 {
                        compatible = "syscon";
                        reg = <0 0x01f40000 0 0x40000>;