[PATCH v4 0/2] power: supply: Add support for Surface RT battery and charger

Svyatoslav Ryhel posted 2 patches 1 month ago
.../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
[PATCH v4 0/2] power: supply: Add support for Surface RT battery and charger
Posted by Svyatoslav Ryhel 1 month ago
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 v4:
- fixed REGS_TECHNOLOGY read size

Changes in v3:
- fixed i2c_smbus_read_i2c_block_data read size

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

Re: [PATCH v4 0/2] power: supply: Add support for Surface RT battery and charger
Posted by Sebastian Reichel 1 week, 1 day ago
On Thu, 07 May 2026 16:46:05 +0300, Svyatoslav Ryhel wrote:
> 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.
> 

Applied, thanks!

[1/2] dt-bindings: embedded-controller: Document Surface RT EC
      commit: de296b53775cd1ccb6b448b4cc8d843c8858e1df
[2/2] power: supply: Add support for Surface RT battery and charger
      commit: 3d6529b837de49294cea0d4600144353f5f084dd

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>