Facing issue in configuring both Interrupt in LIS2DH accelerometer sensor.

I'm using the nRF9160 with the LIS2DH accelerometer and SDK version 2.5.2. In my hardware setup, INT1 is connected to GPIO 0 and INT2 to GPIO 1. I'm configuring both interrupt lines through the LIS2DH register settings, and I’ve confirmed that both INT1 and INT2 are properly enabled in the sensor registers. However, I'm using the Zephyr sensor_trigger_set() function to set up the interrupt, and it seems this function only uses INT2 by default, regardless of my INT1 configuration. As a result, INT1 is never triggered, and only INT2 works. I suspect the issue is with how the Zephyr LIS2DH driver internally maps the interrupt to INT2. Could you please clarify how to properly configure and use both INT1 and INT2 independently, and how to make sensor_trigger_set() use both INT1 & INT2 independently?

Related