Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes
@ 2026-11-26 13:39 Robert Ijtsma via B4 Relay
  2026-11-26 13:39 ` [PATCH v2 1/2] dt-bindings: sram: document qcom,sc8180x-imem compatible Robert Ijtsma via B4 Relay
  2026-11-26 13:39 ` [PATCH v2 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-26 13:39 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Abel Vesa
  Cc: Robert Ijtsma, devicetree, linux-arm-msm

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 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 v2 1/2] dt-bindings: sram: document qcom,sc8180x-imem compatible
  2026-11-26 13:39 [PATCH v2 0/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
@ 2026-11-26 13:39 ` Robert Ijtsma via B4 Relay
  2026-11-26 13:39 ` [PATCH v2 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-26 13:39 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Abel Vesa
  Cc: Robert Ijtsma, devicetree, linux-arm-msm

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 6ee0b14..a6353ab 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 v2 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes
  2026-11-26 13:39 [PATCH v2 0/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
  2026-11-26 13:39 ` [PATCH v2 1/2] dt-bindings: sram: document qcom,sc8180x-imem compatible Robert Ijtsma via B4 Relay
@ 2026-11-26 13:39 ` Robert Ijtsma via B4 Relay
  2026-11-26 13:50   ` sashiko-bot
  1 sibling, 1 reply; 4+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-26 13:39 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Abel Vesa
  Cc: Robert Ijtsma, devicetree, linux-arm-msm

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 a85e321..5d83734 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 0x4000>,
+			      <0x0 0x01e04000 0x0 0x2c000>;
+			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 v2 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes
  2026-11-26 13:39 ` [PATCH v2 2/2] arm64: dts: qcom: sc8180x: add IMEM and IPA nodes Robert Ijtsma via B4 Relay
@ 2026-11-26 13:50   ` sashiko-bot
  0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-26 13:50 UTC (permalink / raw)
  To: Robert Ijtsma; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: qcom: sc8180x: undocumented compatible
  qcom,sc8180x-ipa
--

commit 98bd0896ae9b2571b22decd833221032e2e62143
Author: Robert Ijtsma <robertijtsma@gmail.com>

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

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

> diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
> index a85e3211958d1..5d837346f7bee 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" documented in the devicetree bindings or supported
by the IPA driver?

Documentation/devicetree/bindings/net/qcom,ipa.yaml does not list
"qcom,sc8180x-ipa" in its compatible property, which causes dtbs_check
validation to fail on SC8180X targets.  In addition, ipa_match[] in
drivers/net/ipa/ipa_main.c has no entry for "qcom,sc8180x-ipa" (and no
IPA v4.1 configuration or register tables exist in drivers/net/ipa/), so
the driver cannot bind when a board devicetree enables this node.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-sc8180x-dts-ipa-v2-0-ad57b1be7c70@gmail.com?part=2

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

end of thread, other threads:[~2026-11-26 13:50 UTC | newest]

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

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