* st_magn_i2c DRDY on INT1 not available error
@ 2015-07-14 3:26 Joo Aun Saw
2015-07-14 6:39 ` Joo Aun Saw
0 siblings, 1 reply; 2+ messages in thread
From: Joo Aun Saw @ 2015-07-14 3:26 UTC (permalink / raw)
To: kernelnewbies
Hi,
I have an lsm303dlhc chip with accelerometer and magnetometer sensors.
I'm having difficulty getting the st_magn_i2c driver to work. I get
this error message:
iio iio:device0: DRDY on INT1 not available.
st-magn-i2c: probe of 1-001e failed with error -22
This is my device tree fragment:
fragment at 0 {
target = <&i2c_arm>;
__overlay__ {
#address-cells = <0x1>;
#size-cells = <0x0>;
status = "okay";
lsm303dlhc-magn at 1e {
compatible = "st,lsm303dlhc-magn";
reg = <0x1e>;
status = "okay";
st,drdy-int-pin = <1>;
};
};
};
I'm running kernel 3.18.11. The accelerometer driver works fine though.
What am I doing wrong? Any help would be greatly appreciated.
Thanks.
Joo
^ permalink raw reply [flat|nested] 2+ messages in thread
* st_magn_i2c DRDY on INT1 not available error
2015-07-14 3:26 st_magn_i2c DRDY on INT1 not available error Joo Aun Saw
@ 2015-07-14 6:39 ` Joo Aun Saw
0 siblings, 0 replies; 2+ messages in thread
From: Joo Aun Saw @ 2015-07-14 6:39 UTC (permalink / raw)
To: kernelnewbies
To answer my own question in case someone else is facing the same problem.
The driver that came with kernel 3.18 is broken. The driver assumes
the magnetometer has a configurable DRDY interrupt when in fact it
does not.
To fix the problem, backport the st sensors iio drivers from kernel 4.2-rc2.
Cheers,
Joo.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-14 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 3:26 st_magn_i2c DRDY on INT1 not available error Joo Aun Saw
2015-07-14 6:39 ` Joo Aun Saw
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.