linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch 0/4] IndustrialIO subsystem (ADCs, accelerometers etc)
@ 2008-07-23 17:00 Jonathan Cameron
  2008-07-23 17:08 ` [Patch 1/4] Industrialio Core Jonathan Cameron
                   ` (9 more replies)
  0 siblings, 10 replies; 36+ messages in thread
From: Jonathan Cameron @ 2008-07-23 17:00 UTC (permalink / raw)
  To: LKML, spi-devel-general, LM Sensors
  Cc: Jean Delvare, Dmitry Torokhov, Hans J. Koch, hmh, David Brownell,
	mgross, Ben Nizette, Anton Vorontsov

Dear All,

The need for an industrialio subsystem was discussed in
http://lkml.org/lkml/2008/5/20/135

Firstly thanks to all the people who have contributed to the discussion
of this in the past.

In brief the intention is provide a kernel subsystem directed towards the
handling on sensors (and later related output devices) such as ADC's,
accelerometers and many others.

Key features of the subsystem include:

* Provision of sysfs access for direct reading from devices (similar to hwmon
  but without the buffering / update rate restrictions)

* Provision of chrdevs through which events may be passed to userspace in a
  similar fashion to the input subsystem.  These events may be anything from
  hardware thresholds set on the sensor itself to sw / hw ring buffer event
  notifications (50% full etc).

* Provision of access via chrdevs to hardware ring buffers on devices that
  provide them.

* Software ring buffer support to allow semi regular capture of data form the
  device.  Typically this will be driven from either datardy events, or from
  a periodic timer interrupt (to this end a very simple wrapper for periodic
  RTC's is included. This will move to more generic timer interfaces as and when
  they become available.  For now available rtc's must be registered with the
  subsystem via the industrialio_register_ptimer function form within a board
  init.

* A set of sample drivers illustrating the main 'classes' of device. By classes
  I really mean devices that are interfaced with in a similar way.

The subsystem is now in a functional state with a small set of drivers:

Max1363 (supports numerous Maxim i2c ADC's) (tested with max1363 and max1238 chips)
   - Uses a periodic timer to provide ring buffer mode.
   - All reads form these devices are scan modes so direct single element access
     is not provided.
   - Monitor mode on max1363 is not yet supported (need to do a bit debugging of
     the board I have so as to be able to test this).

ST LIS3L02DQ - SPI accelerometer.
   - Uses a datardy interrupt to driver a software ring buffer.
   - Most functionality of this device is supported.

VTI SCA3000 (tested with an e05)
   - Hardware ring buffer.

More drivers in preparation.

Next focus will be on cleaning up / implementing a more generic timer framework
and allowing the system to partly run if not all dependencies are met 
(particularly availability of timers).

An initial set of patches will be attached to this thread shortly.

--
Jonathan Cameron

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

end of thread, other threads:[~2008-07-25 11:28 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-23 17:00 [Patch 0/4] IndustrialIO subsystem (ADCs, accelerometers etc) Jonathan Cameron
2008-07-23 17:08 ` [Patch 1/4] Industrialio Core Jonathan Cameron
2008-07-23 18:31   ` Anton Vorontsov
2008-07-24 10:12     ` [spi-devel-general] " Jonathan Cameron
2008-07-23 19:42   ` Ben Dooks
2008-07-24 10:33     ` Jonathan Cameron
2008-07-24  9:01   ` Eric Piel
2008-07-24 11:56     ` [spi-devel-general] " Jonathan Cameron
2008-07-23 17:11 ` [Patch 2/4] Max1363 (and similar) ADCs Jonathan Cameron
2008-07-23 17:14 ` [Patch 3/4] ST LIS3L02DQ accelerometer Jonathan Cameron
2008-07-23 17:07   ` Alan Cox
2008-07-23 17:44     ` Jonathan Cameron
2008-07-23 17:17 ` [Patch 4/4] VTI SCA3000 Series accelerometer driver Jonathan Cameron
2008-07-23 17:48 ` [Patch 0/4] IndustrialIO subsystem (ADCs, accelerometers etc) Henrique de Moraes Holschuh
2008-07-24  9:44   ` Eric Piel
2008-07-24 10:08     ` Ben Dooks
2008-07-24 12:20       ` [spi-devel-general] " Jonathan Cameron
2008-07-24 12:13     ` Jonathan Cameron
2008-07-24 12:37       ` Eric Piel
2008-07-24 12:45         ` Jonathan Cameron
2008-07-24 13:26           ` Dmitry Torokhov
2008-07-24 13:39             ` Jonathan Cameron
2008-07-23 18:36 ` David Brownell
2008-07-23 19:19 ` [spi-devel-general] " Ben Dooks
2008-07-24  7:41   ` Hans J. Koch
2008-07-24  9:19     ` Alan Cox
2008-07-24 12:28       ` Jonathan Cameron
2008-07-24 10:01     ` Ben Dooks
2008-07-24 15:38       ` Hans J. Koch
2008-07-24 16:11         ` Jonathan Cameron
2008-07-24 12:32   ` Jonathan Cameron
2008-07-23 19:33 ` Ben Dooks
2008-07-24 17:57 ` [Patch 5/4] IndustrialIO subsystem very early cut of documentation + userspace demo Jonathan Cameron
2008-07-24 22:25 ` [Patch 0/4] IndustrialIO subsystem (ADCs, accelerometers etc) Jan Engelhardt
2008-07-25 11:12   ` Jonathan Cameron
2008-07-25 11:28     ` Anton Vorontsov

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).