[U-Boot] [PATCH] sunxi: enable H3 EMAC for the nanopi neo

The nanopi already had the CONFIG_SUN8I_EMAC=y enabled in it's defconfig file, but was missing the &emac the device tree entry.
Signed-off-by: Jelle van der Waa jelle@vdwaa.nl --- arch/arm/dts/sun8i-h3-nanopi-neo.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/arch/arm/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/dts/sun8i-h3-nanopi-neo.dts index 3d64caf..096ff0b 100644 --- a/arch/arm/dts/sun8i-h3-nanopi-neo.dts +++ b/arch/arm/dts/sun8i-h3-nanopi-neo.dts @@ -123,3 +123,14 @@ /* USB VBUS is always on */ status = "okay"; }; + +&emac { + phy = <&phy1>; + phy-mode = "mii"; + allwinner,use-internal-phy; + allwinner,leds-active-low; + status = "okay"; + phy1: ethernet-phy@1 { + reg = <1>; + }; +};

On Mon, Dec 05, 2016 at 07:47:21PM +0100, Jelle van der Waa wrote:
The nanopi already had the CONFIG_SUN8I_EMAC=y enabled in it's defconfig file, but was missing the &emac the device tree entry.
Signed-off-by: Jelle van der Waa jelle@vdwaa.nl
Acked-by: Maxime Ripard maxime.ripard@free-electrons.com
Thanks, Maxime

On Tue, Dec 6, 2016 at 5:07 PM, Maxime Ripard maxime.ripard@free-electrons.com wrote:
On Mon, Dec 05, 2016 at 07:47:21PM +0100, Jelle van der Waa wrote:
The nanopi already had the CONFIG_SUN8I_EMAC=y enabled in it's defconfig file, but was missing the &emac the device tree entry.
Signed-off-by: Jelle van der Waa jelle@vdwaa.nl
Acked-by: Maxime Ripard maxime.ripard@free-electrons.com
Applied to u-boot-sunxi/master
thanks!
participants (3)
-
Jagan Teki
-
Jelle van der Waa
-
Maxime Ripard