linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add support for cros-ec-sensors
@ 2016-07-20  9:22 Enric Balletbo i Serra
  2016-07-20  9:22 ` [PATCH v2 1/4] iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub Enric Balletbo i Serra
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Enric Balletbo i Serra @ 2016-07-20  9:22 UTC (permalink / raw)
  To: linux-kernel, linux-iio
  Cc: Olof Johansson, Lee Jones, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler, Guenter Roeck,
	Gwendal Grignou

Hi,

This is the second patchset to add support for the sensors behind the ChromeOS
Embedded Controller.

As Jonathan pointed in his review of v1 some patches in the first version were
more a RFC, so I decided to split the series in two, once this is ok I'll start
working on the second one.

This second version has only the patches to support common functions and 3d
contiguous sensors like Accelerometers, Gyroscope and Magnetometer that are
presented by the ChromeOS EC Sensor hub. The patches were tested on an Oak board.

The code was checked out from the ChromeOS v3.18 tree and forward ported to
mainline solving all the conflicts and build issues. I splitted the code in
single patches that have sense by themselves in order to avoid the chances
to fail.

Note that the patches depends on this [1] to apply and work.

[1] https://lkml.org/lkml/2016/7/1/188

Waiting for your reviews and feedback.

Changes since v1 (requested by Peter Meerwald-Stadler and Jonhatan Cameron)
  - Check kernel-doc documentation and 
  - Bring some patches together.
  - Fix some spelling mistakes.
  - Include ABI documentation.
  - Be more careful with buffer sizes (sprintf -> snprintf)
  - Add cros_ec_sensors prefix to all function.
  - Check return values on some functions.

Best regards,

Enric Balletbo i Serra (3):
  iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC
    Sensor Hub.
  iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver
  platform/chrome: cros_ec_dev - Register cros-ec sensors

Vincent Palatin (1):
  platform/chrome: Introduce a new function to check EC features.

 Documentation/ABI/testing/sysfs-bus-iio-cros-ec    |  25 +
 drivers/iio/common/Kconfig                         |   1 +
 drivers/iio/common/Makefile                        |   1 +
 drivers/iio/common/cros_ec_sensors/Kconfig         |  22 +
 drivers/iio/common/cros_ec_sensors/Makefile        |   6 +
 .../iio/common/cros_ec_sensors/cros_ec_sensors.c   | 327 +++++++++++++
 .../common/cros_ec_sensors/cros_ec_sensors_core.c  | 505 +++++++++++++++++++++
 .../common/cros_ec_sensors/cros_ec_sensors_core.h  | 177 ++++++++
 drivers/platform/chrome/cros_ec_dev.c              | 159 +++++++
 include/linux/mfd/cros_ec.h                        |  10 +
 include/linux/mfd/cros_ec_commands.h               | 183 +++++++-
 11 files changed, 1411 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-cros-ec
 create mode 100644 drivers/iio/common/cros_ec_sensors/Kconfig
 create mode 100644 drivers/iio/common/cros_ec_sensors/Makefile
 create mode 100644 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
 create mode 100644 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
 create mode 100644 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h

-- 
2.1.0

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

end of thread, other threads:[~2016-07-28 12:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-20  9:22 [PATCH v2 0/4] Add support for cros-ec-sensors Enric Balletbo i Serra
2016-07-20  9:22 ` [PATCH v2 1/4] iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub Enric Balletbo i Serra
2016-07-24 13:51   ` Jonathan Cameron
2016-07-25  8:38     ` Enric Balletbo Serra
2016-07-26 21:05       ` Jonathan Cameron
2016-07-20  9:22 ` [PATCH v2 2/4] iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver Enric Balletbo i Serra
2016-07-24 13:57   ` Jonathan Cameron
2016-07-25 17:25   ` Guenter Roeck
2016-07-28 12:50     ` Enric Balletbo Serra
2016-07-20  9:22 ` [PATCH v2 3/4] platform/chrome: Introduce a new function to check EC features Enric Balletbo i Serra
2016-07-20  9:22 ` [PATCH v2 4/4] platform/chrome: cros_ec_dev - Register cros-ec sensors Enric Balletbo i Serra

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