mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.14 / 521-arm64-dts-armada-3720-espressobin-correct-spi-node.patch
1 From 3217cdfe8a3eae76fafbebbe407be5985a7fd4c2 Mon Sep 17 00:00:00 2001
2 From: Tomasz Maciej Nowak <tmn505@gmail.com>
3 Date: Mon, 31 Dec 2018 14:18:50 +0100
4 Subject: [PATCH] arm64: dts: armada-3720-espressobin: correct spi node
5
6 The manufacturer of this board, ships it with various SPI NOR chips and
7 increments U-Boot bootloader version along the time. There is no way to
8 tell which is placed on the board since no revision bump takes place.
9 This creates two issues.
10
11 The first, cosmetic. Since the SPI chip may differ, there's message on
12 boot stating that kernel expected w25q32dw and found different one. To
13 correct this, remove optional device-specific compatible string. Being
14 here lets replace bogus "spi-flash" string with proper one.
15
16 The second is linked to partitions layout, it changed after commit [1]
17 in Marvells downstream U-Boot fork, shifting environment location to the
18 end of boot device. Since the new boards can have U-Boot with this
19 change it can lead to improper results writing or reading from these
20 partitions. We can't tell if users will update bootloader to recent
21 version, so let's drop current layout.
22
23 1. https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/81e7251252aefe1a6b829ed05f3586320cb45372
24
25 Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
26 ---
27  .../dts/marvell/armada-3720-espressobin.dts    | 18 +-----------------
28  1 file changed, 1 insertion(+), 17 deletions(-)
29
30 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
31 +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
32 @@ -123,25 +123,9 @@
33  
34         flash@0 {
35                 reg = <0>;
36 -               compatible = "winbond,w25q32dw", "jedec,spi-flash";
37 +               compatible = "jedec,spi-nor";
38                 spi-max-frequency = <104000000>;
39                 m25p,fast-read;
40 -
41 -               partitions {
42 -                       compatible = "fixed-partitions";
43 -                       #address-cells = <1>;
44 -                       #size-cells = <1>;
45 -
46 -                       partition@0 {
47 -                               label = "uboot";
48 -                               reg = <0 0x180000>;
49 -                       };
50 -
51 -                       partition@180000 {
52 -                               label = "ubootenv";
53 -                               reg = <0x180000 0x10000>;
54 -                       };
55 -               };
56         };
57  };
58