linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Heiko Stübner" <heiko@sntech.de>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Liam Girdwood <lrg@ti.com>,
	linux-pm@lists.linux-foundation.org
Subject: how to best map device regulators
Date: Fri, 2 Sep 2011 11:42:00 +0200	[thread overview]
Message-ID: <201109021142.01057.heiko@sntech.de> (raw)

Hi,

I'm at an impass on how to implement specific regulators found in an existing 
device.

My first candidate is a "GMT G9093", i.e. two fixed voltage regulators in one ic 
controlled via GPIOs. Here intuition suggest to simply use two instances of 
the fixed-driver - no use in duplicating its function. Correct?


Second, more complex chip, is a TI tps650240, i.e. 3 fixed voltage regulators, 
1 regulator switchable between 2 voltages - all controllable via GPIOs -  and 
two regulators whose enabled-state is controlled by one gpio only.

Here I'm torn between (1) building a new driver and (2) using fixed voltage 
drivers and building a switch-driver for the two voltage-regulator (here I'm 
also not sure if this should be crammed into the fixed-driver, as I think it is 
called fixed for a reason). For (2) I'm also not sure, on how to implement 
support for the two regulators controlled by one gpio.

Thanks
Heiko

             reply	other threads:[~2011-09-02  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02  9:42 Heiko Stübner [this message]
2011-09-02 12:49 ` how to best map device regulators Mark Brown

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=201109021142.01057.heiko@sntech.de \
    --to=heiko@sntech.de \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=lrg@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).