From 5cce639363fd3624ce31952119b6aba77db8c953 Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Mon, 1 Aug 2016 15:26:26 +0800 Subject: [PATCH] arm64: dts: rockchip: Provide power-domains for sd/sdio/emmc/pcie MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 9a4374a4dccb..3f792cf8f535 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -344,6 +344,7 @@ <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; + power-domains = <&power RK3399_PD_SDIOAUDIO>; status = "disabled"; }; @@ -357,6 +358,7 @@ <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; + power-domains = <&power RK3399_PD_SD>; status = "disabled"; }; @@ -371,6 +373,7 @@ assigned-clock-rates = <200000000>; phys = <&emmc_phy>; phy-names = "phy_arasan"; + power-domains = <&power RK3399_PD_EMMC>; status = "disabled"; }; @@ -1159,6 +1162,7 @@ pcie-conf = <0xe220>; pcie-status = <0xe2a4>; pcie-laneoff = <0xe214>; + power-domains = <&power RK3399_PD_PERIHP>; msi-parent = <&its>; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; -- 2.34.1