aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-4.9/0080-ARM-dts-sunxi-nanopi-neo-Enable-dwmac-sun8i.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2017-09-26 20:05:31 +0200
committerDaniel Golle <daniel@makrotopia.org>2017-10-08 17:16:39 +0200
commit333f90347e76e6c0c121c1c7df917780eef8b59e (patch)
treebd2e0ea1211892f03ae36448416f1642fdb04638 /target/linux/sunxi/patches-4.9/0080-ARM-dts-sunxi-nanopi-neo-Enable-dwmac-sun8i.patch
parentb80f6a5876086afebde1b80383219504863636fc (diff)
downloadupstream-333f90347e76e6c0c121c1c7df917780eef8b59e.tar.gz
upstream-333f90347e76e6c0c121c1c7df917780eef8b59e.tar.bz2
upstream-333f90347e76e6c0c121c1c7df917780eef8b59e.zip
sunxi: kernel: add patches for NanoPi NEO
Enable dwmac-sun8i Ethernet core to use the built-in FastEthernet port. Enable exposed UART, USB and I2C pins. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/sunxi/patches-4.9/0080-ARM-dts-sunxi-nanopi-neo-Enable-dwmac-sun8i.patch')
-rw-r--r--target/linux/sunxi/patches-4.9/0080-ARM-dts-sunxi-nanopi-neo-Enable-dwmac-sun8i.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.9/0080-ARM-dts-sunxi-nanopi-neo-Enable-dwmac-sun8i.patch b/target/linux/sunxi/patches-4.9/0080-ARM-dts-sunxi-nanopi-neo-Enable-dwmac-sun8i.patch
new file mode 100644
index 0000000000..ef65719fe4
--- /dev/null
+++ b/target/linux/sunxi/patches-4.9/0080-ARM-dts-sunxi-nanopi-neo-Enable-dwmac-sun8i.patch
@@ -0,0 +1,26 @@
+Index: linux-4.9.51/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
+===================================================================
+--- linux-4.9.51.orig/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
++++ linux-4.9.51/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
+@@ -53,6 +53,7 @@
+
+ aliases {
+ serial0 = &uart0;
++ ethernet0 = &emac;
+ };
+
+ chosen {
+@@ -81,6 +82,13 @@
+ status = "okay";
+ };
+
++&emac {
++ phy-handle = <&int_mii_phy>;
++ phy-mode = "mii";
++ allwinner,leds-active-low;
++ status = "okay";
++};
++
+ &mmc0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;