Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1437644

[PATCH 3/3] arm64: dts: rockchip: add GMAC dt nodes for RK3399 evb

From Roger Chen <roger.chen@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] arm64: dts: rockchip: add GMAC dt nodes for RK3399 evb
Date 2016-07-06 13:10 +0200
Message-ID <rRSSm-8rf-37@gated-at.bofh.it> (permalink)
References <rRSSl-8rf-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch add ethernet GMAC dt nodes for RK3399 evaluation board.

Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
---
 arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
index 1a3eb14..337c939 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
@@ -69,6 +69,13 @@
 		regulator-max-microvolt = <3300000>;
 	};
 
+	clkin_gmac: external-gmac-clock {
+		compatible = "fixed-clock";
+		clock-frequency = <125000000>;
+		clock-output-names = "clkin_gmac";
+		#clock-cells = <0>;
+	};
+
 	vcc_phy: vcc-phy-regulator {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_phy";
@@ -122,3 +129,19 @@
 		};
 	};
 };
+
+&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_RMII_SRC>;
+	assigned-clock-parents = <&clkin_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	tx_delay = <0x28>;
+	rx_delay = <0x11>;
+	status = "okay";
+};
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] *** support GMAC for RK3399 & RK3366 *** Roger Chen <roger.chen@rock-chips.com> - 2016-07-06 13:10 +0200
  [PATCH 2/3] arm64: dts: rockchip: add GMAC dt nodes for rk3399 SoC Roger Chen <roger.chen@rock-chips.com> - 2016-07-06 13:10 +0200
    Re: [PATCH 2/3] arm64: dts: rockchip: add GMAC dt nodes for rk3399  SoC Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-07-06 14:30 +0200
  [PATCH 3/3] arm64: dts: rockchip: add GMAC dt nodes for RK3399 evb Roger Chen <roger.chen@rock-chips.com> - 2016-07-06 13:10 +0200

csiph-web