[PATCH v3 0/4] power: supply: add support for Pegatron Chagall battery

Svyatoslav Ryhel posted 4 patches 7 months, 3 weeks ago
.../power/supply/pegatron,chagall-ec.yaml     |  49 +++
.../devicetree/bindings/vendor-prefixes.yaml  |   2 +
.../dts/nvidia/tegra30-pegatron-chagall.dts   |  16 +
drivers/power/supply/Kconfig                  |  12 +
drivers/power/supply/Makefile                 |   1 +
drivers/power/supply/chagall-battery.c        | 291 ++++++++++++++++++
6 files changed, 371 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/pegatron,chagall-ec.yaml
create mode 100644 drivers/power/supply/chagall-battery.c
[PATCH v3 0/4] power: supply: add support for Pegatron Chagall battery
Posted by Svyatoslav Ryhel 7 months, 3 weeks ago
The Pegatron Chagall is an Android tablet utilizing a customized Cypress
CG7153AM microcontroller (MCU) as its battery fuel gauge. It supports a
single-cell battery and features a dual-color charging LED.

---
Changes in v3:
- status update handled via default-trigger
- chagall_battery_prop_offs sorted by chagall_battery_properties
- separated status logic into chagall_battery_get_status helper
- removed controversial POWER_SUPPLY_STATUS_NOT_CHARGING use
- code formatting improvemets

Changes in v2:
- removed CG7153AM mentions in code, documentation and commit messages
- moved schema to power/supply
- left only pegatron,chagall compatible, other is dropped
---

Svyatoslav Ryhel (4):
  dt-bindings: vendor-prefixes: add prefix for Pegatron Corporation
  dt-bindings: power: supply: Document Pegatron Chagall fuel gauge
  power: supply: Add driver for Pegatron Chagall battery
  ARM: tegra: chagall: Add embedded controller node

 .../power/supply/pegatron,chagall-ec.yaml     |  49 +++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 .../dts/nvidia/tegra30-pegatron-chagall.dts   |  16 +
 drivers/power/supply/Kconfig                  |  12 +
 drivers/power/supply/Makefile                 |   1 +
 drivers/power/supply/chagall-battery.c        | 291 ++++++++++++++++++
 6 files changed, 371 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/supply/pegatron,chagall-ec.yaml
 create mode 100644 drivers/power/supply/chagall-battery.c

-- 
2.48.1
Re: (subset) [PATCH v3 0/4] power: supply: add support for Pegatron Chagall battery
Posted by Thierry Reding 5 months, 1 week ago
From: Thierry Reding <treding@nvidia.com>


On Tue, 29 Apr 2025 09:17:58 +0300, Svyatoslav Ryhel wrote:
> The Pegatron Chagall is an Android tablet utilizing a customized Cypress
> CG7153AM microcontroller (MCU) as its battery fuel gauge. It supports a
> single-cell battery and features a dual-color charging LED.
> 

Applied, thanks!

[4/4] ARM: tegra: chagall: Add embedded controller node
      commit: 3c2c00572fc3e0b128f75c7ce9c3f70ca457cc3b

Best regards,
-- 
Thierry Reding <treding@nvidia.com>
Re: (subset) [PATCH v3 0/4] power: supply: add support for Pegatron Chagall battery
Posted by Sebastian Reichel 7 months, 3 weeks ago
On Tue, 29 Apr 2025 09:17:58 +0300, Svyatoslav Ryhel wrote:
> The Pegatron Chagall is an Android tablet utilizing a customized Cypress
> CG7153AM microcontroller (MCU) as its battery fuel gauge. It supports a
> single-cell battery and features a dual-color charging LED.
> 

Applied, thanks!

[1/4] dt-bindings: vendor-prefixes: add prefix for Pegatron Corporation
      commit: b5cd5c42a9182cf6602b2a68201d39bd60a2a65e
[2/4] dt-bindings: power: supply: Document Pegatron Chagall fuel gauge
      commit: 615a8d9d897de77268ee81a78a5bf65fad53bcc8
[3/4] power: supply: Add driver for Pegatron Chagall battery
      commit: fbc1d056d3f3d417bc9df521cb45a0f51758b64a

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