
Hi Jonathan,
I got an error with the patch. arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dtb: ERROR (phandle_references): Reference to non-existent node or label "reg_gmac_3v3"
the attached patch, with reg_gmac_3v3, works for me.
-antony
On Fri, May 18, 2018 at 07:56:07AM -0500, Jonathan A. Kollasch wrote:
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@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 {
serial0 = &uart0; };ethernet0 = &emac;
@@ -71,6 +72,22 @@ status = "okay"; };
+&emac {
- pinctrl-names = "default";
- pinctrl-0 = <&emac_rgmii_pins>;
- phy-supply = <®_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>, <&mmc0_cd_pin>; -- 2.11.0