mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/1] power: supply: gpio-charger: Support to disable charger
@ 2024-12-10  9:23 Stefan Raufhake
  2024-12-10  9:23 ` [PATCH v2 1/1] " Stefan Raufhake
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Raufhake @ 2024-12-10  9:23 UTC (permalink / raw)
  To: Sebastian Reichel, linux-pm, devicetree, linux-kernel
  Cc: s.raufhake, s.dirkwinkel, Stefan Raufhake, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley

From: Stefan Raufhake <s.raufhake@beckhoff.de>

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(+)

-- 
2.25.1


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

end of thread, other threads:[~2025-01-03  9:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-10  9:23 [PATCH v2 0/1] power: supply: gpio-charger: Support to disable charger Stefan Raufhake
2024-12-10  9:23 ` [PATCH v2 1/1] " Stefan Raufhake
2024-12-11  9:30   ` Krzysztof Kozlowski
2024-12-13 10:28     ` Stefan Raufhake
2024-12-16  7:30       ` Krzysztof Kozlowski
2024-12-19  0:58         ` Sebastian Reichel
2024-12-19  8:13           ` Krzysztof Kozlowski
2025-01-03  8:18             ` Stefan Raufhake
2025-01-03  9:08               ` Krzysztof Kozlowski

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

all inboxes | Powered by JetHome®