Repository navigation
arm64: dts: qcom: sc8180x-surface-pro-x: enable SLPI remoteproc and FastRPC sensors DSP - #209
Open
robertijtsma wants to merge 3 commits into
Open
robertijtsma wants to merge 3 commits into
robertijtsma wants to merge 3 commits into
Conversation
The SC8180X SLPI (Sensors Low-Power Island) uses the same PAS ID (12), LCX/LMX power domains, and resource layout as SM8150/SDM845, and qcom,sm8150-pas.yaml already documents qcom,sc8180x-slpi-pas. Add the explicit qcom,sc8180x-slpi-pas match entry pointing to sdm845_slpi_resource_init. Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Add the disabled SC8180X SLPI remoteproc node at 0x2400000 with its GLINK edge (dsps) and FastRPC SDSP compute context banks (SMMU SIDs 0x05a1..0x05a3) so boards can expose SLPI-attached sensors through FastRPC and QMI SSC. Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Enable remoteproc_slpi using the already-reserved 20 MiB scss_mem region and qcslpi8180.mbn firmware to expose the onboard LSM6DSO 6-axis IMU and AK0991x magnetometer via FastRPC (/dev/fastrpc-sdsp) and QMI SSC (hexagonrpcd / libssc / iio-sensor-proxy). Tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface). Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable the Qualcomm SC8180X SLPI (Sensors Low-Power Island) remoteproc and FastRPC SDSP interface on Microsoft Surface Pro X so the onboard 6-axis IMU (LSM6DSO) and magnetometer/compass (AK0991x) are exposed via
/dev/fastrpc-sdsp+ QMI SSC (hexagonrpcd/libssc/iio-sensor-proxy):remoteproc: qcom: pas: add SC8180X SLPI compatible{ .compatible = "qcom,sc8180x-slpi-pas", .data = &sdm845_slpi_resource_init }match entry (already documented inDocumentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml).arm64: dts: qcom: sc8180x: add SLPI remoteproc and FastRPC SDSP noderemoteproc_slpi: remoteproc@2400000node with LCX/LMX power domains, SMP2P interrupts, GLINK edge (dsps), and FastRPCsdspcompute context banks (0x05a1..0x05a3).arm64: dts: qcom: sc8180x-surface-pro-x: enable SLPI remoteproc&remoteproc_slpiusing the already-reserved 20 MiBscss_mem(0x99000000) andqcom/msft/surface/pro-x-sq2/qcslpi8180.mbnfirmware path (matchingadsp/cdsp/mpss).Verification
qcom_q6v5_pas.kocompiled cleanly against Linux7.3.1-1-surface(0 errors, 0 warnings).sc8180x-surface-pro-x.dtspreprocessed and compiled withdtc(0 errors, 0 new warnings)../scripts/checkpatch.pl --no-treeon all 3 commits: 0 errors, 0 warnings.SC8180X, Linux7.3.1-1-surface) withhexagonrpcd-sdsp+iio-sensor-proxy(auto-rotation, accelerometer, gyroscope, and compass working).