linux/drivers/platform/chrome
Nick Crews 1210d1e6ba platform/chrome: wilco_ec: Add telemetry char device interface
The Wilco Embedded Controller is able to send telemetry data
which is useful for enterprise applications. A daemon running on
the OS sends a command to the EC via a write() to a char device,
and can read the response with a read(). The write() request is
verified by the driver to ensure that it is performing only one
of the whitelisted commands, and that no extraneous data is
being transmitted to the EC. The response is passed directly
back to the reader with no modification.

The character device will appear as /dev/wilco_telemN, where N
is some small non-negative integer, starting with 0. Only one
process may have the file descriptor open at a time. The calling
userspace program needs to keep the device file descriptor open
between the calls to write() and read() in order to preserve the
response. Up to 32 bytes will be available for reading.

For testing purposes, try requesting the EC's firmware build
date, by sending the WILCO_EC_TELEM_GET_VERSION command with
argument index=3. i.e. write [0x38, 0x00, 0x03]
to the device node. An ASCII string of the build date is
returned.

Signed-off-by: Nick Crews <ncrews@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-06-05 10:14:50 +02:00
..
wilco_ec platform/chrome: wilco_ec: Add telemetry char device interface 2019-06-05 10:14:50 +02:00
chromeos_laptop.c platform/chrome: chromeos_laptop: use pci_dev_id() helper 2019-04-29 16:13:06 -05:00
chromeos_pstore.c platform/chrome: cromeos_pstore: switch to SPDX identifier 2019-02-01 10:13:05 +01:00
chromeos_tbmc.c platform/chrome: chromeos_tbmc - Remove unneeded const 2018-10-09 22:40:12 -07:00
cros_ec_debugfs.c chrome platform changes for v5.2 2019-05-12 07:00:21 -04:00
cros_ec_i2c.c platform/chrome: cros_ec_i2c: switch to SPDX identifier 2019-02-01 10:13:06 +01:00
cros_ec_ishtp.c platform/chrome: Add ChromeOS EC ISHTP driver 2019-05-20 10:18:10 +02:00
cros_ec_lightbar.c platform/chrome: cros_ec_lightbar: remove pr_fmt() define 2019-02-01 10:13:06 +01:00
cros_ec_lpc_mec.c platform/chrome: cros_ec: Remove cros_ec dependency in lpc_mec 2019-02-11 10:07:40 +01:00
cros_ec_lpc_mec.h platform/chrome: cros_ec: Remove cros_ec dependency in lpc_mec 2019-02-11 10:07:40 +01:00
cros_ec_lpc_reg.c platform/chrome: cros_ec: Remove cros_ec dependency in lpc_mec 2019-02-11 10:07:40 +01:00
cros_ec_lpc_reg.h platform/chrome: cros_ec_lpc: switch to SPDX identifier 2019-02-01 10:13:06 +01:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc: switch to SPDX identifier 2019-02-01 10:13:06 +01:00
cros_ec_proto.c - Core Frameworks 2019-05-14 10:39:08 -07:00
cros_ec_rpmsg.c platform/chrome: cros_ec: Add EC host command support using rpmsg 2019-04-16 11:00:36 +02:00
cros_ec_spi.c platform/chrome: cros_ec_spi: Request the SPI thread be realtime 2019-05-24 11:35:30 +02:00
cros_ec_sysfs.c platform/chrome: cros_ec_sysfs: remove pr_fmt() define 2019-02-01 10:13:06 +01:00
cros_ec_trace.c platform/chrome: cros_ec_proto: Add trace event to trace EC commands 2019-04-17 10:29:34 +02:00
cros_ec_trace.h platform/chrome: cros_ec_proto: Add trace event to trace EC commands 2019-04-17 10:29:34 +02:00
cros_ec_vbc.c platform/chrome: cros_ec_vbc: switch to SPDX identifier 2019-02-01 10:13:06 +01:00
cros_kbd_led_backlight.c platform/chrome: cros_kbd_led_backlight: switch to SPDX identifier 2019-02-01 10:13:06 +01:00
cros_usbpd_logger.c platform/chrome: Add CrOS USB PD logging driver 2019-04-15 12:13:24 +02:00
Kconfig platform/chrome: Add ChromeOS EC ISHTP driver 2019-05-20 10:18:10 +02:00
Makefile platform/chrome: Add ChromeOS EC ISHTP driver 2019-05-20 10:18:10 +02:00