diff mbox

ARM: mvebu: Enable NAND controller in A370 Reference Design board

Message ID 1386800920-7096-1-git-send-email-ezequiel.garcia@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ezequiel Garcia Dec. 11, 2013, 10:28 p.m. UTC
Marvell's Armada 370 Reference Design has a NAND flash, so enable it in
the devicetree and add the partitions as prepared in the factory images.

In order to skip the driver's custom device detection and use only ONFI
detection, the "marvell,keep-config" parameter is used. This is needed
because we have no support for setting the timings parameters yet.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 arch/arm/boot/dts/armada-370-rd.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Comments

Jason Cooper Dec. 12, 2013, 2:06 p.m. UTC | #1
On Wed, Dec 11, 2013 at 07:28:39PM -0300, Ezequiel Garcia wrote:
> Marvell's Armada 370 Reference Design has a NAND flash, so enable it in
> the devicetree and add the partitions as prepared in the factory images.
> 
> In order to skip the driver's custom device detection and use only ONFI
> detection, the "marvell,keep-config" parameter is used. This is needed
> because we have no support for setting the timings parameters yet.
> 
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> ---
>  arch/arm/boot/dts/armada-370-rd.dts | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)

Applied to mvebu/dt

thx,

Jason.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts
index f81810a..abbb807 100644
--- a/arch/arm/boot/dts/armada-370-rd.dts
+++ b/arch/arm/boot/dts/armada-370-rd.dts
@@ -104,6 +104,27 @@ 
 					gpios = <&gpio0 6 1>;
 				};
 			};
+
+			nand@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>;
+				};
+			};
 		};
 	};
  };