Message ID | 20250507-add_qcs615_remoteproc_support-v2-3-52ac6cb43a39@quicinc.com |
---|---|
State | New |
Headers | show |
Series | arm64: dts: qcom: qcs615: enable remoteprocs - ADSP and CDSP | expand |
On 5/7/25 12:26 PM, Lijuan Gao wrote: > From: Kyle Deng <quic_chunkaid@quicinc.com> > > The Shared Memory Point to Point (SMP2P) protocol facilitates > communication of a single 32-bit value between two processors. > Add these two nodes for remoteproc enablement on QCS615 SoC. > > Signed-off-by: Kyle Deng <quic_chunkaid@quicinc.com> > Signed-off-by: Lijuan Gao <quic_lijuang@quicinc.com> > --- > arch/arm64/boot/dts/qcom/qcs615.dtsi | 43 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi > index 7c377f3402c1..53661e3a852e 100644 > --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi > +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi > @@ -332,6 +332,49 @@ mc_virt: interconnect-2 { > qcom,bcm-voters = <&apps_bcm_voter>; > }; > > + smp2p-adsp { > + compatible = "qcom,smp2p"; > + qcom,smem = <443>, <429>; > + interrupts = <GIC_SPI 172 IRQ_TYPE_EDGE_RISING>; > + mboxes = <&apss_shared 26>; 26 will poke at the SLPI instead Konrad
在 5/8/2025 10:40 PM, Konrad Dybcio 写道: > On 5/7/25 12:26 PM, Lijuan Gao wrote: >> From: Kyle Deng <quic_chunkaid@quicinc.com> >> >> The Shared Memory Point to Point (SMP2P) protocol facilitates >> communication of a single 32-bit value between two processors. >> Add these two nodes for remoteproc enablement on QCS615 SoC. >> >> Signed-off-by: Kyle Deng <quic_chunkaid@quicinc.com> >> Signed-off-by: Lijuan Gao <quic_lijuang@quicinc.com> >> --- >> arch/arm64/boot/dts/qcom/qcs615.dtsi | 43 ++++++++++++++++++++++++++++++++++++ >> 1 file changed, 43 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi >> index 7c377f3402c1..53661e3a852e 100644 >> --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi >> +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi >> @@ -332,6 +332,49 @@ mc_virt: interconnect-2 { >> qcom,bcm-voters = <&apps_bcm_voter>; >> }; >> >> + smp2p-adsp { >> + compatible = "qcom,smp2p"; >> + qcom,smem = <443>, <429>; >> + interrupts = <GIC_SPI 172 IRQ_TYPE_EDGE_RISING>; >> + mboxes = <&apss_shared 26>; > > 26 will poke at the SLPI instead SLPI has not been enabled in QCS615, so the sensor will be in ADSP. And 26 is being used dowstream, so it should be correct. > > Konrad
On 5/9/25 10:22 AM, Lijuan Gao wrote: > > > 在 5/8/2025 10:40 PM, Konrad Dybcio 写道: >> On 5/7/25 12:26 PM, Lijuan Gao wrote: >>> From: Kyle Deng <quic_chunkaid@quicinc.com> >>> >>> The Shared Memory Point to Point (SMP2P) protocol facilitates >>> communication of a single 32-bit value between two processors. >>> Add these two nodes for remoteproc enablement on QCS615 SoC. >>> >>> Signed-off-by: Kyle Deng <quic_chunkaid@quicinc.com> >>> Signed-off-by: Lijuan Gao <quic_lijuang@quicinc.com> >>> --- >>> arch/arm64/boot/dts/qcom/qcs615.dtsi | 43 ++++++++++++++++++++++++++++++++++++ >>> 1 file changed, 43 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi >>> index 7c377f3402c1..53661e3a852e 100644 >>> --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi >>> @@ -332,6 +332,49 @@ mc_virt: interconnect-2 { >>> qcom,bcm-voters = <&apps_bcm_voter>; >>> }; >>> + smp2p-adsp { >>> + compatible = "qcom,smp2p"; >>> + qcom,smem = <443>, <429>; >>> + interrupts = <GIC_SPI 172 IRQ_TYPE_EDGE_RISING>; >>> + mboxes = <&apss_shared 26>; >> >> 26 will poke at the SLPI instead > > SLPI has not been enabled in QCS615, so the sensor will be in ADSP. And 26 is being used dowstream, so it should be correct. Please check in with the relevant folks and leave a comment such as /* On this platform, bit 26 (normally SLPI) is repurposed for ADSP */ if it's indeed correct Konrad
diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi index 7c377f3402c1..53661e3a852e 100644 --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi @@ -332,6 +332,49 @@ mc_virt: interconnect-2 { qcom,bcm-voters = <&apps_bcm_voter>; }; + smp2p-adsp { + compatible = "qcom,smp2p"; + qcom,smem = <443>, <429>; + interrupts = <GIC_SPI 172 IRQ_TYPE_EDGE_RISING>; + mboxes = <&apss_shared 26>; + + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + adsp_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + adsp_smp2p_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + smp2p-cdsp { + compatible = "qcom,smp2p"; + qcom,smem = <94>, <432>; + interrupts = <GIC_SPI 576 IRQ_TYPE_EDGE_RISING>; + mboxes = <&apss_shared 6>; + + qcom,local-pid = <0>; + qcom,remote-pid = <5>; + + cdsp_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + cdsp_smp2p_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + + }; + qup_opp_table: opp-table-qup { compatible = "operating-points-v2"; opp-shared;