linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: mvebu: Add SPI flash on Armada XP-GP board
@ 2013-02-05 11:24 Ezequiel Garcia
  2013-02-05 12:23 ` Jason Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2013-02-05 11:24 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds an SPI master device node for Armada XP-GP board.
This master node is an SPI flash controller 'n25q128a13'.

Since there is no 'partitions' node declared, one full sized
partition named as the device will be created.

Cc: Gregory Clement <gregory.clement@free-electrons.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Lior Amsalem <alior@marvell.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
This patch depends on:

 1. Gregory's patch for Armada XP GP board:
      arm: mvebu: support for the new Armada XP development board(DB-MV784MP-GP)

 2. My previous patch for SPI on Armada 370/XP:
      arm: mvebu: Add support for SPI controller in Armada 370/XP

And don't forget to compile the SPI flash driver, CONFIG_MTD_M25P80=y

 arch/arm/boot/dts/armada-xp-gp.dts |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/armada-xp-gp.dts b/arch/arm/boot/dts/armada-xp-gp.dts
index 3eea531..1c8afe2 100644
--- a/arch/arm/boot/dts/armada-xp-gp.dts
+++ b/arch/arm/boot/dts/armada-xp-gp.dts
@@ -97,5 +97,17 @@
 			phy = <&phy3>;
 			phy-mode = "rgmii-id";
 		};
+
+		spi0: spi at d0010600 {
+			status = "okay";
+
+			spi-flash at 0 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				compatible = "n25q128a13";
+				reg = <0>; /* Chip select 0 */
+				spi-max-frequency = <108000000>;
+			};
+		};
 	};
 };
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-02-06 15:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 11:24 [PATCH] arm: mvebu: Add SPI flash on Armada XP-GP board Ezequiel Garcia
2013-02-05 12:23 ` Jason Cooper
2013-02-05 12:38 ` Andrew Lunn
2013-02-05 12:48   ` Jason Cooper
2013-02-05 14:27     ` Ezequiel Garcia
2013-02-05 15:31       ` Jason Cooper
2013-02-05 16:17         ` Thomas Petazzoni
2013-02-05 16:20           ` Gregory CLEMENT
2013-02-05 17:07             ` Thomas Petazzoni
2013-02-05 18:09               ` Jason Cooper
2013-02-06  8:10                 ` Lior Amsalem
2013-02-05 19:46               ` Ezequiel Garcia
2013-02-05 16:25           ` Jason Cooper
2013-02-05 16:28 ` Gregory CLEMENT
2013-02-05 20:17   ` Gregory CLEMENT
2013-02-06 10:54     ` Ezequiel Garcia
2013-02-06 12:31       ` Gregory CLEMENT
2013-02-06 15:32       ` Ezequiel Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).