power: supply: gpio-charger: Support to disable charger
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 7 repliesIn review
- v11 patch 1 replySuperseded
Changes in v2 from the cover letter
=================
- Rework of the commit message
- Changed the property name from "charge-disable-gpios" to "enable-gpios".
- Inverted the logic of charge_type to 0 = disable and 1 = enable for the charger.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | power: supply: gpio-charger: Support to disable chargerDocumentation/ drivers/ | +49 | 7 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/1] power: supply: gpio-charger: Support to disable charger
From: Stefan Raufhake <[email protected]>
Hello,
We have a device with a simple built-in UPS, which is controlled by GPIOs. For the control of the UPS, we used the “gpio-charger” driver module from the power-supply. For our usecase we want to support enabing and disabling the ups. When the UPS is disabled, the device turns off immediately if the supply power is switched off. When the UPS is enabled, the device has power as long as the UPS has enough energy for the device. Now, we are looking for the best way to implement this function. This patch contains our first proposal.
Changes since v1:
=================
- Rework of the commit message
- Changed the property name from "charge-disable-gpios" to "enable-gpios".
- Inverted the logic of charge_type to 0 = disable and 1 = enable for the charger.
Stefan Raufhake (1):
power: supply: gpio-charger: Support to disable charger
.../bindings/power/supply/gpio-charger.yaml | 6 +++ drivers/power/supply/gpio-charger.c | 43 +++++++++++++++++++ 2 files changed, 49 insertions(+)
Signature · 1 line
2.25.1