summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid.wu <david.wu@rock-chips.com>2017-01-20 16:22:54 +0800
committerHuang, Tao <huangtao@rock-chips.com>2017-02-17 18:41:21 +0800
commit3e00738277533382e6a17148b80b09a8fabea268 (patch)
treee6554bfe44da5f4199d037881360b9fcc7a85a58
parentf3c53dd38ee3e5d1c97af857c7144c445160d911 (diff)
arm64: dts: rockchip: add gmac support for rk3328-evbrelease-20170220
Change-Id: I05e4eb2d904809a310b12f0de8ae274b90dd583a Signed-off-by: david.wu <david.wu@rock-chips.com>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3328-evb.dts30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts
index 3aa8104188c0..8c9e64c72e68 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts
@@ -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 {
@@ -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";