ramips: fix mt7620a ND/SD pins pinmuxes
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.14 / 521-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 [drop partitions, not every U-Boot has same layout]
19 Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
20 ---
21 .../dts/marvell/armada-3720-espressobin.dts | 13 +++++++++++++
22 1 file changed, 13 insertions(+)
23
24 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
25 +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
26 @@ -96,6 +96,19 @@
27 status = "okay";
28 };
29
30 +&spi0 {
31 + status = "okay";
32 +
33 + flash@0 {
34 + #address-cells = <1>;
35 + #size-cells = <1>;
36 + reg = <0>;
37 + compatible = "winbond,w25q32dw", "jedec,spi-flash";
38 + spi-max-frequency = <104000000>;
39 + m25p,fast-read;
40 + };
41 +};
42 +
43 /* Exported on the micro USB connector J5 through an FTDI */
44 &uart0 {
45 status = "okay";