lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1606020947300.19416@lnxricardw1.se.axis.com>
Date:	Thu, 2 Jun 2016 09:47:59 +0200
From:	Ricard Wanderlof <ricard.wanderlof@...s.com>
To:	Brian Norris <computersforpeace@...il.com>,
	David Woodhouse <dwmw2@...radead.org>,
	Benoit Cousson <bcousson@...libre.com>,
	Tony Lindgren <tony@...mide.com>,
	David Woodhouse <dwmw2@...radead.org>
CC:	Linux mtd <linux-mtd@...ts.infradead.org>,
	<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH 2/4] dts: Add Evatronix NAND flash driver to ARTPEC-6 dtsi


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@...s.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@...1e000 {
+			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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ