From 9641a841ed6c1da9b4853d84ee6620fb382e0cc6 Mon Sep 17 00:00:00 2001 From: Roger Chen Date: Mon, 15 Feb 2016 17:58:38 +0800 Subject: [PATCH] arm64: dts: rockchip: add specific config for GMAC on rk3366-tb Change-Id: I419fbe457ad3246fc42e2cda54097fceab76b466 Signed-off-by: Roger Chen --- arch/arm64/boot/dts/rockchip/rk3366-tb.dts | 36 +++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) 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 = <ð_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"; +}; -- 2.34.1