from sunxi/dt64-for-4.16 commit 27d7f929702739c186e72a

arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support
add arm64 H5 dwmac-sun8i support for this board

Signed-off-by: Antony Antony <ant...@phenome.org>
---
 ...-dts-sun50i-nanopi-neo-plus2-add-ethernet.patch | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 
target/linux/sunxi/patches-4.14/062-arm-dts-sun50i-nanopi-neo-plus2-add-ethernet.patch

diff --git 
a/target/linux/sunxi/patches-4.14/062-arm-dts-sun50i-nanopi-neo-plus2-add-ethernet.patch
 
b/target/linux/sunxi/patches-4.14/062-arm-dts-sun50i-nanopi-neo-plus2-add-ethernet.patch
new file mode 100644
index 0000000..e572947
--- /dev/null
+++ 
b/target/linux/sunxi/patches-4.14/062-arm-dts-sun50i-nanopi-neo-plus2-add-ethernet.patch
@@ -0,0 +1,46 @@
+From 27d7f929702739c186e72a4dcd255e0faa3beefc Mon Sep 17 00:00:00 2001
+From: Antony Antony <ant...@phenome.org>
+Date: Wed, 29 Nov 2017 15:17:16 +0100
+Subject: [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC
+ support
+
+add arm64 H5 dwmac-sun8i support for this board
+
+Signed-off-by: Antony Antony <ant...@phenome.org>
+Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>
+
+diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts 
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
+index ea11012..1ed9f21 100644
+--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
+@@ -53,6 +53,7 @@
+       compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
+
+       aliases {
++              ethernet0 = &emac;
+               serial0 = &uart0;
+       };
+
+@@ -133,6 +134,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@7 {
++              compatible = "ethernet-phy-ieee802.3-c22";
++              reg = <7>;
++      };
++};
++
+ &mmc0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc0_pins_a>;
-- 
2.7.4


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to