platform/chrome: Add ChromeOS ACPI device driver
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 13 May 2022 07:52:09 +0000 (12:52 +0500)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 13 May 2022 11:42:30 +0000 (19:42 +0800)
commit0a4cad9c11ad46662ede48d94f08ecb7cd9f6916
tree796768b32b17c55788f7f5c920ed2c4bc8427c0d
parent7464ff8bf2d762251b9537863db0e1caf9b0e402
platform/chrome: Add ChromeOS ACPI device driver

The x86 Chromebooks have the ChromeOS ACPI device. This driver attaches
to the ChromeOS ACPI device and exports the values reported by ACPI in a
sysfs directory. This data isn't present in ACPI tables when read
through ACPI tools, hence a driver is needed to do it. The driver gets
data from firmware using the ACPI component of the kernel. The ACPI values
are presented in string form (numbers as decimal values) or binary
blobs, and can be accessed as the contents of the appropriate read only
files in the standard ACPI device's sysfs directory tree. This data is
consumed by the ChromeOS user space.

Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Co-developed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/Yn4OKYrtV35Dv+nd@debian-BULLSEYE-live-builder-AMD64
Documentation/ABI/testing/sysfs-driver-chromeos-acpi [new file with mode: 0644]
Documentation/firmware-guide/acpi/chromeos-acpi-device.rst [new file with mode: 0644]
Documentation/firmware-guide/acpi/index.rst
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/chromeos_acpi.c [new file with mode: 0644]