From: josephl@nvidia.com (Joseph Lo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V5 9/9] ARM: dts: tegra: add the PM configurations of PMC
Date: Wed, 3 Apr 2013 15:33:51 +0800 [thread overview]
Message-ID: <1364974431.16957.41.camel@jlo-ubuntu-64.nvidia.com> (raw)
In-Reply-To: <20130403071932.GA23157@avionic-0098.mockup.avionic-design.de>
On Wed, 2013-04-03 at 15:19 +0800, Thierry Reding wrote:
> * PGP Signed by an unknown key
>
> On Wed, Apr 03, 2013 at 03:11:17PM +0800, Joseph Lo wrote:
> > On Wed, 2013-04-03 at 15:04 +0800, Thierry Reding wrote:
> > > > Old Signed by an unknown key
> > >
> > > On Wed, Apr 03, 2013 at 02:34:25PM +0800, Joseph Lo wrote:
> > > > On Wed, 2013-04-03 at 13:59 +0800, Thierry Reding wrote:
> > > > > > Old Signed by an unknown key
> > > > >
> > > > > On Tue, Apr 02, 2013 at 02:00:55PM -0600, Stephen Warren wrote:
> > > > > > On 04/02/2013 05:20 AM, Joseph Lo wrote:
> > > > > > > Adding the PM configuration of PMC when the platform support suspend
> > > > > > > function.
> > > > > >
> > > > > > For this patch, some more boards could be supported, but I think we'll
> > > > > > have to rely on other people (Lucas, Thierry) to send patches for them,
> > > > > > since they know the details of the board. It's fine to leave suspend
> > > > > > disabled on those boards until later.
> > > > >
> > > > > I'm not sure what would be the best way to get the Tamonten devices out
> > > > > of suspend again. For Plutux and TEC we have a power button that could
> > > > > possibly be reused. There's a WAKEUP pin on the Tamonten connector which
> > > > > goes to GPIO PV2, but the mechanism to trigger it is carrier-board
> > > > > dependent.
> > > > >
> > > > > For the Medcom-Wide we don't have a power button, but it could possibly
> > > > > use the WAKEUP pin if that's connected. It seems like in all designs it
> > > > > goes to the CPLD, but I need to check with engineering if there's a way
> > > > > to manipulate it.
> > > > >
> > > > > So yes, I think for now we can leave suspend disabled on Tamonten and I
> > > > > can send patches to enable it once I've clarified with engineering.
> > > > >
> > > > Hi Thierry,
> > > >
> > > > I just recall I still need at least "nvidia,cpu-pwr-good-time" and
> > > > "nvidia,cpu-pwr-off-time" two properties to make CPU idle power-down
> > > > mode (same with LP2) work normally after this series.
> > > >
> > > > So can you provide me that or point me out where is your downstream
> > > > kernel source? There data would be come from DT after this series.
> > >
> > > We don't have suspend support in downstream kernels either. However
> > > since the Tamonten was derived from the Harmony reference design I
> > > suppose the same values can be reused.
> > >
> > OK. That's enough.
> >
> > > That said, the binding document says that those values are only required
> > > if nvidia,suspend-mode is set. So if we don't add it for the Tamonten
> > > boards why would you need the cpu-pwr-good-time and cpu-pwr-off-time
> > > values. Or maybe the binding document is wrong?
> >
> > Actually, when you support CPU idle power-down mode (LP2), you already
> > support suspend function (at least LP2 mode). Just no wake up source
> > define in DT for your boards.
>
> Okay, but for CPU idle LP2 we don't need a wakeup source, right? I only
> need the wakeup source if I explicitly suspend the device.
>
Yes. The difference between CPU idle and suspend LP2 is wake up from any
interrupt or specific interrupt source (wake up source for suspend).
My approach is adding CPU idle LP2 support first and make it support
suspend later. Then reorganize them into PM related code and get the
configurations from DT.
> > May I add these properties to your boards (same as Harmony)? Then you
> > can figure out your wake up source later, at least the RTC can wake up
> > your device I believe.
>
> From what I understand there should be no changes in behaviour after
> this patch, so it should be fine.
>
OK, thanks.
next prev parent reply other threads:[~2013-04-03 7:33 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 11:20 [PATCH V5 0/9] ARM: tegra: add platform suspend support Joseph Lo
2013-04-02 11:20 ` [PATCH V5 1/9] gpio: tegra: add gpio wakeup source handling Joseph Lo
2013-04-03 16:29 ` Linus Walleij
2013-04-03 16:52 ` Stephen Warren
2013-04-03 21:20 ` Stephen Warren
2013-04-02 11:20 ` [PATCH V5 2/9] ARM: tegra: irq: add wake up handling Joseph Lo
2013-04-02 11:20 ` [PATCH V5 3/9] ARM: dt: tegra: add bindings of power management configurations for PMC Joseph Lo
2013-04-02 11:20 ` [PATCH V5 4/9] ARM: tegra: pm: add platform suspend support Joseph Lo
2013-04-02 11:20 ` [PATCH V5 5/9] ARM: dts: tegra: add power gpio keys to DT Joseph Lo
2013-04-02 11:20 ` [PATCH V5 6/9] ARM: dts: tegra: whistler: add wakeup source for KBC Joseph Lo
2013-04-02 11:20 ` [PATCH V5 7/9] ARM: dts: tegra: add non-removable and keep-power-in-suspend property for MMC Joseph Lo
2013-04-02 19:58 ` Stephen Warren
2013-04-03 5:45 ` Thierry Reding
2013-04-03 6:28 ` Joseph Lo
2013-04-03 6:59 ` Joseph Lo
2013-04-02 11:20 ` [PATCH V5 8/9] ARM: tegra: config: defconfig update Joseph Lo
2013-04-02 11:20 ` [PATCH V5 9/9] ARM: dts: tegra: add the PM configurations of PMC Joseph Lo
2013-04-02 20:00 ` Stephen Warren
2013-04-03 5:59 ` Thierry Reding
2013-04-03 6:34 ` Joseph Lo
2013-04-03 7:04 ` Thierry Reding
2013-04-03 7:11 ` Joseph Lo
2013-04-03 7:19 ` Thierry Reding
2013-04-03 7:33 ` Joseph Lo [this message]
2013-04-02 19:39 ` [PATCH V5 0/9] ARM: tegra: add platform suspend support Stephen Warren
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=1364974431.16957.41.camel@jlo-ubuntu-64.nvidia.com \
--to=josephl@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).