aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-4.14/202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2017-12-28 19:34:47 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2018-01-22 22:59:38 +0100
commit40db7a9dec92d3e263bd0933b972865061419e2e (patch)
treec0ee5f5b1c461aa3cf8f26065633b13a11891ee9 /target/linux/sunxi/patches-4.14/202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch
parent75f7c1c9ac1ab2b0db398a6a2b48134b779275ab (diff)
downloadupstream-40db7a9dec92d3e263bd0933b972865061419e2e.tar.gz
upstream-40db7a9dec92d3e263bd0933b972865061419e2e.tar.bz2
upstream-40db7a9dec92d3e263bd0933b972865061419e2e.zip
sunxi: Orange Pi R1: Fix USB Ethernet and activate SPI
The USB Ethernet is not working with the patches proposed for upstream, fix this and activate the SPI node as this board always has a SPI flash. Both patches are also targeted for upstream kernel 4.16 and 4.17. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/sunxi/patches-4.14/202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch')
-rw-r--r--target/linux/sunxi/patches-4.14/202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.14/202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch b/target/linux/sunxi/patches-4.14/202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch
new file mode 100644
index 0000000000..3f03c1163c
--- /dev/null
+++ b/target/linux/sunxi/patches-4.14/202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch
@@ -0,0 +1,29 @@
+From 4a36ec1f82db3fa34d766dec5062b4de06b50f7f Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Thu, 28 Dec 2017 14:11:36 +0100
+Subject: [PATCH] ARM: dts: sun8i: activate SPI on Orange Pi R1
+
+This board has a SPI flash, activate it also in device tree by default.
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
++++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
+@@ -68,6 +68,14 @@
+ };
+ };
+
++&spi0 {
++ status = "okay";
++
++ flash@0 {
++ compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
++ };
++};
++
+ &ohci1 {
+ /*
+ * RTL8152B USB-Ethernet adapter is connected to USB1,