uboot-zynq: add support for the zybo z7 board
[openwrt/openwrt.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 --- a/arch/arm/dts/zynq-zed.dts
24 +++ b/arch/arm/dts/zynq-zed.dts
25 @@ -51,6 +51,13 @@
26 &qspi {
27 u-boot,dm-pre-reloc;
28 status = "okay";
29 + num-cs = <1>;
30 + flash@0 {
31 + compatible = "spansion,s25fl256s", "spi-flash";
32 + reg = <0>;
33 + spi-max-frequency = <30000000>;
34 + m25p,fast-read;
35 + };
36 };
37
38 &sdhci0 {