arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support
authorAntony Antony <antony@phenome.org>
Wed, 29 Nov 2017 14:17:16 +0000 (15:17 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 29 Nov 2017 15:30:05 +0000 (16:30 +0100)
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>
arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts

index ea1101293892aafaafc2a1a71f1ed549c362d580..1ed9f219deaf63cf41bcc840e90de90f1e84ecf5 100644 (file)
@@ -53,6 +53,7 @@
        compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
 
        aliases {
+               ethernet0 = &emac;
                serial0 = &uart0;
        };
 
        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>;