summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/rockchip/rk3366-tb.dts
diff options
context:
space:
mode:
authorRoger Chen <roger.chen@rock-chips.com>2016-02-15 17:58:38 +0800
committerHuang, Tao <huangtao@rock-chips.com>2016-02-16 19:40:54 +0800
commit9641a841ed6c1da9b4853d84ee6620fb382e0cc6 (patch)
tree21d052e80d9ebd10ab3472f209e7d01787c64525 /arch/arm64/boot/dts/rockchip/rk3366-tb.dts
parentd6ad7277b0aaf26cc1a99a05826b2acb69a3be7a (diff)
arm64: dts: rockchip: add specific config for GMAC on rk3366-tb
Change-Id: I419fbe457ad3246fc42e2cda54097fceab76b466 Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3366-tb.dts')
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3366-tb.dts36
1 files changed, 35 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3366-tb.dts b/arch/arm64/boot/dts/rockchip/rk3366-tb.dts
index 1f84d52148cb..0609a31e5dc8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3366-tb.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3366-tb.dts
@@ -163,6 +163,24 @@
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 {
@@ -500,4 +518,20 @@
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";
+};