diff mbox

[2/6] arm64: dts: rockchip: add pd_emmc power node for rk3399

Message ID 1473406836-6720-3-git-send-email-zhangqing@rock-chips.com (mailing list archive)
State New, archived
Headers show

Commit Message

zhangqing Sept. 9, 2016, 7:40 a.m. UTC
1.add pd node for RK3399 Soc
2.create power domain tree
3.add qos node for domain
4.add the pd_emmc consumers node

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

ziyuan Sept. 9, 2016, 7:50 a.m. UTC | #1
hi Elaine,


On 2016年09月09日 15:40, Elaine Zhang wrote:
> 1.add pd node for RK3399 Soc
> 2.create power domain tree
> 3.add qos node for domain
> 4.add the pd_emmc consumers node
>
> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>

I had push this patch, see [0]

[0] https://patchwork.kernel.org/patch/9320423/

> ---
>   arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++++++++++
>   1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> index 52b4bfb52288..869b52d60b73 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> @@ -269,6 +269,7 @@
>   		#clock-cells = <0>;
>   		phys = <&emmc_phy>;
>   		phy-names = "phy_arasan";
> +		power-domains = <&power RK3399_PD_EMMC>;
>   		status = "disabled";
>   	};
>   
> @@ -690,6 +691,10 @@
>   		status = "disabled";
>   	};
>   
> +	qos_emmc: qos@ffa58000 {
> +		compatible = "syscon";
> +		reg = <0x0 0xffa58000 0x0 0x20>;
> +	};
>   	qos_gmac: qos@ffa5c000 {
>   		compatible = "syscon";
>   		reg = <0x0 0xffa5c000 0x0 0x20>;
> @@ -827,6 +832,11 @@
>   				reg = <RK3399_PD_EDP>;
>   				clocks = <&cru PCLK_EDP_CTRL>;
>   			};
> +			pd_emmc@RK3399_PD_EMMC {
> +				reg = <RK3399_PD_EMMC>;
> +				clocks = <&cru ACLK_EMMC>;
> +				pm_qos = <&qos_emmc>;
> +			};
>   			pd_gmac@RK3399_PD_GMAC {
>   				reg = <RK3399_PD_GMAC>;
>   				clocks = <&cru ACLK_GMAC>;
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 52b4bfb52288..869b52d60b73 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -269,6 +269,7 @@ 
 		#clock-cells = <0>;
 		phys = <&emmc_phy>;
 		phy-names = "phy_arasan";
+		power-domains = <&power RK3399_PD_EMMC>;
 		status = "disabled";
 	};
 
@@ -690,6 +691,10 @@ 
 		status = "disabled";
 	};
 
+	qos_emmc: qos@ffa58000 {
+		compatible = "syscon";
+		reg = <0x0 0xffa58000 0x0 0x20>;
+	};
 	qos_gmac: qos@ffa5c000 {
 		compatible = "syscon";
 		reg = <0x0 0xffa5c000 0x0 0x20>;
@@ -827,6 +832,11 @@ 
 				reg = <RK3399_PD_EDP>;
 				clocks = <&cru PCLK_EDP_CTRL>;
 			};
+			pd_emmc@RK3399_PD_EMMC {
+				reg = <RK3399_PD_EMMC>;
+				clocks = <&cru ACLK_EMMC>;
+				pm_qos = <&qos_emmc>;
+			};
 			pd_gmac@RK3399_PD_GMAC {
 				reg = <RK3399_PD_GMAC>;
 				clocks = <&cru ACLK_GMAC>;