[PATCH 0/2] Add a driver for the ChromeOS snooping protection sensor (HPS)

From: Sami Kyöstilä
Date: Thu Jan 27 2022 - 03:36:20 EST



This series adds a driver for the ChromeOS snooping protection 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 send and receive messages to the sensor. The driver
automatically turns power off to the sensor unless a process is

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


Sami Kyöstilä (2):
drivers/misc: add a driver for HPS
drivers/misc: add transfer ioctl for HPS

MAINTAINERS | 7 +
drivers/misc/Kconfig | 10 ++
drivers/misc/Makefile | 1 +
drivers/misc/hps-i2c.c | 304 +++++++++++++++++++++++++++++++++++++++
include/uapi/linux/hps.h | 20 +++
5 files changed, 342 insertions(+)
create mode 100644 drivers/misc/hps-i2c.c
create mode 100644 include/uapi/linux/hps.h

--
2.35.0.rc0.227.g00780c9af4-goog