All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: sdm845: add/update IPA information
@ 2020-03-13 11:52 Alex Elder
  2020-03-13 11:52 ` [PATCH 1/2] arm64: dts: sdm845: add " Alex Elder
  2020-03-13 11:52 ` [PATCH 2/2] arm64: dts: sdm845: update IPA interconnect providers Alex Elder
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Elder @ 2020-03-13 11:52 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Rob Herring, Mark Rutland, David Miller, David Dai,
	Georgi Djakov, Evan Green, Odelu Kukatla, Sibi Sankar,
	linux-arm-msm, devicetree, linux-kernel

Bjorn, these patches implement the DTS changes required for the
Qualcomm IPA driver to support the SDM845 SoC.  The first adds the
basic IPA information, which would be needed for kernel versions
prior to v5.7.  The second updates the interconnect providers as
required because of this commit:
  b303f9f0050b arm64: dts: sdm845: Redefine interconnect provider DT nodes

David Miller has reverted the first of these from net-next.
  https://lore.kernel.org/netdev/20200312.154852.115271760293062652.davem@davemloft.net/

As agreed, please apply these to the Qualcomm tree if you find them
acceptable after review.  They are based on the qcom/arm64-for-5.7
branch.

Thanks.

					-Alex

Alex Elder (2):
  arm64: dts: sdm845: add IPA information
  arm64: dts: sdm845: update IPA interconnect providers

 arch/arm64/boot/dts/qcom/sdm845.dtsi | 52 ++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] arm64: dts: sdm845: add IPA information
  2020-03-13 11:52 [PATCH 0/2] arm64: dts: sdm845: add/update IPA information Alex Elder
@ 2020-03-13 11:52 ` Alex Elder
  2020-03-13 11:52 ` [PATCH 2/2] arm64: dts: sdm845: update IPA interconnect providers Alex Elder
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Elder @ 2020-03-13 11:52 UTC (permalink / raw)
  To: Georgi Djakov, David Dai, Bjorn Andersson
  Cc: Andy Gross, Rob Herring, Mark Rutland, David Miller, Evan Green,
	Odelu Kukatla, linux-arm-msm, devicetree, linux-kernel

Add IPA-related nodes and definitions to "sdm845.dtsi".

Signed-off-by: Alex Elder <elder@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 51 ++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index c7ddf215c57e..0ebe12e4c07f 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -675,6 +675,17 @@
 			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 {
@@ -1696,6 +1707,46 @@
 			};
 		};
 
+		ipa@1e40000 {
+			compatible = "qcom,sdm845-ipa";
+
+			modem-init;
+			modem-remoteproc = <&mss_pil>;
+
+			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 =
+				<&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_EBI1>,
+				<&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_IMEM>,
+				<&rsc_hlos MASTER_APPSS_PROC &rsc_hlos 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";
+		};
+
 		tcsr_mutex_regs: syscon@1f40000 {
 			compatible = "syscon";
 			reg = <0 0x01f40000 0 0x40000>;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: sdm845: update IPA interconnect providers
  2020-03-13 11:52 [PATCH 0/2] arm64: dts: sdm845: add/update IPA information Alex Elder
  2020-03-13 11:52 ` [PATCH 1/2] arm64: dts: sdm845: add " Alex Elder
@ 2020-03-13 11:52 ` Alex Elder
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Elder @ 2020-03-13 11:52 UTC (permalink / raw)
  To: David Dai, Georgi Djakov, Bjorn Andersson
  Cc: Andy Gross, Rob Herring, Mark Rutland, David Miller, Evan Green,
	Odelu Kukatla, linux-arm-msm, devicetree, linux-kernel

This commit:
  b303f9f0050b arm64: dts: sdm845: Redefine interconnect provider DT nodes
removed/redefined the interconnect provider node(s) used for IPA.

Update the IPA interconnect specifications accordingly.

Signed-off-by: Alex Elder <elder@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index 0ebe12e4c07f..e0fd1f0c9b07 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -1734,9 +1734,10 @@
 			clock-names = "core";
 
 			interconnects =
-				<&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_EBI1>,
-				<&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_IMEM>,
-				<&rsc_hlos MASTER_APPSS_PROC &rsc_hlos SLAVE_IPA_CFG>;
+				<&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";
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-13 11:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13 11:52 [PATCH 0/2] arm64: dts: sdm845: add/update IPA information Alex Elder
2020-03-13 11:52 ` [PATCH 1/2] arm64: dts: sdm845: add " Alex Elder
2020-03-13 11:52 ` [PATCH 2/2] arm64: dts: sdm845: update IPA interconnect providers Alex Elder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.