arm64: dts: rk3368-r88: gmac work up
authorhuweiguo <hwg@rock-chips.com>
Thu, 22 Jun 2017 11:44:21 +0000 (19:44 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 23 Jun 2017 01:50:08 +0000 (09:50 +0800)
Change-Id: I43ffe5abe8293232f026f4696b17b36024d392cd
Signed-off-by: huweiguo <hwg@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-r88.dts

index 2c75f47c94b84c32145f797014f55acb45e85b90..b70caccbf93c1cb653fa0686c8320dfb6c4d1e7b 100644 (file)
                regulator-name = "vcc_host";
                regulator-always-on;
        };
+
+       vcc_phy: vcc-phy-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_phy";
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       clkin_gmac: external-gmac-clock {
+               compatible = "fixed-clock";
+               clock-frequency = <125000000>;
+               clock-output-names = "clkin_gmac";
+               #clock-cells = <0>;
+       };
 };
 
 &emmc {
 };
 
 &gmac {
-       //phy-supply = <&vcc_lan>;
+       phy-supply = <&vcc_phy>;
        phy-mode = "rmii";
        clock_in_out = "output";
        snps,reset-gpio = <&gpio3 12 0>;
        snps,reset-active-low;
-       snps,reset-delays-us = <0 10000 1000000>;
+       snps,reset-delays-us = <0 10000 50000>;
+       //assigned-clocks = <&cru SCLK_RMII_SRC>;
+       //assigned-clock-parents = <&clkin_gmac>;
        pinctrl-names = "default";
        pinctrl-0 = <&rmii_pins>;
        tx_delay = <0x30>;