Skip to content

Commit

Permalink
arm64: dts: rockchip: add gmac support for rk3328-evb
Browse files Browse the repository at this point in the history
Change-Id: I05e4eb2d904809a310b12f0de8ae274b90dd583a
Signed-off-by: david.wu <david.wu@rock-chips.com>
  • Loading branch information
SuperDavidWu authored and rkhuangtao committed Feb 17, 2017
1 parent f3c53dd commit 3e00738
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3328-evb.dts
Expand Up @@ -61,6 +61,20 @@
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 {
Expand All @@ -75,6 +89,22 @@
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";

Expand Down

0 comments on commit 3e00738

Please sign in to comment.