On 05/15/2013 10:44 AM, Denis CIOCCA wrote:
This patch adds a generic pressure driver for STMicroelectronics
pressures, currently it supports: LPS331AP.
Signed-off-by: Denis Ciocca<denis.ciocca@xxxxxx>
Hi Denis,
I have tested your driver with Samsung Exynos4x12 PQ/M0 board and in
general it works fine, except of one issue.
Triggers can be used only when INT1 interrupt source is exploited.
On the test board I am using there is INT2 interrupt source routed to
the CPU, and I had to change ST_PRESS_1_DRDY_IRQ_MASK constant defined
in the st_pressure_core.c file to 0x20, to instruct the device to
to generate the 'data ready' interrupts on the INT2 pin.
I think that information about used interrupt source should be passed
through platform_data and/or of_tree. For the of_tree there is ready
solution available in my patch for this barometer.
Thanks,
Jacek
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html