From ea120d536ef253cb41f1e857e6723b60542fb541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BA=9A=E8=BF=90?= Date: Sat, 22 Sep 2018 18:05:31 +0800 Subject: [PATCH] Add the required DT parts to enable Ethernet (dwmac-sun8i driver) on the Nano Pi NEO2/NEO-Plus2 board. We can use nfs or nfsrootfs in bootloader. --- arch/arm/dts/sun50i-h5-nanopi-neo2.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo2.dts index cd8d2f27a107..4a1661dde40f 100644 --- a/arch/arm/dts/sun50i-h5-nanopi-neo2.dts +++ b/arch/arm/dts/sun50i-h5-nanopi-neo2.dts @@ -54,6 +54,7 @@ aliases { serial0 = &uart0; i2c5 = &r_i2c; + ethernet0 = &emac; }; chosen { @@ -93,3 +94,14 @@ pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-mode = "rgmii"; + phy = <&phy1>; + status = "okay"; + phy1: ethernet-phy@7 { + reg = <7>; + }; +};