From: Heiko Stuebner <heiko@sntech.de>
To: Doug Anderson <dianders@chromium.org>
Cc: Caesar Wang <wxt@rock-chips.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"open list:ARM/Rockchip SoC..."
<linux-rockchip@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Tao Huang <huangtao@rock-chips.com>,
Eddie Cai <eddie.cai@rock-chips.com>,
Elaine Zhang <zhangqing@rock-chips.com>
Subject: Re: [PATCH v2] arm64: dts: rockchip: add the power domain node for rk3399
Date: Fri, 01 Jul 2016 19:19:13 +0200 [thread overview]
Message-ID: <2235386.KcC75gPTXr@phil> (raw)
In-Reply-To: <CAD=FV=U0FU5P+seYYmJNZmcV1r-N6_UHtMW5LuVGM-NyPER8BQ@mail.gmail.com>
Am Freitag, 1. Juli 2016, 09:56:31 schrieb Doug Anderson:
> Caesar
>
> On Thu, Jun 30, 2016 at 9:32 PM, Caesar Wang <wxt@rock-chips.com> wrote:
> > From: Elaine Zhang <zhangqing@rock-chips.com>
> >
> > In order to meet low power requirements, a power management unit (PMU)
> > is
> > designed for controlling power resources in RK3399. The RK3399 PMU is
> > dedicated for managing the power of the whole chip.
> >
> > 1. add pd node for RK3399 Soc
> > 2. create power domain tree
> > 3. add qos node for domain
> >
> > From the DT/binds and driver can get more detail information:
> >
> > The driver:
> > drivers/soc/rockchip/pm_domains.c
> >
> > The document:
> > Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
> >
> > ---
> >
> > Changes in v2:
> > - As Doug/Heiko commnets on https://patchwork.kernel.org/patch/9206415/.
> >
> > drop the debugfs-dump and Add the comments for alphabetical order.
> >
> > Note: As the TRM lists many voltage domains and power domains, then
> > in actual we just need control some domains for driver.
> > Due to some domains (e.g. emmc, usb, core)...We can't turn off it on
> > bootup.
>
> I'm curious: why can't you turn off USB power domains if a board
> doesn't usb USB? ...or GMAC on boards that don't use Ethernet? ...or
> eDP on boards that don't use EDP?
>
> Maybe the driver for these things isn't ready to handle power domains
> yet so that's why they are left out for now?
I think core power-domain handling is actually transparent to drivers (aka
turning on before probe and turning off after remove), see
drivers/base/platform.c:platform_drv_probe() calling dev_pm_domain_attach()
with the poweron flag set.
And all the unused domains getting turned off automatically also shouldn't
hurt us I'd think. Just that someone need to collect all clocks needed for
the synchronuous reset.
next prev parent reply other threads:[~2016-07-01 17:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-01 4:32 [PATCH v2] arm64: dts: rockchip: add the power domain node for rk3399 Caesar Wang
2016-07-01 16:56 ` Doug Anderson
2016-07-01 17:19 ` Heiko Stuebner [this message]
2016-07-02 1:34 ` Caesar Wang
2016-07-02 3:41 ` William Wu
2016-07-01 17:09 ` Javier Martinez Canillas
2016-07-02 0:57 ` Caesar Wang
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=2235386.KcC75gPTXr@phil \
--to=heiko@sntech.de \
--cc=dianders@chromium.org \
--cc=eddie.cai@rock-chips.com \
--cc=huangtao@rock-chips.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=wxt@rock-chips.com \
--cc=zhangqing@rock-chips.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