ARM: mvebu: Enable NAND controller in Armada 385-DB
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 13 Mar 2014 20:24:32 +0000 (17:24 -0300)
committerJason Cooper <jason@lakedaemon.net>
Thu, 13 Mar 2014 23:37:17 +0000 (23:37 +0000)
The Armada 385-DB board has a NAND flash, so enable it in the
devicetree and add the partitions as prepared in the factory images.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Link: https://lkml.kernel.org/r/1394742273-5113-6-git-send-email-ezequiel.garcia@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-385-db.dts

index 9a136428ec29272cd72dbb9e9198aa5d723dd170..6828d77696a67647397c568e5bce65f007e0c10d 100644 (file)
                                        reg = <1>;
                                };
                        };
+
+                       flash@d0000 {
+                               status = "okay";
+                               num-cs = <1>;
+                               marvell,nand-keep-config;
+                               marvell,nand-enable-arbiter;
+                               nand-on-flash-bbt;
+
+                               partition@0 {
+                                       label = "U-Boot";
+                                       reg = <0 0x800000>;
+                               };
+                               partition@800000 {
+                                       label = "Linux";
+                                       reg = <0x800000 0x800000>;
+                               };
+                               partition@1000000 {
+                                       label = "Filesystem";
+                                       reg = <0x1000000 0x3f000000>;
+                               };
+                       };
                };
 
                pcie-controller {