Skip to contentSkip to conversation

Add SPI flash for Aramda 370 and XP dev board

PATCH New Gregory CLEMENT 2 participants 4 messages Feb 5, 2013 – Feb 16, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Add SPI flash for Aramda 370 and XP dev board

Hi,

Following the Ezequiel's patches this patch set add support for SPI data Flash for two other development board from Marvell.

This pacthes depend on the SPI serie of Ezequiel [1], and also on the selection of CONFIG_MTD_M25P80=y in the config file.

[1] http://thread.gmane.org/gmane.linux.kernel.spi.devel/12568

Gregory CLEMENT (2):
arm: mvebu: Add SPI flash on Armada XP-DB board
arm: mvebu: Add SPI flash on Armada 370 DB board

 arch/arm/boot/dts/armada-370-db.dts |   11 +++++++++++
 arch/arm/boot/dts/armada-xp-db.dts  |   12 ++++++++++++
 2 files changed, 23 insertions(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 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.

---
 arch/arm/boot/dts/armada-xp-db.dts |   12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/armada-xp-db.dts +12 -0
index c7035c5..e5dfb4f 100644
@@ -97,5 +97,17 @@
 			status = "okay";
 			/* No CD or WP GPIOs */
 		};
+
+		spi0: spi at d0010600 {
+			status = "okay";
+
+			spi-flash at 0 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				compatible = "m25p64";
+				reg = <0>; /* Chip select 0 */
+				spi-max-frequency = <20000000>;
+			};
+		};
 	};
 };
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 1/2 arm: mvebu: Add SPI flash on Armada XP-DB board

Quoted 8 lines · Gregory CLEMENT

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.

---
 arch/arm/boot/dts/armada-xp-db.dts |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Both 1 and 2 of this series applied to mvebu/dt, resolved add/add conflicts in both (usb).

thx,

Jason.

#3 lore raw

PATCH 2/2 arm: mvebu: Add SPI flash on Armada 370 DB board

In reply to Gregory CLEMENT

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

---
 arch/arm/boot/dts/armada-370-db.dts |   11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/armada-370-db.dts +11 -0
index 8e66a7c..d3ff947 100644
@@ -74,5 +74,16 @@
 			status = "disabled";
 			/* No CD or WP GPIOs */
 		};
+		spi0: spi at d0010600 {
+			status = "okay";
+
+			spi-flash at 0 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				compatible = "mx25l25635e";
+				reg = <0>; /* Chip select 0 */
+				spi-max-frequency = <50000000>;
+			};
+		};
 	};
 };
Signature · 1 line
1.7.9.5