LIS3MDL Linux Driver support
Hi Team,
I am trying to add support for magnetometer LIS3MDL module using the following linux driver https://github.com/STMicroelectronics/STMems_Linux_IIO_drivers/tree/linux-4.9.y-gh/drivers/iio/magnetometer. If I add interrupt in device tree the module is not registering the iio device.
lis3mdl@1c {
compatible = "st,lis3mdl";
reg = <0x1c>;
interrupt-parent = <&gpio>;
interrupts = <65 IRQ_TYPE_LEVEL_HIGH>;
vdd-supply = <&p3449_vdd_1v8>;
vddio-supply = <&p3449_vdd_1v8>;
};
I got the folloiwng error.
[ 5.150951] iio iio:device10: interrupts active high level
[ 5.198445] iio iio:device10: failed to request trigger IRQ.
If I remove the interrupt from the devicetree the device is getting registered but I am not able to use interrupt. Is there any other way to use interrupt in magnetometer ?
Can you please help me to solve this issue,
Regards,
Ajith.
