mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shawn Guo <shengchao.guo@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>
Cc: Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Anandu Krishnan E <anandu.e@oss.qualcomm.com>,
	Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>,
	devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Shawn Guo <shengchao.guo@oss.qualcomm.com>
Subject: [PATCH RFC 1/3] arm64: dts: qcom: nord: Add remoteproc for ADSP1/2
Date: Tue,  1 Dec 2026 17:17:25 +0800	[thread overview]
Message-ID: <20261201091727.415871-2-shengchao.guo@oss.qualcomm.com> (raw)
In-Reply-To: <20261201091727.415871-1-shengchao.guo@oss.qualcomm.com>

Add device tree nodes to support ADSP1/2 which share HPASS clock/reset/NoC
resources with ADSP0 and must boot after it. The cluster relationship and
ADSP0's ownership of the shared resources are implied by the per-instance
compatibles, so no additional property is needed.

Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/nord-embedded.dtsi |  22 ++
 arch/arm64/boot/dts/qcom/nord.dtsi          | 220 ++++++++++++++++++++
 2 files changed, 242 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/nord-embedded.dtsi b/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
index e6d0bd21744e..5cde86ccd945 100644
--- a/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
@@ -1144,6 +1144,28 @@ &remoteproc_adsp {
 			     "mx";
 };
 
+&remoteproc_adsp1 {
+	clocks = <&rpmhcc RPMH_CXO_CLK>;
+	clock-names = "xo";
+	interconnects = <&hpass_ag_noc MASTER_HPASS_PROC_1 QCOM_ICC_TAG_ALWAYS
+			 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+	power-domains = <&rpmhpd RPMHPD_CX>,
+			<&rpmhpd RPMHPD_MX>;
+	power-domain-names = "cx",
+			     "mx";
+};
+
+&remoteproc_adsp2 {
+	clocks = <&rpmhcc RPMH_CXO_CLK>;
+	clock-names = "xo";
+	interconnects = <&hpass_ag_noc MASTER_HPASS_PROC_2 QCOM_ICC_TAG_ALWAYS
+			 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+	power-domains = <&rpmhpd RPMHPD_CX>,
+			<&rpmhpd RPMHPD_MX>;
+	power-domain-names = "cx",
+			     "mx";
+};
+
 &remoteproc_cdsp0 {
 	clocks = <&rpmhcc RPMH_CXO_CLK>;
 	clock-names = "xo";
diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
index 56778dd444e4..3bb719a2969a 100644
--- a/arch/arm64/boot/dts/qcom/nord.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord.dtsi
@@ -942,6 +942,52 @@ smp2p_adsp_in: slave-kernel {
 		};
 	};
 
+	smp2p-adsp1 {
+		compatible = "qcom,smp2p";
+		interrupts-extended = <&ipcc0 IPCC_MPROC_ADSP1
+					      IPCC_MPROC_SIGNAL_SMP2P
+					      IRQ_TYPE_EDGE_RISING>;
+		mboxes = <&ipcc0 IPCC_MPROC_ADSP1
+				 IPCC_MPROC_SIGNAL_SMP2P>;
+		qcom,smem = <617>, <616>;
+		qcom,local-pid = <0>;
+		qcom,remote-pid = <66>;
+
+		smp2p_adsp1_out: master-kernel {
+			qcom,entry-name = "master-kernel";
+			#qcom,smem-state-cells = <1>;
+		};
+
+		smp2p_adsp1_in: slave-kernel {
+			qcom,entry-name = "slave-kernel";
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+	};
+
+	smp2p-adsp2 {
+		compatible = "qcom,smp2p";
+		interrupts-extended = <&ipcc0 IPCC_MPROC_ADSP2
+					      IPCC_MPROC_SIGNAL_SMP2P
+					      IRQ_TYPE_EDGE_RISING>;
+		mboxes = <&ipcc0 IPCC_MPROC_ADSP2
+				 IPCC_MPROC_SIGNAL_SMP2P>;
+		qcom,smem = <617>, <616>;
+		qcom,local-pid = <0>;
+		qcom,remote-pid = <130>;
+
+		smp2p_adsp2_out: master-kernel {
+			qcom,entry-name = "master-kernel";
+			#qcom,smem-state-cells = <1>;
+		};
+
+		smp2p_adsp2_in: slave-kernel {
+			qcom,entry-name = "slave-kernel";
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+	};
+
 	smp2p-cdsp0 {
 		compatible = "qcom,smp2p";
 		interrupts-extended = <&ipcc0 IPCC_MPROC_NSP0
@@ -2274,6 +2320,180 @@ compute-cb@6 {
 			};
 		};
 
+		remoteproc_adsp1: remoteproc@6000000 {
+			compatible = "qcom,nord-adsp1-pas";
+			reg = <0x0 0x06000000 0x0 0x10000>;
+
+			interrupts-extended = <&intc GIC_SPI 155 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp1_in 0 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp1_in 1 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp1_in 2 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp1_in 3 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp1_in 7 IRQ_TYPE_EDGE_RISING>;
+			interrupt-names = "wdog",
+					  "fatal",
+					  "ready",
+					  "handover",
+					  "stop-ack",
+					  "shutdown-ack";
+
+			memory-region = <&hpass_dsp1_mem>,
+					<&hpass_dsp1_dtb_mem>;
+
+			qcom,qmp = <&aoss_qmp>;
+
+			qcom,smem-states = <&smp2p_adsp1_out 0>;
+			qcom,smem-state-names = "stop";
+
+			status = "disabled";
+
+			glink-edge {
+				interrupts-extended = <&ipcc0 IPCC_MPROC_ADSP1
+							      IPCC_MPROC_SIGNAL_GLINK_QMP
+							      IRQ_TYPE_EDGE_RISING>;
+				mboxes = <&ipcc0 IPCC_MPROC_ADSP1
+						 IPCC_MPROC_SIGNAL_GLINK_QMP>;
+				qcom,remote-pid = <66>;
+				label = "adsp1";
+
+				fastrpc {
+					compatible = "qcom,nord-fastrpc",
+						     "qcom,kaanapali-fastrpc";
+					qcom,glink-channels = "fastrpcglink-apps-dsp";
+					label = "adsp1";
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					compute-cb@11 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <11>;
+						iommus = <&apps_smmu_0 0x0a0b 0x0040>,
+							 <&apps_smmu_0 0x0a4b 0x0040>,
+							 <&apps_smmu_0 0x0a6b 0x0000>,
+							 <&apps_smmu_0 0x0a8b 0x0000>;
+						dma-coherent;
+					};
+
+					compute-cb@12 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <12>;
+						iommus = <&apps_smmu_0 0x0a0c 0x0080>,
+							 <&apps_smmu_0 0x0a4c 0x0020>,
+							 <&apps_smmu_0 0x0a6c 0x0020>,
+							 <&apps_smmu_0 0x0a8c 0x0080>;
+						dma-coherent;
+					};
+
+					compute-cb@13 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <13>;
+						iommus = <&apps_smmu_0 0x0a0d 0x0080>,
+							 <&apps_smmu_0 0x0a4d 0x0020>,
+							 <&apps_smmu_0 0x0a6d 0x0020>,
+							 <&apps_smmu_0 0x0a8d 0x0080>;
+						dma-coherent;
+					};
+
+					compute-cb@14 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <14>;
+						iommus = <&apps_smmu_0 0x0a0e 0x0080>,
+							 <&apps_smmu_0 0x0a4e 0x0020>,
+							 <&apps_smmu_0 0x0a6e 0x0020>,
+							 <&apps_smmu_0 0x0a8e 0x0080>;
+						dma-coherent;
+					};
+				};
+			};
+		};
+
+		remoteproc_adsp2: remoteproc@6100000 {
+			compatible = "qcom,nord-adsp2-pas";
+			reg = <0x0 0x06100000 0x0 0x10000>;
+
+			interrupts-extended = <&intc GIC_SPI 178 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp2_in 0 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp2_in 1 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp2_in 2 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp2_in 3 IRQ_TYPE_EDGE_RISING>,
+					      <&smp2p_adsp2_in 7 IRQ_TYPE_EDGE_RISING>;
+			interrupt-names = "wdog",
+					  "fatal",
+					  "ready",
+					  "handover",
+					  "stop-ack",
+					  "shutdown-ack";
+
+			memory-region = <&hpass_dsp2_mem>,
+					<&hpass_dsp2_dtb_mem>;
+
+			qcom,qmp = <&aoss_qmp>;
+
+			qcom,smem-states = <&smp2p_adsp2_out 0>;
+			qcom,smem-state-names = "stop";
+
+			status = "disabled";
+
+			glink-edge {
+				interrupts-extended = <&ipcc0 IPCC_MPROC_ADSP2
+							      IPCC_MPROC_SIGNAL_GLINK_QMP
+							      IRQ_TYPE_EDGE_RISING>;
+				mboxes = <&ipcc0 IPCC_MPROC_ADSP2
+						 IPCC_MPROC_SIGNAL_GLINK_QMP>;
+				qcom,remote-pid = <130>;
+				label = "adsp2";
+
+				fastrpc {
+					compatible = "qcom,nord-fastrpc",
+						     "qcom,kaanapali-fastrpc";
+					qcom,glink-channels = "fastrpcglink-apps-dsp";
+					label = "adsp2";
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					compute-cb@3 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <3>;
+						iommus = <&apps_smmu_0 0x0a33 0x0040>,
+							 <&apps_smmu_0 0x0a53 0x0000>,
+							 <&apps_smmu_0 0x0a73 0x0040>,
+							 <&apps_smmu_0 0x0a93 0x0000>;
+						dma-coherent;
+					};
+
+					compute-cb@4 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <4>;
+						iommus = <&apps_smmu_0 0x0a34 0x0040>,
+							 <&apps_smmu_0 0x0a54 0x0000>,
+							 <&apps_smmu_0 0x0a74 0x0040>,
+							 <&apps_smmu_0 0x0a94 0x0000>;
+						dma-coherent;
+					};
+
+					compute-cb@5 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <5>;
+						iommus = <&apps_smmu_0 0x0a35 0x0000>,
+							 <&apps_smmu_0 0x0a55 0x0020>,
+							 <&apps_smmu_0 0x0a75 0x0020>,
+							 <&apps_smmu_0 0x0a95 0x0000>;
+						dma-coherent;
+					};
+
+					compute-cb@6 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <6>;
+						iommus = <&apps_smmu_0 0x0a36 0x0000>,
+							 <&apps_smmu_0 0x0a56 0x0020>,
+							 <&apps_smmu_0 0x0a76 0x0020>,
+							 <&apps_smmu_0 0x0a96 0x0000>;
+						dma-coherent;
+					};
+				};
+			};
+		};
+
 		ipcc0: mailbox@9007000 {
 			compatible = "qcom,nord-ipcc",
 				     "qcom,ipcc";
-- 
2.43.0


  reply	other threads:[~2026-12-01  9:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:17 [PATCH RFC 0/3] arm64: dts: qcom: nord: Add ADSP1/2 remoteproc Shawn Guo
2026-12-01  9:17 ` Shawn Guo [this message]
2026-12-01 10:04   ` [PATCH RFC 1/3] arm64: dts: qcom: nord: Add remoteproc for ADSP1/2 Ekansh Gupta
2026-12-01  9:17 ` [PATCH RFC 2/3] arm64: dts: qcom: nord-rrd: Enable ADSP1/2 remoteproc Shawn Guo
2026-12-01  9:17 ` [PATCH RFC 3/3] arm64: dts: qcom: nord-ride-embedded: " Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201091727.415871-2-shengchao.guo@oss.qualcomm.com \
    --to=shengchao.guo@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=anandu.e@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=anurag.pateriya@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®