508-arm64-dts-armada-3720-espressobin-wire-up-spi-flash.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From bffed3d4abcd32ba6d492a9bd7ebe81dc92eaa9a Mon Sep 17 00:00:00 2001
  2. From: Ellie Reeves <ellierevves@gmail.com>
  3. Date: Sun, 25 Mar 2018 21:57:36 +0200
  4. Subject: [PATCH] arm64: dts: armada-3720-espressobin: wire up spi flash
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This is the storage the machine boots from by default. The partitioning
  9. is taken from the U-Boot that is shipped with the board. There is some
  10. more space on the flash that isn't used.
  11. Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
  12. Signed-off-by: Ellie Reeves <ellierevves@gmail.com>
  13. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  14. Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
  15. ---
  16. .../dts/marvell/armada-3720-espressobin.dts | 27 +++++++++++++++++++
  17. 1 file changed, 27 insertions(+)
  18. --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
  19. +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
  20. @@ -103,6 +103,33 @@
  21. status = "okay";
  22. };
  23. +&spi0 {
  24. + status = "okay";
  25. +
  26. + flash@0 {
  27. + reg = <0>;
  28. + compatible = "winbond,w25q32dw", "jedec,spi-flash";
  29. + spi-max-frequency = <104000000>;
  30. + m25p,fast-read;
  31. +
  32. + partitions {
  33. + compatible = "fixed-partitions";
  34. + #address-cells = <1>;
  35. + #size-cells = <1>;
  36. +
  37. + partition@0 {
  38. + label = "uboot";
  39. + reg = <0 0x180000>;
  40. + };
  41. +
  42. + partition@180000 {
  43. + label = "ubootenv";
  44. + reg = <0x180000 0x10000>;
  45. + };
  46. + };
  47. + };
  48. +};
  49. +
  50. /* Exported on the micro USB connector J5 through an FTDI */
  51. &uart0 {
  52. status = "okay";