Thread (5 messages) 5 messages, 3 authors, 2015-10-27

where in sysfs should I put the ability to power down a board for a specific time?

From: Tim Harvey <tharvey@gateworks.com>
Date: 2015-10-20 15:12:09

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help