uboot-zynq: update to 2018.07
[openwrt/staging/hauke.git] / package / boot / uboot-zynq / patches / 020-v2018.09-arm-zynq-dts-add-spi-flash-node-to-zedboard.patch
1 From a492fdffa3c86f6b8420b6433a2ce07271597324 Mon Sep 17 00:00:00 2001
2 From: Luis Araneda <luaraneda@gmail.com>
3 Date: Fri, 27 Jul 2018 04:43:42 -0400
4 Subject: [PATCH] arm: zynq: dts: add spi flash node to zedboard
5
6 Add a flash node to fix the detection of the memory IC.
7 With the changes introduced with commit 8fee8845e754
8 ("enf_sf: reuse setup_flash_device instead of open coding it")
9 the SPI speed is now read from device-tree or a default value
10 is applied. This replaced the old behavior of setting the
11 SPI speed to CONFIG_ENV_SPI_MAX_HZ.
12
13 As this board didn't have a flash node, the default value
14 was applied to the SPI speed, producing an error when probing
15 the flash memory (speed too slow).
16
17 Signed-off-by: Luis Araneda <luaraneda@gmail.com>
18 Signed-off-by: Michal Simek <michal.simek@xilinx.com>
19 ---
20 arch/arm/dts/zynq-zed.dts | 7 +++++++
21 1 file changed, 7 insertions(+)
22
23 diff --git a/arch/arm/dts/zynq-zed.dts b/arch/arm/dts/zynq-zed.dts
24 index 24eccf1633..9c505fb7b8 100644
25 --- a/arch/arm/dts/zynq-zed.dts
26 +++ b/arch/arm/dts/zynq-zed.dts
27 @@ -51,6 +51,13 @@
28 &qspi {
29 u-boot,dm-pre-reloc;
30 status = "okay";
31 + num-cs = <1>;
32 + flash@0 {
33 + compatible = "spansion,s25fl256s", "spi-flash";
34 + reg = <0>;
35 + spi-max-frequency = <30000000>;
36 + m25p,fast-read;
37 + };
38 };
39
40 &sdhci0 {
41 --
42 2.18.0
43