TS-TPC-7990 Accelerometer replacement
From embeddedTS Manuals
The revision D and below boards included the NXP MMA8451 3-axis accelerometer, but due to an EOL this is being replaced on the Rev. E and above PCBs. Instead new boards will include:
- ST Microelectronics ISM330DLCTR 6-axis sensor (Accelerometer/Gyroscope)
- ST Microelectronics IIS2MDCTR 3-axis Magnetoresistive sensor
See the manual sections for usage examples:
See #MMA8451 Accelerometer for more information on the usage of the EOL accelerometer.
On the LTS kernel 5.10 this is supported as of tag v5.10.170.6-ts. A user who cloned/modified a previous 5.10 could merge this in with:
git remote add upstream https://github.com/embeddedTS/linux-lts.git
git fetch upstream
# Run "git checkout name-of-your-modified-branch" if it is not already selected
git merge v5.10.170.6-ts
git push
On the NXP forked 4.9.x kernel this is added with these 6 patches:
- 29df72386f264d569397fbe12ab0f192858dff6b - st-mems-linux: Imported STM MEMS IIO drivers
- 740f7fd3eb29b9a7412809e1047161ae26dc775e - STMEMS: Added iio type patch for STMEMS
- ee7d38df01495168d1e1b6956b596b630f814dfd - Added STMEMS sensor to build system
- 4194498fef75c1c0d280e40216ad80007509e8ef - stm: add new iio event used for timesync logic
- c4701f82a4d522bb7daa50266b86535fa9dc74bd - dts: imx6qdl-ts7990: Add support for Rev. E
- cd63e41f54b3c7204879705d1f8ccdbb387f1ba2 - ts4900_defconfig: Add support for STM accelerometer/gyroscope/magnetometer
A user who cloned/modified a previous 4.9 could merge this in with:
git remote add upstream https://github.com/embeddedTS/linux-tsimx.git
git fetch upstream
# Run "git checkout name-of-your-modified-branch" if it is not already selected
git merge upstream/ts-imx_4.9.11_1.0.0_ga
git push
This is not supported on 4.1 or earlier kernels since this requires further developments in the IIO stack in the kernel to support these drivers.