Skip to content

SM8750: add SSC accel+gyro support (sns_iio + ssc-sensors package) - #30

Open
aamir0701 wants to merge 1 commit into
armada-os:mainfrom
aamir0701:feat-ssc-sensors-kpf-elite
Open

SM8750: add SSC accel+gyro support (sns_iio + ssc-sensors package)#30
aamir0701 wants to merge 1 commit into
armada-os:mainfrom
aamir0701:feat-ssc-sensors-kpf-elite

Conversation

@aamir0701

Copy link
Copy Markdown

Add Snapdragon Sensor Core (SSC) IMU bring-up for SM8750 handhelds:

  • ssc-sensors package: builds adsprpcd (ADSP RPC daemon) and snsfeed (QRTR sensor reader) from qualcomm/fastrpc source with glibc shims.
  • kernel patch 0614: sns_iio module exposes a userspace-fed IIO device (bmi323-imu) that InputPlumber consumes for gyro-to-gamepad routing.
  • CONFIG_SNS_IIO=m added to kernel config overrides.

The IMU (ICM4x6xx) sits on the ADSP sensor island bus, unreachable from the AP directly. adsprpcd spawns the sensorspd static PD and serves the Hexagon sensor registry via reverse-RPC; snsfeed streams accel+gyro over QRTR into /dev/sns_iio_feed at 400 Hz.

Tested on KONKR Pocket FIT Elite (SM8750P, SoC ID 639).

Credit: ROCKNIX PR #3005 (author: aanze) for the sns_iio bridge design, snsfeed implementation, and the approach of using a userspace-fed IIO device consumed by stock InputPlumber.

Add Snapdragon Sensor Core (SSC) IMU bring-up for SM8750 handhelds:

- ssc-sensors package: builds adsprpcd (ADSP RPC daemon) and snsfeed
  (QRTR sensor reader) from qualcomm/fastrpc source with glibc shims.
- kernel patch 0614: sns_iio module exposes a userspace-fed IIO device
  (bmi323-imu) that InputPlumber consumes for gyro-to-gamepad routing.
- CONFIG_SNS_IIO=m added to kernel config overrides.

The IMU (ICM4x6xx) sits on the ADSP sensor island bus, unreachable from
the AP directly. adsprpcd spawns the sensorspd static PD and serves the
Hexagon sensor registry via reverse-RPC; snsfeed streams accel+gyro over
QRTR into /dev/sns_iio_feed at 400 Hz.

Tested on KONKR Pocket FIT Elite (SM8750P, SoC ID 639).

Credit: ROCKNIX PR #3005 (author: aanze) for the sns_iio bridge design,
snsfeed implementation, and the approach of using a userspace-fed IIO
device consumed by stock InputPlumber.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant