OSDN Git Service

arm64: dts: rockchip: add the gmac power domain on rk3399
authorCaesar Wang <wxt@rock-chips.com>
Thu, 1 Sep 2016 17:50:02 +0000 (01:50 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 2 Sep 2016 10:57:01 +0000 (12:57 +0200)
This patch adds the gmac ppower-domain to save power consumption
by letting the driver core handle the power-domain so we can
save power on boards not needing Ethernet.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 5aeef57..7df782a 100644 (file)
                status = "disabled";
        };
 
+       qos_gmac: qos@ffa5c000 {
+               compatible = "syscon";
+               reg = <0x0 0xffa5c000 0x0 0x20>;
+       };
+
        qos_hdcp: qos@ffa90000 {
                compatible = "syscon";
                reg = <0x0 0xffa90000 0x0 0x20>;
                        };
 
                        /* These power domains are grouped by VD_LOGIC */
+                       pd_gmac@RK3399_PD_GMAC {
+                               reg = <RK3399_PD_GMAC>;
+                               clocks = <&cru ACLK_GMAC>;
+                               pm_qos = <&qos_gmac>;
+                       };
                        pd_vio@RK3399_PD_VIO {
                                reg = <RK3399_PD_VIO>;
                                #address-cells = <1>;