Sfoglia il codice sorgente

arm: mvebu: Add SPI flash on Armada XP-DB board

This patch add support for the SPI flash M25P64 which is present on
the Armada XP DB board. This flash stores the bootloader and its
environment.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Gregory CLEMENT 12 anni fa
parent
commit
1f24a21f8e
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 12 0
      arch/arm/boot/dts/armada-xp-db.dts

+ 12 - 0
arch/arm/boot/dts/armada-xp-db.dts

@@ -109,5 +109,17 @@
 		usb@d0052000 {
 			status = "okay";
 		};
+
+		spi0: spi@d0010600 {
+			status = "okay";
+
+			spi-flash@0 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				compatible = "m25p64";
+				reg = <0>; /* Chip select 0 */
+				spi-max-frequency = <20000000>;
+			};
+		};
 	};
 };