Browse Source

arm64: dts: rockchip: add the gmac power domain on rk3399

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>
Caesar Wang 9 years ago
parent
commit
d43c97a515
1 changed files with 10 additions and 0 deletions
  1. 10 0
      arch/arm64/boot/dts/rockchip/rk3399.dtsi

+ 10 - 0
arch/arm64/boot/dts/rockchip/rk3399.dtsi

@@ -611,6 +611,11 @@
 		status = "disabled";
 		status = "disabled";
 	};
 	};
 
 
+	qos_gmac: qos@ffa5c000 {
+		compatible = "syscon";
+		reg = <0x0 0xffa5c000 0x0 0x20>;
+	};
+
 	qos_hdcp: qos@ffa90000 {
 	qos_hdcp: qos@ffa90000 {
 		compatible = "syscon";
 		compatible = "syscon";
 		reg = <0x0 0xffa90000 0x0 0x20>;
 		reg = <0x0 0xffa90000 0x0 0x20>;
@@ -739,6 +744,11 @@
 			};
 			};
 
 
 			/* These power domains are grouped by VD_LOGIC */
 			/* 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 {
 			pd_vio@RK3399_PD_VIO {
 				reg = <RK3399_PD_VIO>;
 				reg = <RK3399_PD_VIO>;
 				#address-cells = <1>;
 				#address-cells = <1>;