public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] power: supply: Add support for Surface RT battery and charger
@ 2026-04-30  8:10 Svyatoslav Ryhel
  2026-04-30  8:10 ` [PATCH v2 1/2] dt-bindings: embedded-controller: Document Surface RT EC Svyatoslav Ryhel
  2026-04-30  8:10 ` [PATCH v2 2/2] power: supply: Add support for Surface RT battery and charger Svyatoslav Ryhel
  0 siblings, 2 replies; 3+ messages in thread
From: Svyatoslav Ryhel @ 2026-04-30  8:10 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sebastian Reichel,
	Svyatoslav Ryhel, Jonas Schwöbel
  Cc: devicetree, linux-kernel, linux-pm

Add support for Embedded Controller found in the Microsoft Surface RT and
used to monitor battery cell and charger input status and properties.
Controller works both for UEFI and APX booting.

---
Changes in v2:
- srt_bat_get_string > i2c_smbus_read_i2c_block_data
- added devm_kasprintf return check
---

Jonas Schwöbel (1):
  power: supply: Add support for Surface RT battery and charger

Svyatoslav Ryhel (1):
  dt-bindings: embedded-controller: Document Surface RT EC

 .../microsoft,surface-rt-ec.yaml              |  63 +++
 drivers/power/supply/Kconfig                  |  11 +
 drivers/power/supply/Makefile                 |   1 +
 drivers/power/supply/surface-rt-ec.c          | 389 ++++++++++++++++++
 4 files changed, 464 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/embedded-controller/microsoft,surface-rt-ec.yaml
 create mode 100644 drivers/power/supply/surface-rt-ec.c

-- 
2.51.0


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

end of thread, other threads:[~2026-04-30  8:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30  8:10 [PATCH v2 0/2] power: supply: Add support for Surface RT battery and charger Svyatoslav Ryhel
2026-04-30  8:10 ` [PATCH v2 1/2] dt-bindings: embedded-controller: Document Surface RT EC Svyatoslav Ryhel
2026-04-30  8:10 ` [PATCH v2 2/2] power: supply: Add support for Surface RT battery and charger Svyatoslav Ryhel

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