Is LSM303AGR DRDY signal mandatory to use Linux 4.14 ST driver?
Hello,
We are encountering an issue using magnetometer function of a LSM303AGR.
I2C line is OK, we can read WhoAmI register of both accelerometer and magnetometer using low level I2C functions. So we can retrieve accelerometer data without any problem using ST Linux Driver (kernel version 4.14).
Problems appears when this driver try to probe the magnetometer part, failing with this message:
[ 2.832446] iio iio:device1: DRDY on pdata not valid.
[ 2.838107] st-magn-i2c: probe of 3-001e failed with error -22
On our design, DRDY is indeed not connected.
According Linux documentation about device tree, "st,drdy-int-pin" DTS property is optional and driver may work without it (so it's absent in our DTS).
So here's my 2 questions:
- Can we consult magnetometer without taking care of DRDY signal, and what are the risks?
- Can we configure driver in order to do not use DRDY signal?
Thanks
Sylvain
