platform: arm64: Add Acer Aspire 1 embedded controller driver
authorNikita Travkin <nikita@trvn.ru>
Fri, 15 Mar 2024 13:51:17 +0000 (18:51 +0500)
committerHans de Goede <hdegoede@redhat.com>
Mon, 25 Mar 2024 14:49:01 +0000 (15:49 +0100)
commit2b3efb7c515111eaa009f014b16bce8417fb2828
tree44316187fda222bf5ed9539dd1b8e0f4193e32dd
parent363c8aea25728604537b170a1cc24e2f46844896
platform: arm64: Add Acer Aspire 1 embedded controller driver

Acer Aspire 1 is a Snapdragon 7c based laptop. It uses an embedded
controller to perform a set of various functions, such as:

- Battery and charger monitoring;
- Keyboard layout control (i.e. fn_lock settings);
- USB Type-C DP alt mode HPD notifications;
- Laptop lid status.

Unfortunately, while all this functionality is implemented in ACPI, it's
currently not possible to use ACPI to boot Linux on such Qualcomm
devices. To allow Linux to still support the features provided by EC,
this driver reimplments the relevant ACPI parts. This allows us to boot
the laptop with Device Tree and retain all the features.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240315-aspire1-ec-v5-3-f93381deff39@trvn.ru
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
MAINTAINERS
drivers/platform/arm64/Kconfig
drivers/platform/arm64/Makefile
drivers/platform/arm64/acer-aspire1-ec.c [new file with mode: 0644]