linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* where in sysfs should I put the ability to power down a board for a specific time?
@ 2015-10-20 15:12 Tim Harvey
  2015-10-20 21:21 ` Sebastian Reichel
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Harvey @ 2015-10-20 15:12 UTC (permalink / raw)
  To: linux-pm; +Cc: Sebastian Reichel

Greetings,

There is a system controller [1] on a set of embedded boards I support
that allows disabling the board's primary power supply. It can disable
it (until a physical pushbutton event occurs) and/or disable it for a
certain number of seconds (up to 2^16 seconds).

I've been in the process of writing a mfd driver to fully support this
device and I'm a bit stumped on how to handle the power management
capabilities.

What is the correct API for this type of device in sysfs? I'm thinking
it needs a power-supply class driver, but after looking over the docs
and code I'm not seeing examples of similar devices. Can anyone point
me to an example or provide some suggestions?

Thanks,

Tim

[1] - http://trac.gateworks.com/wiki/gsc

Tim Harvey - Principal Software Engineer
Gateworks Corporation - http://www.gateworks.com/
3026 S. Higuera St. San Luis Obispo CA 93401
805-781-2000

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

end of thread, other threads:[~2015-10-27 15:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 15:12 where in sysfs should I put the ability to power down a board for a specific time? Tim Harvey
2015-10-20 21:21 ` Sebastian Reichel
2015-10-24  2:12   ` [rtc-linux] " Alexandre Belloni
2015-10-27 14:55     ` Tim Harvey
2015-10-27 15:29       ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).