All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@ti.com>
To: Tero Kristo <t-kristo@ti.com>
Cc: linux-omap@vger.kernel.org, broonie@opensource.wolfsonmicro.com,
	lrg@ti.com, Paul Walmsley <paul@pwsan.com>
Subject: Re: [PATCHv2 0/5] OMAP SMPS regulator driver
Date: Wed, 13 Jul 2011 12:00:37 -0700	[thread overview]
Message-ID: <87r55uxay2.fsf@ti.com> (raw)
In-Reply-To: <1310565638-13140-1-git-send-email-t-kristo@ti.com> (Tero Kristo's message of "Wed, 13 Jul 2011 17:00:33 +0300")

+Paul

Tero Kristo <t-kristo@ti.com> writes:

> Based on the comments for the previous version of this set, I implemented
> a regulator driver for the OMAP SMPS now. It could actually be moved under
> arch/arm/mach-omap2/ directory instead of drivers/regulator, I think it
> should work from there also. This would also require less hacking for the
> header files. Any thoughts on this?

Actually, I'd prefer it stay in drivers/regulator.  We're trying to move
driver-type stuff out of arch/arm/* into the right place in drivers/*.
In fact, I wonder if our VP/VC layers might better live under
drivers/regulator also.

I'd appreciate any input from Mark/Liam on how to organize things.

For some background, see Figures 3-75 and 3-76 in the OMAP4430 Public
TRM[1].  The SMPSs are physically on an external PMIC, but all the
control is typically done via on-chip resources: voltage processor (VP),
voltage controller (VC).  There's also an optional SmartReflex (SR)
block involved which can drive the VP.  I'm not as familiar with other
non-OMAP SoCs, but I don't imagine this is unique to OMAP.

Currently, we have separate drivers for VC, VP and SR in
arch/arm/mach-omap2.  In mainline, these are currently more like
libraries than drivers and are a bit hackish and interwoven with each
other.  We're currently separating these out into separate VC, VP and SR
layers[2], and I'm wondering exactly how we should structure this, and
where they should live under drivers/*.

What Paul and I have discussed so far is that SR should just be
implemented as a sensor under hwmod.  For VC/VP, I think it makes the
most sense that these be part of drivers/regulator someplace.  In this
series, the proposed driver is just small shell that calls the VP
functions.  

Mark/Liam, are you OK with having some "helper" libraries in
drivers/regulator?  I'm thinking specifically of our VC/VP layers (see
arch/arm/mach-omap2/vc*.c and vp*.c here in my pm-wip/voltdm branch[2].)

So far, I'm just brainstorming on how to cleanup/restructure this stuff,
so any advice from you guys would be appreciated.

Thanks,

Kevin

[1] http://focus.ti.com/pdfs/wtbu/OMAP4430_ES2.x_PUBLIC_TRM_vU.zip
[2] latest are in pm-wip/voltdm branch of my git tree
    git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git

  parent reply	other threads:[~2011-07-13 19:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 14:00 [PATCHv2 0/5] OMAP SMPS regulator driver Tero Kristo
2011-07-13 14:00 ` [PATCHv2 1/5] OMAP: move voltage.h and vp.h under platform include directory Tero Kristo
2011-07-13 14:00 ` [PATCHv2 2/5] regulator: omap smps regulator driver Tero Kristo
2011-07-13 14:40   ` Mark Brown
2011-07-13 15:53     ` Tero Kristo
2011-07-13 22:55       ` Mark Brown
2011-07-14  7:51         ` Tero Kristo
2011-07-14  6:29   ` Todd Poynor
2011-07-14  7:23     ` Tero Kristo
2011-07-13 14:00 ` [PATCHv2 3/5] omap3: beagle: instantiate smps regulators Tero Kristo
2011-07-13 14:00 ` [PATCHv2 4/5] TEMP: OMAP3: beagle rev-c4: enable OPP6 Tero Kristo
2011-07-13 17:49   ` Premi, Sanjeev
2011-07-14  7:10     ` Tero Kristo
2011-07-14  8:46       ` Premi, Sanjeev
2011-07-13 14:00 ` [PATCHv2 5/5] omap: voltage: changed parameter of omap_voltage_lookup to const Tero Kristo
2011-07-13 19:00 ` Kevin Hilman [this message]
2011-07-13 23:22   ` [PATCHv2 0/5] OMAP SMPS regulator driver Mark Brown
2011-07-13 23:51     ` Kevin Hilman
2011-07-14  0:22 ` Kevin Hilman
2011-07-14  7:24   ` Tero Kristo
2011-07-18  8:19 ` Tony Lindgren

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=87r55uxay2.fsf@ti.com \
    --to=khilman@ti.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=paul@pwsan.com \
    --cc=t-kristo@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.