Skip to content

Commit

Permalink
dts: arm64: qcom: sdm845: add SLPI FastRPC support
Browse files Browse the repository at this point in the history
Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC through
an allocated memory region to load files from the host filesystem
such as sensor configuration files.

Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, similar to
downstream, to allow userspace to communicate with the SLPI via the
FastRPC interface for initializing the sensors on the SLPI.

Signed-off-by: Dylan Van Assche <me@dylanvanassche.be>
  • Loading branch information
DylanVanAssche authored and intel-lab-lkp committed Mar 25, 2023
1 parent 251e317 commit df03f51
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions arch/arm64/boot/dts/qcom/sdm845.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,14 @@
size = <0 0x4000>;
no-map;
};

fastrpc_mem: fastrpc {
compatible = "shared-dma-pool";
reusable;
alloc-ranges = <0 0x00000000 0 0xffffffff>;
alignment = <0 0x400000>;
size = <0 0x1000000>;
};
};

adsp_pas: remoteproc-adsp {
Expand Down Expand Up @@ -3333,6 +3341,22 @@
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;
qcom,vmids = <0x3 0xF 0x5 0x6>;
memory-region = <&fastrpc_mem>;
qcom,assign-all-mem;
#address-cells = <1>;
#size-cells = <0>;

compute-cb {
compatible = "qcom,fastrpc-compute-cb";
};
}
};
};

Expand Down

0 comments on commit df03f51

Please sign in to comment.