openwrt/target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch
Luka Perkov 3d11f8ae36 imx6: fix device-tree mac address assignment for ventana sky2/eth1
Some Ventana boards have a Marvell sky2 GigE controller as eth1 however
assigning the mac address through device-tree is difficult because the
PCI slot can move around depending on board configuration and slot population.

To work around this we add a patch to the sky2 driver to allow accessing its
mac address via a device-tree alias.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 48013
2015-12-28 04:56:27 +00:00

25 lines
962 B
Diff

Index: linux-4.3/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
===================================================================
--- linux-4.3.orig/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi 2015-12-18 10:39:44.959158318 -0800
+++ linux-4.3/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi 2015-12-18 10:43:21.000000000 -0800
@@ -15,6 +15,7 @@
/* these are used by bootloader for disabling nodes */
aliases {
ethernet1 = &eth1;
+ sky2 = &eth1;
led0 = &led0;
led1 = &led1;
led2 = &led2;
Index: linux-4.3/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
===================================================================
--- linux-4.3.orig/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi 2015-12-18 10:39:44.959158318 -0800
+++ linux-4.3/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi 2015-12-18 10:43:21.000000000 -0800
@@ -15,6 +15,7 @@
/* these are used by bootloader for disabling nodes */
aliases {
ethernet1 = &eth1;
+ sky2 = &eth1;
led0 = &led0;
led1 = &led1;
led2 = &led2;