Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes
@ 2026-11-30 20:11 Robert Ijtsma via B4 Relay
  2026-11-30 20:11 ` [PATCH v3 1/2] dt-bindings: sram: document qcom,sc8180x-imem compatible Robert Ijtsma via B4 Relay
  2026-11-30 20:11 ` [PATCH v3 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-30 20:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Konrad Dybcio, Abel Vesa
  Cc: devicetree, linux-arm-msm, linux-kernel, Robert Ijtsma

Document the SC8180X on-chip SRAM (IMEM) compatible string under the
generic mmio-sram binding and add the IMEM (sram@14680000) and disabled
IPA v4.1 (ipa@1e40000) nodes to sc8180x.dtsi so board devicetrees can
enable IPA with their board-specific firmware and reserved memory region.

Note: Patch 2/2 references the "qcom,sc8180x-ipa" compatible string
documented in the companion net-next IPA v4.1 series [1].

[1] https://lore.kernel.org/r/20261126-qcom-ipa-sc8180x-v2-0-89eba621da95@gmail.com

Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
Changes in v3:
- Update ipa@1e40000 reg sizes in sc8180x.dtsi to 0x19000 for
  ipa-shared and 0x28000 for gsi (Konrad Dybcio).
- Leave iommus at the two streams allowed by qcom,ipa.yaml (maxItems: 2,
  AP 0x520 and uC 0x522), as upstream drivers/net/ipa does not handle
  the 0x521 IPA<->WLAN stream.
- Link to v2: https://patch.msgid.link/20261126-sc8180x-dts-ipa-v2-0-ad57b1be7c70@gmail.com

Changes in v2:
- Document qcom,sc8180x-imem in Documentation/devicetree/bindings/sram/sram.yaml
  as generic mmio-sram.
- Add sram@14680000 with modem-tables-sram@3d000 to sc8180x.dtsi and
  reference it via sram = <&ipa_modem_tables> from ipa@1e40000 so the
  IPA driver obtains the IMEM slice from Devicetree (Konrad Dybcio).
- Link to v1: https://patch.msgid.link/20261125-sc8180x-dts-ipa-v1-1-12e54c7e13b5@gmail.com

To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konradybcio@kernel.org>
To: Abel Vesa <abelvesa@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org

---
Robert Ijtsma (2):
      dt-bindings: sram: document qcom,sc8180x-imem compatible
      arm64: dts: qcom: sc8180x: add IMEM and IPA nodes

 Documentation/devicetree/bindings/sram/sram.yaml |  1 +
 arch/arm64/boot/dts/qcom/sc8180x.dtsi            | 60 ++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
---
base-commit: 4843f6873f7c4835e62f2c73ba0fd538e57a2f22
change-id: 20261125-sc8180x-dts-ipa-008e9e55c9bd

Best regards,
--  
Robert Ijtsma <robertijtsma@gmail.com>



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

* [PATCH v3 1/2] dt-bindings: sram: document qcom,sc8180x-imem compatible
  2026-11-30 20:11 [PATCH v3 0/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
@ 2026-11-30 20:11 ` Robert Ijtsma via B4 Relay
  2026-11-30 20:11 ` [PATCH v3 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-30 20:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Konrad Dybcio, Abel Vesa
  Cc: devicetree, linux-arm-msm, linux-kernel, Robert Ijtsma

From: Robert Ijtsma <robertijtsma@gmail.com>

Document the compatible string for the on-chip SRAM (IMEM) region on
Qualcomm SC8180X SoCs under the generic mmio-sram binding.

Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
 Documentation/devicetree/bindings/sram/sram.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sram/sram.yaml b/Documentation/devicetree/bindings/sram/sram.yaml
index 6ee0b1464722..a6353abcc17f 100644
--- a/Documentation/devicetree/bindings/sram/sram.yaml
+++ b/Documentation/devicetree/bindings/sram/sram.yaml
@@ -42,6 +42,7 @@ properties:
         - qcom,maili-imem
         - qcom,milos-imem
         - qcom,rpm-msg-ram
+        - qcom,sc8180x-imem
         - qcom,shikra-imem
         - rockchip,rk3288-pmu-sram
         - samsung,exynos850-acpm-sram

-- 
2.56.0



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

* [PATCH v3 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes
  2026-11-30 20:11 [PATCH v3 0/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
  2026-11-30 20:11 ` [PATCH v3 1/2] dt-bindings: sram: document qcom,sc8180x-imem compatible Robert Ijtsma via B4 Relay
@ 2026-11-30 20:11 ` Robert Ijtsma via B4 Relay
  2026-11-30 20:30   ` sashiko-bot
  1 sibling, 1 reply; 4+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-30 20:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Konrad Dybcio, Abel Vesa
  Cc: devicetree, linux-arm-msm, linux-kernel, Robert Ijtsma

From: Robert Ijtsma <robertijtsma@gmail.com>

Add the on-chip SRAM (sram@14680000) node with the IPA modem-tables
region and the disabled IPA v4.1 (ipa@1e40000) node to sc8180x.dtsi
with its register regions, GIC and SMP2P interrupts, RPMh core clock,
interconnects, SMMU streams, AOSS QMP handle, SMP2P SMEM states, and
IMEM sram reference so board devicetrees can enable IPA with their
board-specific firmware and reserved memory region.

Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
 arch/arm64/boot/dts/qcom/sc8180x.dtsi | 60 +++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
index a85e3211958d..0189b9d7d8a8 100644
--- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
@@ -2253,6 +2253,51 @@ ufs_mem_phy: phy-wrapper@1d87000 {
 			status = "disabled";
 		};
 
+		ipa: ipa@1e40000 {
+			compatible = "qcom,sc8180x-ipa";
+			reg = <0x0 0x01e40000 0x0 0x7000>,
+			      <0x0 0x01e47000 0x0 0x19000>,
+			      <0x0 0x01e04000 0x0 0x28000>;
+			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>,
+					      <&modem_smp2p_ipa_in 0 IRQ_TYPE_EDGE_RISING>,
+					      <&modem_smp2p_ipa_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 QCOM_ICC_TAG_ALWAYS
+					 &mc_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>,
+					<&aggre2_noc MASTER_IPA QCOM_ICC_TAG_ALWAYS
+					 &system_noc SLAVE_OCIMEM QCOM_ICC_TAG_ALWAYS>,
+					<&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ALWAYS
+					 &config_noc SLAVE_IPA_CFG QCOM_ICC_TAG_ALWAYS>;
+			interconnect-names = "memory",
+					     "imem",
+					     "config";
+
+			iommus = <&apps_smmu 0x520 0x0>,
+				 <&apps_smmu 0x522 0x0>;
+
+			qcom,qmp = <&aoss_qmp>;
+			qcom,smem-states = <&modem_smp2p_ipa_out 0>,
+					   <&modem_smp2p_ipa_out 1>;
+			qcom,smem-state-names = "ipa-clock-enabled-valid",
+						"ipa-clock-enabled";
+
+			sram = <&ipa_modem_tables>;
+
+			status = "disabled";
+		};
+
 		tcsr_mutex: hwlock@1f40000 {
 			compatible = "qcom,tcsr-mutex";
 			reg = <0x0 0x01f40000 0x0 0x40000>;
@@ -3615,6 +3660,21 @@ spmi_bus: spmi@c440000 {
 			#interrupt-cells = <4>;
 		};
 
+		sram@14680000 {
+			compatible = "qcom,sc8180x-imem", "mmio-sram";
+			reg = <0x0 0x14680000 0x0 0x40000>;
+			ranges = <0x0 0x0 0x14680000 0x40000>;
+
+			no-memory-wc;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			ipa_modem_tables: modem-tables-sram@3d000 {
+				reg = <0x3d000 0x2000>;
+			};
+		};
+
 		apps_smmu: iommu@15000000 {
 			compatible = "qcom,sc8180x-smmu-500", "arm,mmu-500";
 			reg = <0 0x15000000 0 0x100000>;

-- 
2.56.0



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

* Re: [PATCH v3 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes
  2026-11-30 20:11 ` [PATCH v3 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
@ 2026-11-30 20:30   ` sashiko-bot
  0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-30 20:30 UTC (permalink / raw)
  To: Robert Ijtsma; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: qcom: sc8180x: undocumented qcom,sc8180x-ipa
  compatible
- [Low] arm64: dts: qcom: sc8180x: oversized ipa-shared reg region in
  ipa@1e40000
--

commit 639caa6789a911227c428e0f6f437f7888faa8a0
Author: Robert Ijtsma <robertijtsma@gmail.com>

arm64: dts: qcom: sc8180x: add IMEM and IPA nodes

This commit adds the on-chip IMEM SRAM node with the IPA modem-tables
region and the disabled IPA v4.1 node to sc8180x.dtsi.

> diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
> index a85e3211958d1..0189b9d7d8a80 100644
> --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
> @@ -2253,6 +2253,51 @@ ufs_mem_phy: phy-wrapper@1d87000 {
>  			status = "disabled";
>  		};
>  
> +		ipa: ipa@1e40000 {
> +			compatible = "qcom,sc8180x-ipa";

[Severity: Medium]
Is qcom,sc8180x-ipa missing from
Documentation/devicetree/bindings/net/qcom,ipa.yaml and from ipa_match[] in
drivers/net/ipa/ipa_main.c?

Without the binding entry and driver match data, dtbs_check reports an
undocumented compatible string on SC8180X devicetrees and enabling this node
in a board devicetree cannot bind to the IPA driver.

> +			reg = <0x0 0x01e40000 0x0 0x7000>,
> +			      <0x0 0x01e47000 0x0 0x19000>,
> +			      <0x0 0x01e04000 0x0 0x28000>;
> +			reg-names = "ipa-reg",
> +				    "ipa-shared",
> +				    "gsi";

[Severity: Low]
Should the ipa-shared region size be 0x2000 instead of 0x19000?

0x19000 covers the entire remainder of the 0x20000 IPA wrapper aperture
after ipa-reg rather than just the shared SRAM block (which is 0x2000 on
adjacent IPA v3.5.1 and v4.2 SoCs where ipa-shared starts at offset
0x7000).  ipa_mem_init() remaps the full resource with MEMREMAP_WC, and
ipa_mem_config() will log a "limiting IPA memory size" warning when the DT
resource exceeds the size reported by the hardware SHARED_MEM_SIZE
register.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-sc8180x-dts-ipa-v3-0-141ff9b0d2ef@gmail.com?part=2

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

end of thread, other threads:[~2026-11-30 20:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 20:11 [PATCH v3 0/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
2026-11-30 20:11 ` [PATCH v3 1/2] dt-bindings: sram: document qcom,sc8180x-imem compatible Robert Ijtsma via B4 Relay
2026-11-30 20:11 ` [PATCH v3 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
2026-11-30 20:30   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox