sunxi: A64: add device tree changes for A64 Ethernet
[openwrt/staging/lynxis.git] / target / linux / sunxi / patches-4.9 / 0065-arm64-allwinner-a64-pine64-add-missing-ethernet0-ali.patch
1 From dff751c68904cf587d918cfb6b2f5b0112f73bc9 Mon Sep 17 00:00:00 2001
2 From: Icenowy Zheng <icenowy@aosc.io>
3 Date: Sat, 22 Jul 2017 10:28:51 +0800
4 Subject: arm64: allwinner: a64: pine64: add missing ethernet0 alias
5
6 The EMAC Ethernet controller was enabled, but an accompanying alias
7 was not added. This results in unstable numbering if other Ethernet
8 devices, such as a USB dongle, are present. Also, the bootloader uses
9 the alias to assign a generated stable MAC address to the device node.
10
11 Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
12 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
13 Fixes: 970239437493 ("arm64: allwinner: pine64: Enable dwmac-sun8i")
14 [wens@csie.org: Rewrite commit log as fixing a previous patch with Fixes]
15 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
16 ---
17 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
21 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
22 @@ -51,6 +51,7 @@
23 compatible = "pine64,pine64", "allwinner,sun50i-a64";
24
25 aliases {
26 + ethernet0 = &emac;
27 serial0 = &uart0;
28 };
29