[U-Boot] [PATCH 2/2] enable EMAC for A64-OLinuXino

Alexander Weidinger alexander.weidinger at tum.de
Thu Nov 15 22:07:42 UTC 2018


Add Ethernet nodes to OLinuXino DT to enable Gigabit Ethernet
[ commit 21eac6f33e68ae778e9d1c910606452abf058d3d in Linux ]

Set PHY TX delay of 600ps
[ commit 679294497be31596e1c9c61507746d72b6b05f26 in Linux ]

Signed-off-by: Alexander Weidinger <alexander.weidinger at tum.de>
---
 arch/arm/dts/sun50i-a64-olinuxino.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm/dts/sun50i-a64-olinuxino.dts b/arch/arm/dts/sun50i-a64-olinuxino.dts
index 3b3081b10e..d29695a7d0 100644
--- a/arch/arm/dts/sun50i-a64-olinuxino.dts
+++ b/arch/arm/dts/sun50i-a64-olinuxino.dts
@@ -51,6 +51,7 @@
 	compatible = "olimex,a64-olinuxino", "allwinner,sun50i-a64";
 
 	aliases {
+		ethernet0 = &emac;
 		serial0 = &uart0;
 	};
 
@@ -64,6 +65,23 @@
 	};
 };
 
+&emac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	phy-mode = "rgmii";
+	phy-handle = <&ext_rgmii_phy>;
+	phy-supply = <&reg_dcdc1>;
+	allwinner,tx-delay-ps = <600>;
+	status = "okay";
+};
+
+&mdio {
+	ext_rgmii_phy: ethernet-phy at 1 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <1>;
+	};
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins>;
-- 
2.19.1



More information about the U-Boot mailing list