diff mbox

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

Message ID 1360097695-32663-2-git-send-email-gregory.clement@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gregory CLEMENT Feb. 5, 2013, 8:54 p.m. UTC
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>
---
 arch/arm/boot/dts/armada-xp-db.dts |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Jason Cooper Feb. 16, 2013, 3:20 p.m. UTC | #1
On Tue, Feb 05, 2013 at 09:54:54PM +0100, Gregory CLEMENT wrote:
> 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>
> ---
>  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.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/armada-xp-db.dts b/arch/arm/boot/dts/armada-xp-db.dts
index c7035c5..e5dfb4f 100644
--- a/arch/arm/boot/dts/armada-xp-db.dts
+++ b/arch/arm/boot/dts/armada-xp-db.dts
@@ -97,5 +97,17 @@ 
 			status = "okay";
 			/* No CD or WP GPIOs */
 		};
+
+		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>;
+			};
+		};
 	};
 };