linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ChromeOS Embedded Controller charge control driver
@ 2024-05-28 20:04 Thomas Weißschuh
  2024-05-28 20:04 ` [PATCH v2 1/3] platform/chrome: Update binary interface for EC-based charge control Thomas Weißschuh
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Thomas Weißschuh @ 2024-05-28 20:04 UTC (permalink / raw)
  To: Benson Leung, Guenter Roeck, Sebastian Reichel, Lee Jones,
	Thomas Weißschuh
  Cc: chrome-platform, linux-kernel, linux-pm, Mario Limonciello,
	Dustin Howett, Stephen Horvath, Rajas Paranjpe,
	Thomas Weißschuh

Add a power supply driver that supports charge thresholds and behaviour
configuration.

This is a complete rework of
"platform/chrome: cros_ec_framework_laptop: new driver" [0], which used
Framework specific EC commands.

The driver propsed in this series only uses upstream CrOS functionality.

Tested on a Framework 13 AMD, Firmware 3.05.

[0] https://lore.kernel.org/lkml/20240505-cros_ec-framework-v1-0-402662d6276b@weissschuh.net/

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Accept "0" as charge_start_threshold
- Don't include linux/kernel.h
- Only bind to the first found battery
- Import EC_CMD_CHARGE_CONTROL v3 headers
- Add support for v1 and v3 commands
- Sort mfd cell entry alphabetically
- Link to v1: https://lore.kernel.org/r/20240519-cros_ec-charge-control-v1-0-baf305dc79b8@weissschuh.net

---
Thomas Weißschuh (3):
      platform/chrome: Update binary interface for EC-based charge control
      power: supply: add ChromeOS EC based charge control driver
      mfd: cros_ec: Register charge control subdevice

 MAINTAINERS                                    |   6 +
 drivers/mfd/cros_ec_dev.c                      |   1 +
 drivers/power/supply/Kconfig                   |  12 +
 drivers/power/supply/Makefile                  |   1 +
 drivers/power/supply/cros_charge-control.c     | 353 +++++++++++++++++++++++++
 include/linux/platform_data/cros_ec_commands.h |  49 +++-
 6 files changed, 420 insertions(+), 2 deletions(-)
---
base-commit: e0cce98fe279b64f4a7d81b7f5c3a23d80b92fbc
change-id: 20240506-cros_ec-charge-control-685617e8ed87

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-06-14  9:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28 20:04 [PATCH v2 0/3] ChromeOS Embedded Controller charge control driver Thomas Weißschuh
2024-05-28 20:04 ` [PATCH v2 1/3] platform/chrome: Update binary interface for EC-based charge control Thomas Weißschuh
2024-06-03  1:38   ` Tzung-Bi Shih
2024-05-28 20:04 ` [PATCH v2 2/3] power: supply: add ChromeOS EC based charge control driver Thomas Weißschuh
2024-06-05 22:14   ` Sebastian Reichel
2024-05-28 20:04 ` [PATCH v2 3/3] mfd: cros_ec: Register charge control subdevice Thomas Weißschuh
2024-05-31 15:50   ` (subset) " Lee Jones
2024-06-14  9:03   ` Lee Jones
2024-06-02 23:40 ` [PATCH v2 0/3] ChromeOS Embedded Controller charge control driver Dustin Howett
2024-06-03 20:59   ` Thomas Weißschuh
2024-06-05  1:27     ` Dustin Howett
2024-06-05  9:33       ` Thomas Weißschuh
2024-06-05 20:32         ` Mario Limonciello
2024-06-06  6:25           ` Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).