linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] Driver for ami305 magnetometer
@ 2009-11-12  7:44 Samu Onkalo
  2009-11-12  7:44 ` [RFC PATCH 1/1] AMI305 magnetometer driver Samu Onkalo
  0 siblings, 1 reply; 4+ messages in thread
From: Samu Onkalo @ 2009-11-12  7:44 UTC (permalink / raw)
  To: linux-input, lm-sensors, linux-kernel; +Cc: Samu Onkalo

This patch provides driver for two sw compatible 3 axis magnetometer chips
(AMI305 / AK8974). 
Driver provides coordinates as polled input device.
Chip can provide interrupt when the measurement result is ready, but
this feature is not used. Instead, new measurement is started at polling
event frequency. This method allows more flexible measurement interval.
Activity level at kernel side is about the same in both interrupt and polling
based methods. Furhtermore, this eliminate need to use interrupt line at HW
level. 

Chip is powered on when the polled device is opened and powered down when the
device is closed. Axes can be remapped via platform data. 

sysfs interface:
selftest - Perform chip specific selftest as specified by manufacturer
active - returns chip power state: ON or OFF
fuzz - adjust input system "fuzziness" parameter

Patch is applicable to Dmitry Torokhov's input tree - next branch. 
This tree was selected since patch requires a change to polled
input device which is allready in that tree (open / close methods).

Samu Onkalo (1):
  AMI305 magnetometer driver

 drivers/misc/Kconfig       |   11 +
 drivers/misc/Makefile      |    1 +
 drivers/misc/ami305.c      |  644 ++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/ami305.h |   22 ++
 4 files changed, 678 insertions(+), 0 deletions(-)
 create mode 100644 drivers/misc/ami305.c
 create mode 100644 include/linux/i2c/ami305.h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-19  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12  7:44 [RFC PATCH 0/1] Driver for ami305 magnetometer Samu Onkalo
2009-11-12  7:44 ` [RFC PATCH 1/1] AMI305 magnetometer driver Samu Onkalo
2009-11-12 12:05   ` Jonathan Cameron
2009-11-19  6:56   ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).