[U-Boot] [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support

Jonathan A. Kollasch jakllsch at kollasch.net
Fri May 18 12:56:07 UTC 2018


add arm64 H5 dwmac-sun8i support for this board

commit arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support
("27d7f929702739c186e72a4dcd255e0faa3beefc") from torvalds/linux

Signed-off-by: Jonathan A. Kollasch <jakllsch at kollasch.net>
---

 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
index f1406c224b..aadc087775 100644
--- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
+++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
@@ -52,6 +52,7 @@
 	compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
 
 	aliases {
+		ethernet0 = &emac;
 		serial0 = &uart0;
 	};
 
@@ -71,6 +72,22 @@
 	status = "okay";
 };
 
+&emac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&emac_rgmii_pins>;
+	phy-supply = <&reg_gmac_3v3>;
+	phy-handle = <&ext_rgmii_phy>;
+	phy-mode = "rgmii";
+	status = "okay";
+};
+
+&external_mdio {
+	ext_rgmii_phy: ethernet-phy at 7 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <7>;
+	};
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
-- 
2.11.0



More information about the U-Boot mailing list