arm: mvebu: Add SPI flash on Armada XP-GP board
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 6 Feb 2013 13:06:23 +0000 (10:06 -0300)
committerArnd Bergmann <arnd@arndb.de>
Thu, 28 Feb 2013 17:57:14 +0000 (18:57 +0100)
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Lior Amsalem <alior@marvell.com>
Tested-by: Gregory Clement <gregory.clement@free-electrons.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Gregory Clement <gregory.clement@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-xp-gp.dts

index 3eea531..1c8afe2 100644 (file)
                        phy = <&phy3>;
                        phy-mode = "rgmii-id";
                };
+
+               spi0: spi@d0010600 {
+                       status = "okay";
+
+                       spi-flash@0 {
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               compatible = "n25q128a13";
+                               reg = <0>; /* Chip select 0 */
+                               spi-max-frequency = <108000000>;
+                       };
+               };
        };
 };