020-v2018.09-arm-zynq-dts-add-spi-flash-node-to-zedboard.patch 1.2 KB

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