mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Add Apple Silicon SMC power driver
@ 2026-01-05 12:56 Michael Reeves via B4 Relay
  2026-01-05 12:56 ` [PATCH 1/2] power: supply: Add macsmc-power driver for Apple Silicon Michael Reeves via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-01-05 12:56 UTC (permalink / raw)
  To: Sebastian Reichel, Sven Peter, Janne Grunau, Neal Gompa, Lee Jones
  Cc: linux-kernel, linux-pm, asahi, linux-arm-kernel, Michael Reeves,
	Hector Martin

This series adds a power supply driver for the Apple SMC found on
Apple Silicon devices. This allows the kernel to report AC status,
battery charging status, and power metrics, and modify the charging
behaviour.

The first patch adds the driver itself, and the second patch wires it
up to the MFD core.

The driver is based on an original out-of-tree implementation by
Hector Martin. It has been refactored for upstream inclusion, 
including support for newer SMC firmwares, devices without batteries,
dynamic property detection and improved state management.

Tested on: Apple M3 (MacBook Air, J613)

Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
Michael Reeves (2):
      power: supply: Add macsmc-power driver for Apple Silicon
      mfd: macsmc: Wire up Apple SMC power driver

 MAINTAINERS                         |   1 +
 drivers/mfd/macsmc.c                |   1 +
 drivers/power/supply/Kconfig        |  11 +
 drivers/power/supply/Makefile       |   1 +
 drivers/power/supply/macsmc-power.c | 872 ++++++++++++++++++++++++++++++++++++
 5 files changed, 886 insertions(+)
---
base-commit: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
change-id: 20260105-b4-macsmc-power-d017cc7f53ac

Best regards,
-- 
Michael Reeves <michael.reeves077@gmail.com>



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

end of thread, other threads:[~2026-01-07 14:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-05 12:56 [PATCH 0/2] Add Apple Silicon SMC power driver Michael Reeves via B4 Relay
2026-01-05 12:56 ` [PATCH 1/2] power: supply: Add macsmc-power driver for Apple Silicon Michael Reeves via B4 Relay
2026-01-07 14:35   ` Nick Chan
2026-01-05 12:56 ` [PATCH 2/2] mfd: macsmc: Wire up Apple SMC power driver Michael Reeves via B4 Relay
2026-01-07  7:27 ` [PATCH 0/2] Add Apple Silicon " Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®