[PATCH 2/4] dts: Add Evatronix NAND flash driver to ARTPEC-6 dtsi

Ricard Wanderlof ricard.wanderlof at axis.com
Thu Jun 2 00:47:59 PDT 2016


Add Evatronix NANDFLASH-CTRL NAND flash controller to ARTPEC-6 SoC.

ONFi mode 2 timing has been set as this is compatible also with non-ONFi
SLC NAND flashes, with higher throughput than the default ONFi mode 0.

Signed-off-by: Ricard Wanderlof <ricardw at axis.com>
---
 arch/arm/boot/dts/artpec6.dtsi |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi
index 3043016..17f6924 100644
--- a/arch/arm/boot/dts/artpec6.dtsi
+++ b/arch/arm/boot/dts/artpec6.dtsi
@@ -266,5 +266,24 @@
 			clock-names = "uart_clk", "apb_pclk";
 			status = "disabled";
 		};
+		nand: nand at f801e000 {
+			compatible = "evatronix,nandflash-ctrl";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			reg = <0xf801e000 0x0200>;
+			interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
+			/* ONFi mode 2 timing */
+			/* Order is TIME_SEQ_0, TIME_SEQ_1, TIMINGS_ASYN,
+			 * TIME_GEN_SEQ_0, _1, _2, _3
+			 */
+			evatronix,timings = <0x080a0a32 0x0007020a 0x00000023
+					     0x00000000 0x00000000 0x00000000
+					     0x00000000>;
+			nand-ecc-mode = "hw";
+			nand-ecc-algo = "bch";
+			nand-on-flash-bbt;
+			nand-ecc-strength = <8>;
+			nand-ecc-step-size = <512>;
+		};
 	};
 };
-- 
1.7.10.4

-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list