[PATCH 0/2] power: supply: Add battery and AC drivers for Surface devices

From: Maximilian Luz
Date: Mon Mar 08 2021 - 19:06:40 EST


This series provides battery and AC drivers for Microsoft Surface
devices, where this information is provided via an embedded controller
(the Surface System Aggregator Module, SSAM) instead of the usual ACPI
interface.

Specifically, 7th generation Surface devices, i.e. Surface Pro 7,
Surface Book 3, Surface Laptop 3, as well as the Surface Laptop Go use
this new interface.

Note: This series depends on the

platform/surface: Add Surface Aggregator device registry

series. More specifically patch

platform/surface: Set up Surface Aggregator device registry

The full series has been merged into the for-next branch of the
platform-drivers-x86 tree [1]. The commit in question can be found at
[2].

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=for-next
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=for-next&id=fc622b3d36e6d91330fb21506b9ad1e3206a4dde

Maximilian Luz (2):
power: supply: Add battery driver for Surface Aggregator Module
power: supply: Add AC driver for Surface Aggregator Module

MAINTAINERS | 8 +
drivers/power/supply/Kconfig | 32 +
drivers/power/supply/Makefile | 2 +
drivers/power/supply/surface_battery.c | 901 +++++++++++++++++++++++++
drivers/power/supply/surface_charger.c | 296 ++++++++
5 files changed, 1239 insertions(+)
create mode 100644 drivers/power/supply/surface_battery.c
create mode 100644 drivers/power/supply/surface_charger.c

--
2.30.1