<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/include/linux/lis3lv02d.h, branch v3.8.8</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>lis3lv02d: make regulator API usage unconditional</title>
<updated>2011-11-01T00:30:52+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-11-01T00:11:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ec400c9fab99d16a491cea17d27d0c6a5780b97c'/>
<id>ec400c9fab99d16a491cea17d27d0c6a5780b97c</id>
<content type='text'>
The regulator API contains a range of features for stubbing itself out
when not in use and for transparently restricting the actual effect of
regulator API calls where they can't be supported on a particular system
so that drivers don't need to individually implement this.  Simplify the
driver slightly by making use of this idiom.

The only in tree user is ecovec24 which does not use the regulator API.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Cc: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The regulator API contains a range of features for stubbing itself out
when not in use and for transparently restricting the actual effect of
regulator API calls where they can't be supported on a particular system
so that drivers don't need to individually implement this.  Simplify the
driver slightly by making use of this idiom.

The only in tree user is ecovec24 which does not use the regulator API.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Cc: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: lis3: Short explanations of platform data fields</title>
<updated>2010-10-25T21:11:39+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2010-10-23T13:39:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=83af1bd81f7b7fb31a681b0c80790866f190d23a'/>
<id>83af1bd81f7b7fb31a681b0c80790866f190d23a</id>
<content type='text'>
Short documentation at kernel doc format.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Short documentation at kernel doc format.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: lis3: use block read to access data registers</title>
<updated>2010-10-25T21:11:39+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2010-10-22T11:57:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f10a5407b58603fb3b084d7fbdbd50f47d010c82'/>
<id>f10a5407b58603fb3b084d7fbdbd50f47d010c82</id>
<content type='text'>
Add optional blockread function to interface driver. If available
the chip driver uses it for data register access. For 12 bit device
it reads 6 bytes to get 3*16bit data. For 8 bit device it reads out
5 bytes since every second byte is dummy.
This optimizes bus usage and reduces number of operations and
interrupts needed for one data update.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add optional blockread function to interface driver. If available
the chip driver uses it for data register access. For 12 bit device
it reads 6 bytes to get 3*16bit data. For 8 bit device it reads out
5 bytes since every second byte is dummy.
This optimizes bus usage and reduces number of operations and
interrupts needed for one data update.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: lis3: New parameters to platform data</title>
<updated>2010-10-25T21:11:38+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2010-10-22T11:57:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cc23aa1ce2631b2fe1e3fba82ee444460f5ee3b7'/>
<id>cc23aa1ce2631b2fe1e3fba82ee444460f5ee3b7</id>
<content type='text'>
Added default output data rate setting to platform data.
If default rate is 0, reset default value is used.
Added control for duration via platform data.
Added possibility to configure interrupts to trig on
both rising and falling edge. The lis3 WU unit can be
configured quite many ways and with some configurations it
is quite handy to get coordinate refresh when some
event trigs and when it reason goes away.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added default output data rate setting to platform data.
If default rate is 0, reset default value is used.
Added control for duration via platform data.
Added possibility to configure interrupts to trig on
both rising and falling edge. The lis3 WU unit can be
configured quite many ways and with some configurations it
is quite handy to get coordinate refresh when some
event trigs and when it reason goes away.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: lis3: regulator control</title>
<updated>2010-10-25T21:11:38+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2010-10-22T11:57:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f9deb41f91c41d9d91a24c84a555ec7fe82620da'/>
<id>f9deb41f91c41d9d91a24c84a555ec7fe82620da</id>
<content type='text'>
Based on pm_runtime control, turn lis3 regulators on and off.
Perform context save and restore on transitions.

Feature is optional and must be enabled in platform data.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on pm_runtime control, turn lis3 regulators on and off.
Perform context save and restore on transitions.

Feature is optional and must be enabled in platform data.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3: interrupt handlers for 8bit wakeup and click events</title>
<updated>2010-05-25T15:07:07+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2010-05-24T21:33:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6d94d4081048756df78444a07201156f4930fe48'/>
<id>6d94d4081048756df78444a07201156f4930fe48</id>
<content type='text'>
Content for the 8bit device threaded interrupt handlers.  Depending on the
interrupt line and chip configuration, either click or wakeup / freefall
handler is called.  In case of click, BTN_ event is sent via input device.
 In case of wakeup or freefall, input device ABS_ events are updated
immediatelly.

It is still possible to configure interrupt line 1 for fast freefall
detection and use the second line either for click or threshold based
interrupts.  Or both lines can be used for click / threshold interrupts.

Polled input device can be set to stopped state and still get coordinate
updates via input device using interrupt based method.  Polled mode and
interrupt mode can also be used parallel.

BTN_ events are remapped based on existing axis remapping information.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Content for the 8bit device threaded interrupt handlers.  Depending on the
interrupt line and chip configuration, either click or wakeup / freefall
handler is called.  In case of click, BTN_ event is sent via input device.
 In case of wakeup or freefall, input device ABS_ events are updated
immediatelly.

It is still possible to configure interrupt line 1 for fast freefall
detection and use the second line either for click or threshold based
interrupts.  Or both lines can be used for click / threshold interrupts.

Polled input device can be set to stopped state and still get coordinate
updates via input device using interrupt based method.  Polled mode and
interrupt mode can also be used parallel.

BTN_ events are remapped based on existing axis remapping information.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3: add skeletons for interrupt handlers</title>
<updated>2010-05-25T15:07:06+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2010-05-24T21:33:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=92ba4fe4b53b4fa5ac71ec4d80572348fca85796'/>
<id>92ba4fe4b53b4fa5ac71ec4d80572348fca85796</id>
<content type='text'>
Original lis3 driver didn't provide interrupt handler(s) for click or
threshold event handling.  This patch adds threaded handlers for one or
two interrupt lines for 8 bit device.  Actual content for interrupt
handling is provided in the separate patch.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Tested-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Original lis3 driver didn't provide interrupt handler(s) for click or
threshold event handling.  This patch adds threaded handlers for one or
two interrupt lines for 8 bit device.  Actual content for interrupt
handling is provided in the separate patch.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Tested-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3: introduce platform data for second ff / wu unit</title>
<updated>2010-05-25T15:07:06+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2010-05-24T21:33:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=342c5f128140d54961c435d1702eadcaba97a37a'/>
<id>342c5f128140d54961c435d1702eadcaba97a37a</id>
<content type='text'>
8 bit device has two wakeup / free fall units.  It was not possible to
configure the second unit.  This patch introduces configuration entry to
the platform data and also corresponding changes to the 8 bit setup
function.

High pass filters were enabled by default.  Patch introduces configuration
option for high pass filter cut off frequency and also possibility to
disable or enable the filter via platform data.  Since the control is a
new one and default state was filter enabled, new option is used to
disable the filter.  This way old platform data is still compatible with
the change.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Tested-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
8 bit device has two wakeup / free fall units.  It was not possible to
configure the second unit.  This patch introduces configuration entry to
the platform data and also corresponding changes to the 8 bit setup
function.

High pass filters were enabled by default.  Patch introduces configuration
option for high pass filter cut off frequency and also possibility to
disable or enable the filter via platform data.  Since the control is a
new one and default state was filter enabled, new option is used to
disable the filter.  This way old platform data is still compatible with
the change.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Tested-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3: selftest support</title>
<updated>2009-12-15T16:53:36+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2009-12-15T02:01:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2db4a76d5f3554e9e5632c8f91828313318579c8'/>
<id>2db4a76d5f3554e9e5632c8f91828313318579c8</id>
<content type='text'>
Implement selftest feature as specified by chip manufacturer.  Control:
read selftest sysfs entry

Response: "OK x y z" or "FAIL x y z"

where x, y, and z are difference between selftest mode and normal mode.
Test is passed when values are within acceptance limit values.

Acceptance limits are provided via platform data.  See chip spesifications
for acceptance limits.  If limits are not properly set, OK / FAIL decision
is meaningless.  However, userspace application can still make decision
based on the numeric x, y, z values.

Selftest is meant for HW diagnostic purposes.  It is not meant to be
called during normal use of the chip.  It may cause false interrupt
events.  Selftest mode delays polling of the normal results but it doesn't
cause wrong values.  Chip must be in static state during selftest.  Any
acceration during the test causes most probably failure.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Éric Piel &lt;Eric.Piel@tremplin-utc.net&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement selftest feature as specified by chip manufacturer.  Control:
read selftest sysfs entry

Response: "OK x y z" or "FAIL x y z"

where x, y, and z are difference between selftest mode and normal mode.
Test is passed when values are within acceptance limit values.

Acceptance limits are provided via platform data.  See chip spesifications
for acceptance limits.  If limits are not properly set, OK / FAIL decision
is meaningless.  However, userspace application can still make decision
based on the numeric x, y, z values.

Selftest is meant for HW diagnostic purposes.  It is not meant to be
called during normal use of the chip.  It may cause false interrupt
events.  Selftest mode delays polling of the normal results but it doesn't
cause wrong values.  Chip must be in static state during selftest.  Any
acceration during the test causes most probably failure.

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Éric Piel &lt;Eric.Piel@tremplin-utc.net&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3lv02d: axis remap and resource setup/release</title>
<updated>2009-12-15T16:53:35+00:00</updated>
<author>
<name>Samu Onkalo</name>
<email>samu.p.onkalo@nokia.com</email>
</author>
<published>2009-12-15T02:01:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e40d6eaa79bc9d9d347c3c51fe0c9204e9025b79'/>
<id>e40d6eaa79bc9d9d347c3c51fe0c9204e9025b79</id>
<content type='text'>
Add the possibility to remap axes via platform data.  Function pointers
for resource setup and release purposes

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc:  "Trisal, Kalhan" &lt;kalhan.trisal@intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the possibility to remap axes via platform data.  Function pointers
for resource setup and release purposes

Signed-off-by: Samu Onkalo &lt;samu.p.onkalo@nokia.com&gt;
Acked-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc:  "Trisal, Kalhan" &lt;kalhan.trisal@intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
