arm64: dts: qcom: sc8180x: Add SLPI remoteproc node
Subsystems (4)
PATCH v2 1/2 arm64: dts: qcom: sc8180x: Add SLPI remoteproc node
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.
---
v2: use single compatible and add it to the driver to match bindings
v1: https://lore.kernel.org/all/[email protected]/
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(+)
arch/arm64/boot/dts/qcom/sc8180x.dtsi +61 -0
@@ -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";
Signature · 1 line
2.56.0
PATCH v2 2/2 remoteproc: qcom: pas: Add SC8180X SLPI compatible
The SLPI on the SC8180X is identical to the one on SM8150, reuse the same data SM8150 (and SDM845) uses.
--- drivers/remoteproc/qcom_q6v5_pas.c | 1 + 1 file changed, 1 insertion(+)
drivers/remoteproc/qcom_q6v5_pas.c +1 -0
@@ -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 },
Signature · 1 line
2.56.0
Re: [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible
Quoted 2 lines · Val Packett
The SLPI on the SC8180X is identical to the one on SM8150, reuse the same data SM8150 (and SDM845) uses.
fallback to 8150?
Konrad
Re: [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible
Quoted 4 lines · Konrad Dybcio
Quoted 2 lines · Val Packett
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
Re: [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X SLPI compatible
In reply to Val PackettOn a Microsoft Surface Pro X SQ1 (sc8180x, "cambria"), with this patch on top of uwu-next, the SLPI boots with the machine's own qcslpi8180.mbn and stays up: it came up in 44 of 44 boots where the firmware was reachable, with no crashes. I haven't exercised any sensor clients on it yet.
On a Microsoft Surface Pro X SQ1 (sc8180x, "cambria"), with this patch on top of uwu-next, the SLPI boots with the machine's own qcslpi8180.mbn and stays up: it came up in 44 of 44 boots where the firmware was reachable, with no crashes. I haven't exercised any sensor clients on it yet.