sunxi: Orange Pi R1: Fix USB Ethernet and activate SPI
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.14 / 202-ARM-dts-sun8i-activate-SPI-on-Orange-Pi-R1.patch
1 From 4a36ec1f82db3fa34d766dec5062b4de06b50f7f Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Thu, 28 Dec 2017 14:11:36 +0100
4 Subject: [PATCH] ARM: dts: sun8i: activate SPI on Orange Pi R1
5
6 This board has a SPI flash, activate it also in device tree by default.
7
8 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 ---
10 arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 4 ++++
11 1 file changed, 4 insertions(+)
12
13 --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
14 +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
15 @@ -68,6 +68,14 @@
16 };
17 };
18
19 +&spi0 {
20 + status = "okay";
21 +
22 + flash@0 {
23 + compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
24 + };
25 +};
26 +
27 &ohci1 {
28 /*
29 * RTL8152B USB-Ethernet adapter is connected to USB1,