Skip to content

Add a driver for the ChromeOS human presence sensor (HPS)

Sami Kyöstilä lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 0 repliesNew
  2. v31 patch 4 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches12 repliesSuperseded

Changes in v4 from the cover letter

- Simplified open/release pm logic.
- Renamed device to "cros-hps".
- Stylistics cleanups.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1platform/chrome: add a driver for HPSMAINTAINERS drivers/platform/chrome/Kconfig drivers/platform/chrome/Makefile +1 more+168 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/1] Add a driver for the ChromeOS human presence sensor (HPS)

This series adds a driver for the ChromeOS human presence sensor (a.k.a. HPS) device, attached on the I2C bus. The sensor is a hardware-isolated module which reports a high-level presence signal, e.g., whether there is person in front of the computer or not.

The driver exposes the device to userspace as a character device, which can be used to control the power state of the device. The driver automatically turns power off to the sensor unless a process is using it.

More information about HPS, its firmware and communication protocol can be found at
https://chromium.googlesource.com/chromiumos/platform/hps-firmware.

Changes in v4:
- Simplified open/release pm logic.
- Renamed device to "cros-hps".
- Stylistics cleanups.

Changes in v3:
- Moved from drivers/misc to drivers/platform/chrome.

Changes in v2:
- Removed custom ioctl interface.
- Reworked to use miscdev.

Sami Kyöstilä (1):
platform/chrome: add a driver for HPS

 MAINTAINERS                            |   6 +
 drivers/platform/chrome/Kconfig        |  10 ++
 drivers/platform/chrome/Makefile       |   1 +
 drivers/platform/chrome/cros_hps_i2c.c | 151 +++++++++++++++++++++++++
 4 files changed, 168 insertions(+)
 create mode 100644 drivers/platform/chrome/cros_hps_i2c.c
Signature · 1 line
2.35.1.265.g69c8d7142f-goog