arm64: dts: rockchip: pull down rst-gpio of gmac-phy at suspend for rk3399-box
authorDavid Wu <david.wu@rock-chips.com>
Fri, 9 Sep 2016 04:21:42 +0000 (12:21 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 12 Sep 2016 06:00:36 +0000 (14:00 +0800)
Some phys would not enter low power mode by writing 'power down'
bit into phy common register0 such as RTL8211E. And pulling down
reset gpio is also a common way to make phy get low consumption,
if the supplied regulator of phy could not be disabled at suspend.

Change-Id: Ib01f48ec8c0bdec633868bb79e4155561ca6c471
Signed-off-by: David Wu <david.wu@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-box.dtsi

index bb5fef9edbea14b079bb34932cfb23aa20e443b5..910fde0a207ef67a05e5552710c69e20fb602734 100644 (file)
        snps,reset-delays-us = <0 10000 50000>;
        assigned-clocks = <&cru SCLK_RMII_SRC>;
        assigned-clock-parents = <&clkin_gmac>;
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep";
        pinctrl-0 = <&rgmii_pins>;
+       pinctrl-1 = <&rgmii_sleep_pins>;
        tx_delay = <0x28>;
        rx_delay = <0x11>;
        status = "okay";
                                <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
                };
        };
+
+       gmac {
+               rgmii_sleep_pins: rgmii-sleep-pins {
+                       rockchip,pins =
+                               <3 15 RK_FUNC_GPIO &pcfg_output_low>;
+               };
+       };
 };