public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Regulator constraints and userspace consumer
@ 2011-09-14 18:54 Marcus Folkesson
  2011-09-14 23:27 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Marcus Folkesson @ 2011-09-14 18:54 UTC (permalink / raw)
  To: linux-kernel, Mark Brown

Hello there,

I'm currently working with a custom made board based on a OMAP-l138 processor.
I've a few questions about the regulator interface.
The regulators is registered and loaded correctly with well-defined constraints.
I have also registered userspace consumers for each regulator.

* One regulator constraint is set to 1000mV as min and max in the
boardfile. The default voltage for that regulator is 1125mV (the
regulator has this output when powered up).
  What is the most accurate way to set the voltage for these
limitations when the system starts up? There is apparently no check if
the default configuration is within limits as the regulator stays on
1125mV.
  When I'm looking in the userspace consumer (/sys/class/regulator/),
the "max_microvolts" and "min_microvolts" is set to 1000000 but the
"microvolts" is set to 1125000.

* I want to change the output voltage from userspace on demand. What
is the most proper way to do this? If I have understand correctly, the
userspace consumer just exports interface for switching on/off the
regulator, is that correct?


Thanks in advance!

Med vänliga hälsningar / Best regards
Marcus Folkesson

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

end of thread, other threads:[~2011-09-15  7:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 18:54 Regulator constraints and userspace consumer Marcus Folkesson
2011-09-14 23:27 ` Mark Brown
2011-09-15  5:21   ` Marcus Folkesson
2011-09-15  7:51     ` Mark Brown

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