arm64: dts: rockchip: add gmac support for rk3328-evb
authordavid.wu <david.wu@rock-chips.com>
Fri, 20 Jan 2017 08:22:54 +0000 (16:22 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 17 Feb 2017 10:41:21 +0000 (18:41 +0800)
Change-Id: I05e4eb2d904809a310b12f0de8ae274b90dd583a
Signed-off-by: david.wu <david.wu@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3328-evb.dts

index 3aa8104188c0a9f35a1fb7625e4964fbefd56bbb..8c9e64c72e6829736e614226619fb73e6deba510 100644 (file)
                rockchip,baudrate = <1500000>;  /* Only 115200 and 1500000 */
                status = "okay";
        };
+
+       gmac_clkin: external-gmac-clock {
+               compatible = "fixed-clock";
+               clock-frequency = <125000000>;
+               clock-output-names = "gmac_clkin";
+               #clock-cells = <0>;
+       };
+
+       vcc_phy: vcc-phy-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_phy";
+               regulator-always-on;
+               regulator-boot-on;
+       };
 };
 
 &emmc {
        status = "okay";
 };
 
+&gmac2io {
+       phy-supply = <&vcc_phy>;
+       phy-mode = "rgmii";
+       clock_in_out = "input";
+       snps,reset-gpio = <&gpio1 18 GPIO_ACTIVE_LOW>;
+       snps,reset-active-low;
+       snps,reset-delays-us = <0 10000 50000>;
+       assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
+       assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmiim1_pins>;
+       tx_delay = <0x26>;
+       rx_delay = <0x11>;
+       status = "okay";
+};
+
 &io_domains {
        status = "okay";