Devicetree
 help / color / mirror / Atom feed
From: Stefan Raufhake <raufhakestefan@gmail.com>
To: Sebastian Reichel <sre@kernel.org>,
	linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: s.raufhake@beckhoff.com, s.dirkwinkel@beckhoff.com,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Subject: [PATCH 0/1] power: supply: gpio-charger: Support to disable charger
Date: Fri, 29 Nov 2024 10:38:46 +0000	[thread overview]
Message-ID: <20241129103848.39963-1-raufhakestefan@gmail.com> (raw)

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

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.

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


             reply	other threads:[~2024-11-29 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-29 10:38 Stefan Raufhake [this message]
2024-11-29 10:38 ` [PATCH 1/1] power: supply: gpio-charger: Support to disable charger Stefan Raufhake
2024-11-29 10:43   ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241129103848.39963-1-raufhakestefan@gmail.com \
    --to=raufhakestefan@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=s.dirkwinkel@beckhoff.com \
    --cc=s.raufhake@beckhoff.com \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox