mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 1/2] arm64: dts: qcom: sc8180x: Add SLPI remoteproc node
@ 2026-11-04  8:01 Val Packett
  2026-11-04  8:01 ` [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible Val Packett
  0 siblings, 1 reply; 4+ messages in thread
From: Val Packett @ 2026-11-04  8:01 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Val Packett, Mathieu Poirier, linux-arm-msm, devicetree,
	linux-kernel, linux-remoteproc

The Sensors Low-Power Island remoteproc hosts the Sensor Hub firmware
that Linux userspace (hexagonrpcd) can talk to.

Describe the SLPI node for the SC8180X SoC.

Signed-off-by: Val Packett <val@packett.cool>
---
v2: use single compatible and add it to the driver to match bindings
v1: https://lore.kernel.org/all/20261104074200.123842-1-val@packett.cool/

Forgor about committing and sending this while submitting the Surface
Pro X series v1..

Since this is independent and simple while that series is waiting for
comments about the multi-PCIe situation, let's get this in first?

Thanks,
~val
---
 arch/arm64/boot/dts/qcom/sc8180x.dtsi | 61 +++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
index a85e3211958d..ee1a83a58997 100644
--- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
@@ -2259,6 +2259,67 @@ tcsr_mutex: hwlock@1f40000 {
 			#hwlock-cells = <1>;
 		};
 
+		remoteproc_slpi: remoteproc@2400000 {
+			compatible = "qcom,sc8180x-slpi-pas";
+			reg = <0x0 0x02400000 0x0 0x4040>;
+
+			interrupts-extended = <&intc GIC_SPI 494 IRQ_TYPE_EDGE_RISING>,
+					      <&slpi_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
+					      <&slpi_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
+					      <&slpi_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
+					      <&slpi_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
+			interrupt-names = "wdog", "fatal", "ready",
+					  "handover", "stop-ack";
+
+			clocks = <&rpmhcc RPMH_CXO_CLK>;
+			clock-names = "xo";
+
+			power-domains = <&rpmhpd SC8180X_LCX>,
+					<&rpmhpd SC8180X_LMX>;
+			power-domain-names = "lcx", "lmx";
+
+			qcom,qmp = <&aoss_qmp>;
+
+			qcom,smem-states = <&slpi_smp2p_out 0>;
+			qcom,smem-state-names = "stop";
+
+			status = "disabled";
+
+			glink-edge {
+				interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
+				label = "dsps";
+				qcom,remote-pid = <3>;
+				mboxes = <&apss_shared 24>;
+
+				fastrpc {
+					compatible = "qcom,fastrpc";
+					qcom,glink-channels = "fastrpcglink-apps-dsp";
+					label = "sdsp";
+					qcom,non-secure-domain;
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					compute-cb@1 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <1>;
+						iommus = <&apps_smmu 0x05a1 0x0>;
+					};
+
+					compute-cb@2 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <2>;
+						iommus = <&apps_smmu 0x05a2 0x0>;
+					};
+
+					compute-cb@3 {
+						compatible = "qcom,fastrpc-compute-cb";
+						reg = <3>;
+						iommus = <&apps_smmu 0x05a3 0x0>;
+					};
+				};
+			};
+		};
+
 		gpu: gpu@2c00000 {
 			compatible = "qcom,adreno-680.1", "qcom,adreno";
 
-- 
2.56.0


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

* [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible
  2026-11-04  8:01 [PATCH v2 1/2] arm64: dts: qcom: sc8180x: Add SLPI remoteproc node Val Packett
@ 2026-11-04  8:01 ` Val Packett
  2026-11-04  8:03   ` Konrad Dybcio
  0 siblings, 1 reply; 4+ messages in thread
From: Val Packett @ 2026-11-04  8:01 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier
  Cc: Val Packett, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel, linux-remoteproc

The SLPI on the SC8180X is identical to the one on SM8150, reuse the
same data SM8150 (and SDM845) uses.

Signed-off-by: Val Packett <val@packett.cool>
---
 drivers/remoteproc/qcom_q6v5_pas.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c
index cefbe8931407..775a522f6a3b 100644
--- a/drivers/remoteproc/qcom_q6v5_pas.c
+++ b/drivers/remoteproc/qcom_q6v5_pas.c
@@ -2042,6 +2042,7 @@ static const struct of_device_id qcom_pas_of_match[] = {
 	{ .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource },
 	{ .compatible = "qcom,sc8180x-cdsp-pas", .data = &sm8150_cdsp_resource },
 	{ .compatible = "qcom,sc8180x-mpss-pas", .data = &sc8180x_mpss_resource },
+	{ .compatible = "qcom,sc8180x-slpi-pas", .data = &sdm845_slpi_resource_init },
 	{ .compatible = "qcom,sc8280xp-adsp-pas", .data = &sm8250_adsp_resource },
 	{ .compatible = "qcom,sc8280xp-nsp0-pas", .data = &sc8280xp_nsp0_resource },
 	{ .compatible = "qcom,sc8280xp-nsp1-pas", .data = &sc8280xp_nsp1_resource },
-- 
2.56.0


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

* Re: [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible
  2026-11-04  8:01 ` [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible Val Packett
@ 2026-11-04  8:03   ` Konrad Dybcio
  2026-11-04  8:07     ` Val Packett
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Dybcio @ 2026-11-04  8:03 UTC (permalink / raw)
  To: Val Packett, Bjorn Andersson, Mathieu Poirier
  Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
	linux-remoteproc

On 11/4/26 9:01 AM, Val Packett wrote:
> The SLPI on the SC8180X is identical to the one on SM8150, reuse the
> same data SM8150 (and SDM845) uses.

fallback to 8150?

Konrad

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

* Re: [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible
  2026-11-04  8:03   ` Konrad Dybcio
@ 2026-11-04  8:07     ` Val Packett
  0 siblings, 0 replies; 4+ messages in thread
From: Val Packett @ 2026-11-04  8:07 UTC (permalink / raw)
  To: Konrad Dybcio, Bjorn Andersson, Mathieu Poirier
  Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
	linux-remoteproc


On 11/4/26 5:03 AM, Konrad Dybcio wrote:
> On 11/4/26 9:01 AM, Val Packett wrote:
>> The SLPI on the SC8180X is identical to the one on SM8150, reuse the
>> same data SM8150 (and SDM845) uses.
> fallback to 8150?

The current binding for all the remoteprocs (which already mentions 
slpi) doesn't use a fallback..

(in sm8150-pas.yaml only qcs615 uses the fallback right now)

Between editing the bindings and adding the compatible to the driver, I 
chose the option that was consistent with how the others are done..


~val


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

end of thread, other threads:[~2026-11-04  8:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04  8:01 [PATCH v2 1/2] arm64: dts: qcom: sc8180x: Add SLPI remoteproc node Val Packett
2026-11-04  8:01 ` [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible Val Packett
2026-11-04  8:03   ` Konrad Dybcio
2026-11-04  8:07     ` Val Packett

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®