From: Dan Callaghan <dcallagh@chromium.org>
To: chrome-platform@lists.linux.dev
Cc: LKML <linux-kernel@vger.kernel.org>,
"Sami Kyöstilä" <skyostil@chromium.org>,
"Benson Leung" <bleung@chromium.org>,
"Tzung-Bi Shih" <tzungbi@kernel.org>,
"Dan Callaghan" <dcallagh@chromium.org>
Subject: [PATCH v5 0/1] Add a driver for the ChromeOS human presence sensor (HPS)
Date: Wed, 12 Oct 2022 15:09:17 +1100 [thread overview]
Message-ID: <20221012040918.272582-1-dcallagh@chromium.org> (raw)
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 v5:
- Updated MAINTAINERS.
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
base-commit: 8edd2752b0aa498b3a61f3caee8f79f7e0567fad
--
2.38.0.rc1.362.ged0d419d3c-goog
next reply other threads:[~2022-10-12 4:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-12 4:09 Dan Callaghan [this message]
2022-10-12 4:09 ` [PATCH v5 1/1] platform/chrome: add a driver for HPS Dan Callaghan
2022-10-12 8:46 ` Tzung-Bi Shih
2022-10-13 4:29 ` Dan Callaghan
2022-10-13 5:49 ` Tzung-Bi Shih
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221012040918.272582-1-dcallagh@chromium.org \
--to=dcallagh@chromium.org \
--cc=bleung@chromium.org \
--cc=chrome-platform@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=skyostil@chromium.org \
--cc=tzungbi@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®