From 20e552994b14ba74162f276d19574a8c1d701a04 Mon Sep 17 00:00:00 2001 From: Roger Chen Date: Fri, 18 Mar 2016 14:22:06 +0800 Subject: [PATCH] ARM64: dts: rk3399-tb: add GMAC node for rk3399-tb Change-Id: I31f984a40bf8e2c04243e47fed7435bd3e400c4c Signed-off-by: Roger Chen --- arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi index f09c9bd8b788..8680cceb9bd5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi @@ -115,6 +115,20 @@ enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; }; + 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"; + regulator-name = "vcc_phy"; + regulator-always-on; + regulator-boot-on; + }; + io-domains { compatible = "rockchip,rk3399-io-voltage-domain"; rockchip,grf = <&grf>; @@ -425,3 +439,19 @@ &cpu_b1 { cpu-supply = <&vdd_cpu_b>; }; + +&gmac { + phy-supply = <&vcc_phy>; + phy-mode = "rgmii"; + clock_in_out = "input"; + snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 50000>; + assigned-clocks = <&cru SCLK_MAC>; + assigned-clock-parents = <&ext_gmac>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + tx_delay = <0x30>; + rx_delay = <0x10>; + status = "disabled"; +}; -- 2.34.1