arm64: dts: rockchip: add pd_sd power-domain node for rk3399
authorElaine Zhang <zhangqing@rock-chips.com>
Wed, 9 Nov 2016 13:21:54 +0000 (21:21 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 14 Nov 2016 15:20:44 +0000 (16:20 +0100)
Add the sd power-domain, its qos area and assign it to the
sdmmc device node.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Tested-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index cc4930a..fc30b57 100644 (file)
                         <&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";
        };
 
                status = "disabled";
        };
 
+       qos_sd: qos@ffa74000 {
+               compatible = "syscon";
+               reg = <0x0 0xffa74000 0x0 0x20>;
+       };
+
        qos_emmc: qos@ffa58000 {
                compatible = "syscon";
                reg = <0x0 0xffa58000 0x0 0x20>;
                                         <&cru PCLK_GMAC>;
                                pm_qos = <&qos_gmac>;
                        };
+                       pd_sd@RK3399_PD_SD {
+                               reg = <RK3399_PD_SD>;
+                               clocks = <&cru HCLK_SDMMC>,
+                                        <&cru SCLK_SDMMC>;
+                               pm_qos = <&qos_sd>;
+                       };
                        pd_vio@RK3399_PD_VIO {
                                reg = <RK3399_PD_VIO>;
                                #address-cells = <1>;