1
0

081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch 910 B

123456789101112131415161718192021222324252627282930313233343536
  1. From 4661c3afefe900ff7b5004aca0a2c927cfa37f3b Mon Sep 17 00:00:00 2001
  2. From: Emmanuel Vadot <manu@freebsd.org>
  3. Date: Mon, 21 May 2018 13:54:13 +0200
  4. Subject: [PATCH] arm64: dts: allwinner: sun50i: a64: Add spi flash node for
  5. sopine
  6. The Sopine and Pine64-LTS have a winbond w25q128 spi flash on spi0.
  7. Add a node for it.
  8. Signed-off-by: Emmanuel Vadot <manu@freebsd.org>
  9. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
  10. ---
  11. arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi | 12 ++++++++++++
  12. 1 file changed, 12 insertions(+)
  13. --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
  14. +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
  15. @@ -75,6 +75,18 @@
  16. };
  17. };
  18. +&spi0 {
  19. + status = "okay";
  20. +
  21. + flash@0 {
  22. + #address-cells = <1>;
  23. + #size-cells = <1>;
  24. + compatible = "jedec,spi-nor";
  25. + reg = <0>;
  26. + spi-max-frequency = <40000000>;
  27. + };
  28. +};
  29. +
  30. #include "axp803.dtsi"
  31. &reg_aldo2 {