summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
diff options
context:
space:
mode:
authorAntony Antony <antony@phenome.org>2017-11-29 15:17:16 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-11-29 16:30:05 +0100
commit27d7f929702739c186e72a4dcd255e0faa3beefc (patch)
tree29799884ae3c989f6f598379d993edff75f59fea /arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
parent6d84b6c9c624db16920091f9e1558948e1446bb7 (diff)
downloadtalos-op-linux-27d7f929702739c186e72a4dcd255e0faa3beefc.tar.gz
talos-op-linux-27d7f929702739c186e72a4dcd255e0faa3beefc.zip
arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support
add arm64 H5 dwmac-sun8i support for this board Signed-off-by: Antony Antony <antony@phenome.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts')
-rw-r--r--arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts17
1 files changed, 17 insertions, 0 deletions
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 ea1101293892..1ed9f219deaf 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>;
OpenPOWER on IntegriCloud