Skip to contentSkip to conversation

arm64: dts: rockchip: add gmac needed clk for rk3399 pd

PATCH Applied Caesar Wang 2 participants 2 messages Nov 14, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: add gmac needed clk for rk3399 pd

From: Jeffy Chen <[email protected]>

This patch fixes that sometimes hang at start-up time of the system. As the below log:
...

[   11.136543] calling  pm_genpd_debug_init+0x0/0x60 @ 1
[   11.141602] initcall pm_genpd_debug_init+0x0/0x60 returned 0 after 11 usecs
[   11.148558] calling  genpd_poweroff_unused+0x0/0x84 @ 1

<hang>

In some cases, the rk3399 should turn off the gmac power domain to save power if some boards didn't register the gmac device node for rk3399. Then, rk3399 need to make sure the gmac's pclk enabled if we need operate the gmac power domain. (Due to the NOC had enabled always)

---

 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +2 -1
index 172e7ed..e8b9df9 100644
@@ -825,7 +825,8 @@
 			/* These power domains are grouped by VD_LOGIC */
 			pd_gmac at RK3399_PD_GMAC {
 				reg = <RK3399_PD_GMAC>;
-				clocks = <&cru ACLK_GMAC>;
+				clocks = <&cru ACLK_GMAC>,
+					 <&cru PCLK_GMAC>;
 				pm_qos = <&qos_gmac>;
 			};
 			pd_vio at RK3399_PD_VIO {
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw

Am Montag, 14. November 2016, 12:36:39 CET schrieb Caesar Wang:

Quoted 10 lines

From: Jeffy Chen <[email protected]>

This patch fixes that sometimes hang at start-up time of the system. As the below log:
...

[   11.136543] calling  pm_genpd_debug_init+0x0/0x60 @ 1
[   11.141602] initcall pm_genpd_debug_init+0x0/0x60 returned 0 after 11

usecs [ 11.148558] calling genpd_poweroff_unused+0x0/0x84 @ 1
<hang>

Quoted 7 lines

In some cases, the rk3399 should turn off the gmac power domain to save power if some boards didn't register the gmac device node for rk3399. Then, rk3399 need to make sure the gmac's pclk enabled if we need operate the gmac power domain. (Due to the NOC had enabled always)

applied to my dts64 branch

Thanks
Heiko