linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iio: mma8452: power saving features for v4.7
@ 2016-03-03  8:24 Martin Kepplinger
  2016-03-03  8:24 ` [PATCH 1/4] iio: mma8452: coding style fixes Martin Kepplinger
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Martin Kepplinger @ 2016-03-03  8:24 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw, christoph.muellner, mfuzzey
  Cc: linux-iio, linux-kernel

The accelerometers supported by mma8452 can use significantly less power if
configured accordingly. Let's make use of this:

 * add support for runtime power management
   (disabling the device after 2 seconds of inactivity), and
 * add a "power_modes" property to IIO sysfs, that offers a "low_power"
   *active* mode of operation that roughly consumes half the power of
   the default mode.

If you don't have CONFIG_PM enabled, by default nothing changes for you.

Here's how it's done and tested on MMA8653FC:

[PATCH 1/4] iio: mma8452: coding style fixes
[PATCH 2/4] iio: mma8452: avoid switching to active because of config
[PATCH 3/4] iio: mma8452: add support for runtime power management
[PATCH 4/4] iio: mma8452: add low_power mode

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

end of thread, other threads:[~2016-03-09 21:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-03  8:24 iio: mma8452: power saving features for v4.7 Martin Kepplinger
2016-03-03  8:24 ` [PATCH 1/4] iio: mma8452: coding style fixes Martin Kepplinger
2016-03-05 17:19   ` Jonathan Cameron
2016-03-03  8:24 ` [PATCH 2/4] iio: mma8452: avoid switching to active because of config change Martin Kepplinger
2016-03-05 17:23   ` Jonathan Cameron
2016-03-03  8:24 ` [PATCH 3/4] iio: mma8452: add support for runtime power management Martin Kepplinger
2016-03-06 12:59   ` Jonathan Cameron
2016-03-03  8:24 ` [PATCH 4/4] iio: mma8452: add low_power mode Martin Kepplinger
2016-03-05 17:40   ` Jonathan Cameron
2016-03-06 15:49     ` Martin Kepplinger
2016-03-09 21:17       ` Jonathan Cameron

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