Skip to content

power: supply: add support for Pegatron Chagall battery

Svyatoslav Ryhel linux-devicetree linux-pm linux-tegra lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 4 repliesApplied
  2. v24 patches 5 repliesSuperseded
  3. v14 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- 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

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: vendor-prefixes: add prefix for Pegatron CorporationDocumentation/devicetree/bindings/vendor-prefixes.yaml+2 -00 replies
2/4dt-bindings: power: supply: Document Pegatron Chagall fuel gaugeDocumentation/devicetree/bindings/power/supply/pegatron,chagall-ec.yaml+49 -00 replies
3/4power: supply: Add driver for Pegatron Chagall batterydrivers/power/supply/Kconfig drivers/power/supply/Makefile drivers/power/supply/chagall-battery.c+304 -02 replies
4/4ARM: tegra: chagall: Add embedded controller nodearch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts+16 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/4A-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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

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
Signature · 1 line
2.48.1