1
0

521-arm64-dts-armada-3720-espressobin-correct-spi-node.patch 2.0 KB

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