I am currently attempting to choose an accelerometer to replace our old MMA8451Q we used on previous products. It seems that the FXLS8974CF is the latest version. Our products run Linux, and therefore I need a Linux driver to support the FXLS8974CF accelerometer. It seems there is a driver available for download but it is not for Linux. I see that some work has been done to get a Linux driver pushed to the kernel mainline, but it does not seem to be completed yet. Is that the case? When can I expect a Linux Kernel driver for the FXLS8974CF to be available?
Thanks!
Hello,
I hope all is great with you. Thank you for using the NXP communities.
First, you are correct. The FXLS8974CF is a great option as a replacement for your device.
In this case, I can gladly share a baremetal example (attached). You may use it as a reference for your LINUX driver. Please note that the FXLS8974CF, FXLS8967AF, FXLS8962 and FXLS8964 are all software compatible.
Besides, please also check the following links that might be useful for you. These are not NXP official.
https://github.com/gscholer/SDK_2.6.0_LPCXpresso54114/blob/master/LPCXpresso54114_manifest_v3_4.xml
https://gitee.com/seventeen17/nxpSDK/blob/master/MKL27Z64xxx4_manifest_v3_6.xml
https://gitee.com/seventeen17/nxpSDK/blob/master/EVK-MIMXRT1010_manifest_v3_5.xml
I hope this information helps.
Regards,
David
Thank you for your reply.
Was the baremetal example successfully attached?
Also, what do you mean exactly by "software compatible"? Is this an alternative to interfacing with the hardware via a driver but rather directly through user-space software? Do you happen to know if this is possible or reasonable in a Linux system (from user-space rather than kernel space)?