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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1389270709-32662-12-git-send-email-jjhiblot@traphandler.com>
Date:	Thu,  9 Jan 2014 13:31:48 +0100
From:	Jean-Jacques Hiblot <jjhiblot@...phandler.com>
To:	nicolas.ferre@...el.com, b.brezillon@...rkiz.com, arnd@...db.de
Cc:	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
	Jean-Jacques Hiblot <jjhiblot@...phandler.com>
Subject: [PATCH v2 11/12] at91: dt: sam9261: moved the NAND under the smc node

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@...phandler.com>
---
 arch/arm/boot/dts/at91sam9261.dtsi  | 35 ++++++++++++++-------------
 arch/arm/boot/dts/at91sam9261ek.dts | 48 ++++++++++++++++++++++++++++---------
 2 files changed, 55 insertions(+), 28 deletions(-)

diff --git a/arch/arm/boot/dts/at91sam9261.dtsi b/arch/arm/boot/dts/at91sam9261.dtsi
index 6c90790..c558918 100644
--- a/arch/arm/boot/dts/at91sam9261.dtsi
+++ b/arch/arm/boot/dts/at91sam9261.dtsi
@@ -525,23 +525,6 @@
 			status = "disabled";
 		};
 
-		nand0: nand@...00000 {
-			compatible = "atmel,at91rm9200-nand";
-			#address-cells = <1>;
-			#size-cells = <1>;
-			reg = <0x40000000 0x10000000>;
-			atmel,nand-addr-offset = <22>;
-			atmel,nand-cmd-offset = <21>;
-			pinctrl-names = "default";
-			pinctrl-0 = <&pinctrl_nand>;
-
-			gpios = <&pioC 15 GPIO_ACTIVE_HIGH
-				&pioC 14 GPIO_ACTIVE_HIGH
-				0
-				>;
-			status = "disabled";
-		};
-
 		smc: smc@...fec00 {
 			#address-cells = <2>;
 			#size-cells = <1>;
@@ -588,6 +571,24 @@
 				ranges = <0 3 0x00000000 0x10000000>;
 				smc,cs = <3>;
 				status = "disabled";
+
+				nand0: nand@3,0 {
+					compatible = "atmel,at91rm9200-nand";
+					#address-cells = <1>;
+					#size-cells = <1>;
+					reg = <0x0 0x10000000>;
+					atmel,nand-addr-offset = <22>;
+					atmel,nand-cmd-offset = <21>;
+					pinctrl-names = "default";
+					pinctrl-0 = <&pinctrl_nand>, <&pinctrl_smc_nandoe>, <&pinctrl_smc_nandwe>;
+					smc,cs = <3>;
+
+					gpios = <&pioC 15 GPIO_ACTIVE_HIGH
+						&pioC 14 GPIO_ACTIVE_HIGH
+						0
+						>;
+					status = "disabled";
+				};
 			};
 			ebi_cs4@4,0 {
 				#address-cells = <1>;
diff --git a/arch/arm/boot/dts/at91sam9261ek.dts b/arch/arm/boot/dts/at91sam9261ek.dts
index 03c05fc..e92cb8e 100644
--- a/arch/arm/boot/dts/at91sam9261ek.dts
+++ b/arch/arm/boot/dts/at91sam9261ek.dts
@@ -42,17 +42,6 @@
 			};
 		};
 
-		nand0: nand@...00000 {
-			nand-bus-width = <8>;
-			nand-ecc-mode = "soft";
-			nand-on-flash-bbt = <1>;
-			status = "okay";
-			at91bootstrap@0 {
-				label = "at91bootstrap";
-				reg = <0x0 0x20000>;
-			};
-		};
-
 		fb0: fb@...0600000 {
 			display = <&display0>;
 			status = "okay";
@@ -83,6 +72,43 @@
 				};
 			};
 		};
+
+		smc: smc@...fec00 {
+			status = "okay";
+
+			ebi_cs3@3,0 {
+				status = "okay";
+				smc,ncs_read_setup = <0>;
+				smc,nrd_setup = <1>;
+				smc,ncs_write_setup = <0>;
+				smc,nwe_setup = <1>;
+				smc,ncs_read_pulse = <3>;
+				smc,nrd_pulse = <3>;
+				smc,ncs_write_pulse = <3>;
+				smc,nwe_pulse = <3>;
+				smc,read_cycle = <5>;
+				smc,write_cycle = <5>;
+				smc,tdf_cycles = <2>;
+				smc,tdf_optimized = <0>;
+				smc,page_size = <0>;
+				smc,byte_access_type = <0>;
+				smc,bus_width = <0>;
+				smc,nwait_mode = <0>;
+				smc,read_mode = <1>;
+				smc,write_mode = <1>;
+
+				nand0: nand@3,0 {
+					nand-bus-width = <8>;
+					nand-ecc-mode = "soft";
+					nand-on-flash-bbt = <1>;
+					status = "okay";
+					at91bootstrap@0 {
+						label = "at91bootstrap";
+						reg = <0x0 0x20000>;
+					};
+				};
+			};
+		};
 	};
 
 	leds {
-- 
1.8.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ