arm64: dts: rockchip: add specific config for GMAC on rk3366-tb
authorRoger Chen <roger.chen@rock-chips.com>
Mon, 15 Feb 2016 09:58:38 +0000 (17:58 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Feb 2016 11:40:54 +0000 (19:40 +0800)
Change-Id: I419fbe457ad3246fc42e2cda54097fceab76b466
Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3366-tb.dts

index 1f84d52148cb8a473bf3fcf784957c10ddc86b23..0609a31e5dc8e55558194627d81bdb54f9c04e3b 100644 (file)
                regulator-min-microvolt = <3800000>;
                regulator-max-microvolt = <3800000>;
        };
+
+       ext_gmac: external-gmac-clock {
+               compatible = "fixed-clock";
+               clock-frequency = <125000000>;
+               clock-output-names = "ext_gmac";
+               #clock-cells = <0>;
+       };
+
+       vcc_phy: vcc-phy-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio0 24 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&eth_phy_pwr>;
+               regulator-name = "vcc_phy";
+               regulator-always-on;
+               regulator-boot-on;
+       };
 };
 
 &emmc {
                         rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
                 };
         };
-};
\ No newline at end of file
+};
+
+&gmac {
+       phy_regulator = "vcc_phy";
+       phy-mode = "rgmii";
+       clock_in_out = "input";
+       snps,reset-gpio = <&gpio2 15 0>;
+       snps,reset-active-low;
+       snps,reset-delays-us = <0 10000 1000000>;
+       assigned-clocks = <&cru SCLK_MAC>;
+       assigned-clock-parents = <&ext_gmac>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
+       tx_delay = <0x30>;
+       rx_delay = <0x10>;
+       status = "okay";
+};