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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxx>
---
 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@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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux