Skip to contentSkip to conversation

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

PATCH New Ezequiel Garcia 2 participants 4 messages Dec 11, 2013 – Dec 12, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mvebu: Enable NAND controller in A370 Reference Design board

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.

---
 arch/arm/boot/dts/armada-370-rd.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/armada-370-rd.dts +21 -0
index f81810a..abbb807 100644
@@ -104,6 +104,27 @@
 					gpios = <&gpio0 6 1>;
 				};
 			};
+
+			nand at d0000 {
+				status = "okay";
+				num-cs = <1>;
+				marvell,nand-keep-config;
+				marvell,nand-enable-arbiter;
+				nand-on-flash-bbt;
+
+				partition at 0 {
+					label = "U-Boot";
+					reg = <0 0x800000>;
+				};
+				partition at 800000 {
+					label = "Linux";
+					reg = <0x800000 0x800000>;
+				};
+				partition at 1000000 {
+					label = "Filesystem";
+					reg = <0x1000000 0x3f000000>;
+				};
+			};
 		};
 	};
  };
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 1/1 ARM: mvebu: config: Enable NAND support

Enable the pxa3xx-nand driver, which now supports the NAND controller in Armada 370/XP SoC.

---
 arch/arm/configs/mvebu_defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/configs/mvebu_defconfig +2 -0
index 6fcb5c8..0f4511d 100644
@@ -55,6 +55,8 @@ CONFIG_MTD_CFI_INTELEXT=y
 CONFIG_MTD_CFI_AMDSTD=y
 CONFIG_MTD_CFI_STAA=y
 CONFIG_MTD_PHYSMAP_OF=y
+CONFIG_MTD_NAND=y
+CONFIG_MTD_NAND_PXA3xx=y
 CONFIG_SERIAL_8250_DW=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_SYSFS=y
Signature · 1 line
1.8.1.5
Applied
#2 lore raw

PATCH 1/1 ARM: mvebu: config: Enable NAND support

Quoted 7 lines · Ezequiel Garcia

Enable the pxa3xx-nand driver, which now supports the NAND controller in Armada 370/XP SoC.

---
 arch/arm/configs/mvebu_defconfig | 2 ++
 1 file changed, 2 insertions(+)

Applied to mvebu/defconfig

thx,

Jason.

Applied
#3 lore raw

PATCH 1/1 ARM: mvebu: Enable NAND controller in A370 Reference Design board

In reply to Ezequiel Garcia
Quoted 11 lines · Ezequiel Garcia

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.

---
 arch/arm/boot/dts/armada-370-rd.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Applied to mvebu/dt

thx,

Jason.