mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Add a driver for the ChromeOS screen privacy sensor (HPS)
@ 2022-02-02  4:49 Sami Kyöstilä
  2022-02-02  4:49 ` [PATCH v2 1/1] drivers/misc: add a driver for HPS Sami Kyöstilä
  0 siblings, 1 reply; 4+ messages in thread
From: Sami Kyöstilä @ 2022-02-02  4:49 UTC (permalink / raw)
  To: LKML; +Cc: dtor, gregkh, arnd, evanbenn, Sami Kyöstilä


This series adds a driver for the ChromeOS screen privacy 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 v2:
- Removed custom ioctl interface.
- Reworked to use miscdev.

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

 MAINTAINERS            |   6 ++
 drivers/misc/Kconfig   |  10 +++
 drivers/misc/Makefile  |   1 +
 drivers/misc/hps-i2c.c | 184 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 201 insertions(+)
 create mode 100644 drivers/misc/hps-i2c.c

-- 
2.35.0.rc2.247.g8bbb082509-goog


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

end of thread, other threads:[~2022-02-07  1:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-02  4:49 [PATCH v2 0/1] Add a driver for the ChromeOS screen privacy sensor (HPS) Sami Kyöstilä
2022-02-02  4:49 ` [PATCH v2 1/1] drivers/misc: add a driver for HPS Sami Kyöstilä
2022-02-04 15:27   ` Greg KH
2022-02-07  1:08     ` Sami Kyostila

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome