arm64: dts: rockchip: Provide power-domains for sd/sdio/emmc/pcie
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 1 Aug 2016 07:26:26 +0000 (15:26 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Mon, 8 Aug 2016 03:37:18 +0000 (11:37 +0800)
commit5cce639363fd3624ce31952119b6aba77db8c953
tree1cc89c25ff7e6a7a233498fc250cb5cfee4b6695
parenta4a3659d9cdb587367a48def364c1be7f9fb6d43
arm64: dts: rockchip: Provide power-domains for sd/sdio/emmc/pcie

The PM domain will be "powered on" once we have registered our PM domain
with genpd and when the device (dw_mmc etc) gets attached to the domain.
The attach occurs when the platform bus'->probe() function get invoked
for the device.

Genpd monitors each device within the domain. To allow it to "power
off", all devices in same domain needs to be runtime PM enabled and
runtime PM suspended.

Due to this, we should be able to deploy genpd support+an updated
DTB, without first having to deploying runtime PM support in the
related drivers. In other words, we could be able to work on these
things almost independently of each other。

So let's only provide power-domains to each devices' node to make
power policy collect the unreferenced ones once avaiable.

But please KEEP IN MIND that this patch doesn't mean we don't support
rpm or any genpd control related stuff on the future, which in other
words means that could be available later.

Change-Id: I1c7b2fdecb7f203d2c35e47892ae5296cfb32884
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399.dtsi