mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.14 / 508-arm64-dts-armada-3720-espressobin-wire-up-spi-flash.patch
1 From bffed3d4abcd32ba6d492a9bd7ebe81dc92eaa9a Mon Sep 17 00:00:00 2001
2 From: Ellie Reeves <ellierevves@gmail.com>
3 Date: Sun, 25 Mar 2018 21:57:36 +0200
4 Subject: [PATCH] arm64: dts: armada-3720-espressobin: wire up spi flash
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This is the storage the machine boots from by default. The partitioning
10 is taken from the U-Boot that is shipped with the board. There is some
11 more space on the flash that isn't used.
12
13 Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
14 Signed-off-by: Ellie Reeves <ellierevves@gmail.com>
15 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
16 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
17 ---
18  .../dts/marvell/armada-3720-espressobin.dts   | 27 +++++++++++++++++++
19  1 file changed, 27 insertions(+)
20
21 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
22 +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
23 @@ -96,6 +96,33 @@
24         status = "okay";
25  };
26  
27 +&spi0 {
28 +       status = "okay";
29 +
30 +       flash@0 {
31 +               reg = <0>;
32 +               compatible = "winbond,w25q32dw", "jedec,spi-flash";
33 +               spi-max-frequency = <104000000>;
34 +               m25p,fast-read;
35 +
36 +               partitions {
37 +                       compatible = "fixed-partitions";
38 +                       #address-cells = <1>;
39 +                       #size-cells = <1>;
40 +
41 +                       partition@0 {
42 +                               label = "uboot";
43 +                               reg = <0 0x180000>;
44 +                       };
45 +
46 +                       partition@180000 {
47 +                               label = "ubootenv";
48 +                               reg = <0x180000 0x10000>;
49 +                       };
50 +               };
51 +       };
52 +};
53 +
54  /* Exported on the micro USB connector J5 through an FTDI */
55  &uart0 {
56         status = "okay";