devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: dts: qcom: sm6350: enable IPA
@ 2023-01-04 19:37 Alex Elder
  2023-01-04 19:37 ` [PATCH v2 1/2] arm64: dts: qcom: sm6350: add IPA node Alex Elder
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alex Elder @ 2023-01-04 19:37 UTC (permalink / raw)
  To: andersson, konrad.dybcio, agross, robh+dt, krzysztof.kozlowski+dt
  Cc: luca.weiss, caleb.connolly, mka, evgreen, quic_cpratapa,
	quic_avuyyuru, quic_jponduru, quic_subashab, elder, linux-arm-msm,
	devicetree, linux-kernel

Enable IPA for the SM6350 SoC, which implements IPA v4.7.  Enable it
on the Fairphone 4, which incorporates IPA definitions used for the
SM6350.

Version 2 of this series uses the new "qcom,gsi-loader" property to
specify that the AP should load firmware on this platform.

					-Alex

Luca Weiss (2):
  arm64: dts: qcom: sm6350: add IPA node
  arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA

 arch/arm64/boot/dts/qcom/sm6350.dtsi          | 47 +++++++++++++++++++
 .../boot/dts/qcom/sm7225-fairphone-fp4.dts    |  7 +++
 2 files changed, 54 insertions(+)

-- 
2.34.1


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

* [PATCH v2 1/2] arm64: dts: qcom: sm6350: add IPA node
  2023-01-04 19:37 [PATCH v2 0/2] arm64: dts: qcom: sm6350: enable IPA Alex Elder
@ 2023-01-04 19:37 ` Alex Elder
  2023-01-04 19:37 ` [PATCH v2 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA Alex Elder
  2023-01-18 23:55 ` [PATCH v2 0/2] arm64: dts: qcom: sm6350: " Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Elder @ 2023-01-04 19:37 UTC (permalink / raw)
  To: andersson, konrad.dybcio, agross, robh+dt, krzysztof.kozlowski+dt
  Cc: Luca Weiss, caleb.connolly, mka, evgreen, quic_cpratapa,
	quic_avuyyuru, quic_jponduru, quic_subashab, elder, linux-arm-msm,
	devicetree, linux-kernel

From: Luca Weiss <luca.weiss@fairphone.com>

IPA is used for mobile data. Add a node describing it.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Signed-off-by: Alex Elder <elder@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm6350.dtsi | 47 ++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi
index 43324bf291c30..f622d870bc827 100644
--- a/arch/arm64/boot/dts/qcom/sm6350.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi
@@ -432,7 +432,17 @@ modem_smp2p_out: master-kernel {
 
 		modem_smp2p_in: slave-kernel {
 			qcom,entry-name = "slave-kernel";
+			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>;
 		};
@@ -847,6 +857,43 @@ ufs_mem_phy_lanes: phy@1d87400 {
 			};
 		};
 
+		ipa: ipa@1e40000 {
+			compatible = "qcom,sm6350-ipa";
+
+			iommus = <&apps_smmu 0x440 0x0>,
+				 <&apps_smmu 0x442 0x0>;
+			reg = <0 0x01e40000 0 0x8000>,
+			      <0 0x01e50000 0 0x3000>,
+			      <0 0x01e04000 0 0x23000>;
+			reg-names = "ipa-reg",
+				    "ipa-shared",
+				    "gsi";
+
+			interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
+					      <&intc GIC_SPI 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 0 &clk_virt SLAVE_EBI_CH0 0>,
+					<&aggre2_noc MASTER_IPA 0 &system_noc SLAVE_OCIMEM 0>,
+					<&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_IPA_CFG 0>;
+			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";
+
+			status = "disabled";
+		};
+
 		tcsr_mutex: hwlock@1f40000 {
 			compatible = "qcom,tcsr-mutex";
 			reg = <0x0 0x01f40000 0x0 0x40000>;
-- 
2.34.1


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

* [PATCH v2 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA
  2023-01-04 19:37 [PATCH v2 0/2] arm64: dts: qcom: sm6350: enable IPA Alex Elder
  2023-01-04 19:37 ` [PATCH v2 1/2] arm64: dts: qcom: sm6350: add IPA node Alex Elder
@ 2023-01-04 19:37 ` Alex Elder
  2023-01-18 23:55 ` [PATCH v2 0/2] arm64: dts: qcom: sm6350: " Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Elder @ 2023-01-04 19:37 UTC (permalink / raw)
  To: andersson, konrad.dybcio, agross, robh+dt, krzysztof.kozlowski+dt
  Cc: Luca Weiss, caleb.connolly, mka, evgreen, quic_cpratapa,
	quic_avuyyuru, quic_jponduru, quic_subashab, elder, linux-arm-msm,
	devicetree, linux-kernel

From: Luca Weiss <luca.weiss@fairphone.com>

IPA is used for mobile data. Enable it.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Signed-off-by: Alex Elder <elder@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
index c456e9594ea5b..6f9e59bf43a00 100644
--- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
+++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
@@ -362,6 +362,13 @@ haptics@5a {
 	};
 };
 
+&ipa {
+	qcom,gsi-loader = "self";
+	memory-region = <&pil_ipa_fw_mem>;
+	firmware-name = "qcom/sm7225/fairphone4/ipa_fws.mdt";
+	status = "okay";
+};
+
 &mpss {
 	status = "okay";
 	firmware-name = "qcom/sm7225/fairphone4/modem.mdt";
-- 
2.34.1


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

* Re: [PATCH v2 0/2] arm64: dts: qcom: sm6350: enable IPA
  2023-01-04 19:37 [PATCH v2 0/2] arm64: dts: qcom: sm6350: enable IPA Alex Elder
  2023-01-04 19:37 ` [PATCH v2 1/2] arm64: dts: qcom: sm6350: add IPA node Alex Elder
  2023-01-04 19:37 ` [PATCH v2 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA Alex Elder
@ 2023-01-18 23:55 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2023-01-18 23:55 UTC (permalink / raw)
  To: agross, elder, robh+dt, krzysztof.kozlowski+dt, konrad.dybcio
  Cc: quic_jponduru, caleb.connolly, quic_subashab, mka, evgreen,
	devicetree, quic_avuyyuru, quic_cpratapa, linux-kernel,
	linux-arm-msm, luca.weiss, elder

On Wed, 4 Jan 2023 13:37:57 -0600, Alex Elder wrote:
> Enable IPA for the SM6350 SoC, which implements IPA v4.7.  Enable it
> on the Fairphone 4, which incorporates IPA definitions used for the
> SM6350.
> 
> Version 2 of this series uses the new "qcom,gsi-loader" property to
> specify that the AP should load firmware on this platform.
> 
> [...]

Applied, thanks!

[1/2] arm64: dts: qcom: sm6350: add IPA node
      commit: aed7154a30239f0275b13d622e1edd9d4d356308
[2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA
      commit: 60bf8740870e0377f29b44593c0bfbab379b4909

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

end of thread, other threads:[~2023-01-18 23:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-04 19:37 [PATCH v2 0/2] arm64: dts: qcom: sm6350: enable IPA Alex Elder
2023-01-04 19:37 ` [PATCH v2 1/2] arm64: dts: qcom: sm6350: add IPA node Alex Elder
2023-01-04 19:37 ` [PATCH v2 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA Alex Elder
2023-01-18 23:55 ` [PATCH v2 0/2] arm64: dts: qcom: sm6350: " Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).