I have an MMA 8452Q accelerometer connected to an iMX6 SoM. I have successfully brought up the 8452 Linux driver and able to interface with it via sysfs. My question is, is there any documentation describing how to configure and set triggers for the MMA 8452 via sysfs?
EDIT: After spending some time and digging into iio devices, my original question is not exactly my issue. The mma8452 accel is currently set as the trigger. I have configured the 8452 accel to trigger an interrupt when motion is detected. I can successfully cause the 8452 accel to trigger. I have also successfully observed the mma8452 Linux driver capture the trigger. Based on what I have seen in the driver code, it executes an iio_push_event(). My question is, how do I observer this iio_push_event from userspace?