Skip to contentSkip to conversation

ARM: dts: k2e-evm: add AEMIF/NAND device entry

PATCH New Ivan Khoronzhuk 2 participants 10 messages May 8, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

Add AEMIF/NAND device entry.

---
 arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
arch/arm/boot/dts/k2e-evm.dts +52 -0
index 74b3b63..0370e2f 100644
@@ -58,3 +58,55 @@
 &usb1 {
 	status = "okay";
 };
+
+&aemif {
+	cs0 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		clock-ranges;
+		ranges;
+
+		ti,cs-chipselect = <0>;
+		/* all timings in nanoseconds */
+		ti,cs-min-turnaround-ns = <12>;
+		ti,cs-read-hold-ns = <6>;
+		ti,cs-read-strobe-ns = <23>;
+		ti,cs-read-setup-ns = <9>;
+		ti,cs-write-hold-ns = <8>;
+		ti,cs-write-strobe-ns = <23>;
+		ti,cs-write-setup-ns = <8>;
+
+		nand at 0,0 {
+			compatible = "ti,keystone-nand","ti,davinci-nand";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			reg = <0 0 0x4000000
+			       1 0 0x0000100>;
+
+			ti,davinci-chipselect = <0>;
+			ti,davinci-mask-ale = <0x2000>;
+			ti,davinci-mask-cle = <0x4000>;
+			ti,davinci-mask-chipsel = <0>;
+			nand-ecc-mode = "hw";
+			ti,davinci-ecc-bits = <4>;
+			nand-on-flash-bbt;
+
+			partition at 0 {
+				label = "u-boot";
+				reg = <0x0 0x100000>;
+				read-only;
+			};
+
+			partition at 100000 {
+				label = "params";
+				reg = <0x100000 0x80000>;
+				read-only;
+			};
+
+			partition at 180000 {
+				label = "ubifs";
+				reg = <0x180000 0x7E80000>;
+			};
+		};
+	};
+};
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

Quoted 7 lines · Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
 arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Thanks. Will pick this up for 3.16

#2 lore raw

PATCH 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

Quoted 10 lines · Santosh Shilimkar
Quoted 7 lines · Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
  arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
  1 file changed, 52 insertions(+)

Thanks. Will pick this up for 3.16

Ups. Seems I've not changed ubifs partition size, always think about 128 Mb, but here 512 Mb.
I will send updated version with correct partition size.

Signature · 2 lines
Regards,
Ivan Khoronzhuk
#3 lore raw

PATCH 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

Quoted 10 lines · Ivan Khoronzhuk
Quoted 8 lines · Santosh Shilimkar
Quoted 7 lines · Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
  arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
  1 file changed, 52 insertions(+)
Quoted 7 lines
Quoted 2 lines

Thanks. Will pick this up for 3.16

Ups. Seems I've not changed ubifs partition size, always think about 128 Mb, but here 512 Mb. I will send updated version with correct partition size.

I was about to reply that patch wasn't applying cleanly. V2 applied to for_3.16/dts branch.

Can you also rebase the ke2 patch against the dts branch and repost it ?

Thanks !!

regards,
Santosh

#4 lore raw

PATCH 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

Quoted 19 lines · Santosh Shilimkar
Quoted 9 lines · Ivan Khoronzhuk
Quoted 8 lines · Santosh Shilimkar
Quoted 7 lines · Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
   arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
   1 file changed, 52 insertions(+)
Quoted 6 lines
Quoted 2 lines

Thanks. Will pick this up for 3.16

Ups. Seems I've not changed ubifs partition size, always think about 128 Mb, but here 512 Mb. I will send updated version with correct partition size.

I was about to reply that patch wasn't applying cleanly. V2 applied to for_3.16/dts branch.

Quoted 7 lines

Can you also rebase the ke2 patch against the dts branch and repost it ?

Thanks !!

regards,
Santosh

Sure

Signature · 2 lines
Regards,
Ivan Khoronzhuk
#5 lore raw

PATCH 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

In reply to Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
 arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
arch/arm/boot/dts/k2e-evm.dts +52 -0
index 74b3b63..0370e2f 100644
@@ -58,3 +58,55 @@
 &usb1 {
 	status = "okay";
 };
+
+&aemif {
+	cs0 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		clock-ranges;
+		ranges;
+
+		ti,cs-chipselect = <0>;
+		/* all timings in nanoseconds */
+		ti,cs-min-turnaround-ns = <12>;
+		ti,cs-read-hold-ns = <6>;
+		ti,cs-read-strobe-ns = <23>;
+		ti,cs-read-setup-ns = <9>;
+		ti,cs-write-hold-ns = <8>;
+		ti,cs-write-strobe-ns = <23>;
+		ti,cs-write-setup-ns = <8>;
+
+		nand at 0,0 {
+			compatible = "ti,keystone-nand","ti,davinci-nand";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			reg = <0 0 0x4000000
+			       1 0 0x0000100>;
+
+			ti,davinci-chipselect = <0>;
+			ti,davinci-mask-ale = <0x2000>;
+			ti,davinci-mask-cle = <0x4000>;
+			ti,davinci-mask-chipsel = <0>;
+			nand-ecc-mode = "hw";
+			ti,davinci-ecc-bits = <4>;
+			nand-on-flash-bbt;
+
+			partition at 0 {
+				label = "u-boot";
+				reg = <0x0 0x100000>;
+				read-only;
+			};
+
+			partition at 100000 {
+				label = "params";
+				reg = <0x100000 0x80000>;
+				read-only;
+			};
+
+			partition at 180000 {
+				label = "ubifs";
+				reg = <0x180000 0x7E80000>;
+			};
+		};
+	};
+};
Signature · 1 line
1.8.3.2
#6 lore raw

PATCH 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

ignore this

Quoted 67 lines · Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
  arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
  1 file changed, 52 insertions(+)
arch/arm/boot/dts/k2e-evm.dts +52 -0
index 74b3b63..0370e2f 100644
@@ -58,3 +58,55 @@
  &usb1 {
  	status = "okay";
  };
+
+&aemif {
+	cs0 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		clock-ranges;
+		ranges;
+
+		ti,cs-chipselect = <0>;
+		/* all timings in nanoseconds */
+		ti,cs-min-turnaround-ns = <12>;
+		ti,cs-read-hold-ns = <6>;
+		ti,cs-read-strobe-ns = <23>;
+		ti,cs-read-setup-ns = <9>;
+		ti,cs-write-hold-ns = <8>;
+		ti,cs-write-strobe-ns = <23>;
+		ti,cs-write-setup-ns = <8>;
+
+		nand at 0,0 {
+			compatible = "ti,keystone-nand","ti,davinci-nand";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			reg = <0 0 0x4000000
+			       1 0 0x0000100>;
+
+			ti,davinci-chipselect = <0>;
+			ti,davinci-mask-ale = <0x2000>;
+			ti,davinci-mask-cle = <0x4000>;
+			ti,davinci-mask-chipsel = <0>;
+			nand-ecc-mode = "hw";
+			ti,davinci-ecc-bits = <4>;
+			nand-on-flash-bbt;
+
+			partition at 0 {
+				label = "u-boot";
+				reg = <0x0 0x100000>;
+				read-only;
+			};
+
+			partition at 100000 {
+				label = "params";
+				reg = <0x100000 0x80000>;
+				read-only;
+			};
+
+			partition at 180000 {
+				label = "ubifs";
+				reg = <0x180000 0x7E80000>;
+			};
+		};
+	};
+};
Signature · 2 lines
Regards,
Ivan Khoronzhuk
#7 lore raw

PATCH v2 1/1 ARM: dts: k2l-evm: add AEMIF/NAND device entry

In reply to Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
 arch/arm/boot/dts/k2l-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
arch/arm/boot/dts/k2l-evm.dts +52 -0
index bdc94a0..8ff2d33 100644
@@ -42,3 +42,55 @@
 		reg = <0x50>;
 	};
 };
+
+&aemif {
+	cs0 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		clock-ranges;
+		ranges;
+
+		ti,cs-chipselect = <0>;
+		/* all timings in nanoseconds */
+		ti,cs-min-turnaround-ns = <12>;
+		ti,cs-read-hold-ns = <6>;
+		ti,cs-read-strobe-ns = <23>;
+		ti,cs-read-setup-ns = <9>;
+		ti,cs-write-hold-ns = <8>;
+		ti,cs-write-strobe-ns = <23>;
+		ti,cs-write-setup-ns = <8>;
+
+		nand at 0,0 {
+			compatible = "ti,keystone-nand","ti,davinci-nand";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			reg = <0 0 0x4000000
+			       1 0 0x0000100>;
+
+			ti,davinci-chipselect = <0>;
+			ti,davinci-mask-ale = <0x2000>;
+			ti,davinci-mask-cle = <0x4000>;
+			ti,davinci-mask-chipsel = <0>;
+			nand-ecc-mode = "hw";
+			ti,davinci-ecc-bits = <4>;
+			nand-on-flash-bbt;
+
+			partition at 0 {
+				label = "u-boot";
+				reg = <0x0 0x100000>;
+				read-only;
+			};
+
+			partition at 100000 {
+				label = "params";
+				reg = <0x100000 0x80000>;
+				read-only;
+			};
+
+			partition at 180000 {
+				label = "ubifs";
+				reg = <0x180000 0x7FE80000>;
+			};
+		};
+	};
+};
Signature · 1 line
1.8.3.2
#9 lore raw

PATCH v2 1/1 ARM: dts: k2e-evm: add AEMIF/NAND device entry

In reply to Ivan Khoronzhuk

Add AEMIF/NAND device entry.

---
 arch/arm/boot/dts/k2e-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
arch/arm/boot/dts/k2e-evm.dts +52 -0
index d60ce34..fb7afab 100644
@@ -65,3 +65,55 @@
 		reg = <0x50>;
 	};
 };
+
+&aemif {
+	cs0 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		clock-ranges;
+		ranges;
+
+		ti,cs-chipselect = <0>;
+		/* all timings in nanoseconds */
+		ti,cs-min-turnaround-ns = <12>;
+		ti,cs-read-hold-ns = <6>;
+		ti,cs-read-strobe-ns = <23>;
+		ti,cs-read-setup-ns = <9>;
+		ti,cs-write-hold-ns = <8>;
+		ti,cs-write-strobe-ns = <23>;
+		ti,cs-write-setup-ns = <8>;
+
+		nand at 0,0 {
+			compatible = "ti,keystone-nand","ti,davinci-nand";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			reg = <0 0 0x4000000
+			       1 0 0x0000100>;
+
+			ti,davinci-chipselect = <0>;
+			ti,davinci-mask-ale = <0x2000>;
+			ti,davinci-mask-cle = <0x4000>;
+			ti,davinci-mask-chipsel = <0>;
+			nand-ecc-mode = "hw";
+			ti,davinci-ecc-bits = <4>;
+			nand-on-flash-bbt;
+
+			partition at 0 {
+				label = "u-boot";
+				reg = <0x0 0x100000>;
+				read-only;
+			};
+
+			partition at 100000 {
+				label = "params";
+				reg = <0x100000 0x80000>;
+				read-only;
+			};
+
+			partition at 180000 {
+				label = "ubifs";
+				reg = <0x180000 0x1FE80000>;
+			};
+		};
+	};
+};
Signature · 1 line
1.8.3.2