All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4,0/3] DT support for NAND on OMAP2
@ 2013-05-28 11:41 ` Gupta, Pekon
  0 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: linux-mtd, Gupta, Pekon, Philip, Avinash, Nori, Sekhar, Balbi,
	Felipe, hvaibhav

From: "Gupta, Pekon" <pekon@ti.com>


Changes v3->v4
	- rebased to linux-3.10-rc3
	- updated newly supported DT properties based on following commits
	[d36b4cd] jon-hunter@ti.com ARM: OMAP2+: Add additional GPMC timing ...
	[8c8a777] jon-hunter@ti.com ARM: OMAP2+: Add function to read GPMC ...
	[9f83315] jon-hunter@ti.com ARM: OMAP2+: Add variable to store number

Changes v2->v3
	- rebased to linux-3.9-rc8
	- AM335x-evm.dts: moved GPMC pin-mux config to nand node

Changes v1->v2
	- Change number of chip select to 7
	- Replace <xx> literals to 52
	- remove tab

Gupta, Pekon (1):
  ARM: dts: AM33XX: update GPMC node

Philip Avinash (1):
  ARM: dts: AM33XX: Add NAND flash device tree data to am335x-evm

Philip, Avinash (1):
  ARM: dts: AM33XX: Add ELM node

 arch/arm/boot/dts/am335x-evm.dts | 105 +++++++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/am33xx.dtsi    |  10 +++-
 2 files changed, 114 insertions(+), 1 deletion(-)

-- 
1.8.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v4,0/3] DT support for NAND on OMAP2
@ 2013-05-28 11:41 ` Gupta, Pekon
  0 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: Balbi, Felipe, Nori, Sekhar, hvaibhav, Gupta, Pekon, linux-mtd

From: "Gupta, Pekon" <pekon@ti.com>


Changes v3->v4
	- rebased to linux-3.10-rc3
	- updated newly supported DT properties based on following commits
	[d36b4cd] jon-hunter@ti.com ARM: OMAP2+: Add additional GPMC timing ...
	[8c8a777] jon-hunter@ti.com ARM: OMAP2+: Add function to read GPMC ...
	[9f83315] jon-hunter@ti.com ARM: OMAP2+: Add variable to store number

Changes v2->v3
	- rebased to linux-3.9-rc8
	- AM335x-evm.dts: moved GPMC pin-mux config to nand node

Changes v1->v2
	- Change number of chip select to 7
	- Replace <xx> literals to 52
	- remove tab

Gupta, Pekon (1):
  ARM: dts: AM33XX: update GPMC node

Philip Avinash (1):
  ARM: dts: AM33XX: Add NAND flash device tree data to am335x-evm

Philip, Avinash (1):
  ARM: dts: AM33XX: Add ELM node

 arch/arm/boot/dts/am335x-evm.dts | 105 +++++++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/am33xx.dtsi    |  10 +++-
 2 files changed, 114 insertions(+), 1 deletion(-)

-- 
1.8.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v4,1/3] ARM: dts: AM33XX: Add ELM node
  2013-05-28 11:41 ` Gupta, Pekon
@ 2013-05-28 11:41   ` Gupta, Pekon
  -1 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: linux-mtd, Philip, Avinash, Nori, Sekhar, Balbi, Felipe,
	hvaibhav, Pekon Gupta

From: "Philip, Avinash" <avinashphilip@ti.com>

Add ELM data node to AM33XX device tree file.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Pekon Gupta <pekon@ti.com>
---
 arch/arm/boot/dts/am33xx.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index 1460d9b..0425af8 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -404,6 +404,14 @@
 			ti,hwmods = "wkup_m3";
 		};
 
+		elm: elm@48080000 {
+			compatible = "ti,am3352-elm";
+			reg = <0x48080000 0x2000>;
+			interrupts = <4>;
+			ti,hwmods = "elm";
+			status = "disabled";
+		};
+
 		gpmc: gpmc@50000000 {
 			compatible = "ti,am3352-gpmc";
 			ti,hwmods = "gpmc";
-- 
1.8.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4,1/3] ARM: dts: AM33XX: Add ELM node
@ 2013-05-28 11:41   ` Gupta, Pekon
  0 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: Nori, Sekhar, hvaibhav, Balbi, Felipe, linux-mtd, Pekon Gupta

From: "Philip, Avinash" <avinashphilip@ti.com>

Add ELM data node to AM33XX device tree file.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Pekon Gupta <pekon@ti.com>
---
 arch/arm/boot/dts/am33xx.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index 1460d9b..0425af8 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -404,6 +404,14 @@
 			ti,hwmods = "wkup_m3";
 		};
 
+		elm: elm@48080000 {
+			compatible = "ti,am3352-elm";
+			reg = <0x48080000 0x2000>;
+			interrupts = <4>;
+			ti,hwmods = "elm";
+			status = "disabled";
+		};
+
 		gpmc: gpmc@50000000 {
 			compatible = "ti,am3352-gpmc";
 			ti,hwmods = "gpmc";
-- 
1.8.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4,2/3] ARM: dts: AM33XX: update GPMC node
  2013-05-28 11:41 ` Gupta, Pekon
@ 2013-05-28 11:41   ` Gupta, Pekon
  -1 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: linux-mtd, Gupta, Pekon, Philip, Avinash, Nori, Sekhar, Balbi,
	Felipe, hvaibhav

From: "Gupta, Pekon" <pekon@ti.com>

add prefix to 'gpmc' specific properties

Signed-off-by: Gupta, Pekon <pekon@ti.com>
---
 arch/arm/boot/dts/am33xx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index 0425af8..095f696 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -418,7 +418,7 @@
 			reg = <0x50000000 0x2000>;
 			interrupts = <100>;
 			num-cs = <7>;
-			num-waitpins = <2>;
+			gpmc,num-waitpins = <2>;
 			#address-cells = <2>;
 			#size-cells = <1>;
 			status = "disabled";
-- 
1.8.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4,2/3] ARM: dts: AM33XX: update GPMC node
@ 2013-05-28 11:41   ` Gupta, Pekon
  0 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: Balbi, Felipe, Nori, Sekhar, hvaibhav, Gupta, Pekon, linux-mtd

From: "Gupta, Pekon" <pekon@ti.com>

add prefix to 'gpmc' specific properties

Signed-off-by: Gupta, Pekon <pekon@ti.com>
---
 arch/arm/boot/dts/am33xx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index 0425af8..095f696 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -418,7 +418,7 @@
 			reg = <0x50000000 0x2000>;
 			interrupts = <100>;
 			num-cs = <7>;
-			num-waitpins = <2>;
+			gpmc,num-waitpins = <2>;
 			#address-cells = <2>;
 			#size-cells = <1>;
 			status = "disabled";
-- 
1.8.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4,3/3] ARM: dts: AM33XX: Add NAND flash device tree data to am335x-evm
  2013-05-28 11:41 ` Gupta, Pekon
@ 2013-05-28 11:41   ` Gupta, Pekon
  -1 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: linux-mtd, Philip Avinash, Nori, Sekhar, Balbi, Felipe, hvaibhav,
	Gupta, Pekon

From: Philip Avinash <avinashphilip@ti.com>

NAND flash connected in am335x-evm on GPMC controller. This patch adds
device tree node in am3355-evm with GPMC contoller timing for NAND flash
interface, NAND partition table, ECC scheme, elm handle id.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Signed-off-by: Gupta, Pekon <pekon@ti.com>
---
 arch/arm/boot/dts/am335x-evm.dts | 105 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 105 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 0423298..7d2be9c 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -44,6 +44,26 @@
 				0x154 0x27	/* spi0_d0.gpio0_3, INPUT | MODE7 */
 			>;
 		};
+
+		nandflash_pins_s0: nandflash_pins_s0 {
+			pinctrl-single,pins = <
+				0x0 0x30	/* gpmc_ad0.gpmc_ad0, INPUT | PULLUP | MODE0 */
+				0x4 0x30	/* gpmc_ad1.gpmc_ad1, INPUT | PULLUP | MODE0 */
+				0x8 0x30	/* gpmc_ad2.gpmc_ad2, INPUT | PULLUP | MODE0 */
+				0xc 0x30	/* gpmc_ad3.gpmc_ad3, INPUT | PULLUP | MODE0 */
+				0x10 0x30	/* gpmc_ad4.gpmc_ad4, INPUT | PULLUP | MODE0 */
+				0x14 0x30	/* gpmc_ad5.gpmc_ad5, INPUT | PULLUP | MODE0 */
+				0x18 0x30	/* gpmc_ad6.gpmc_ad6, INPUT | PULLUP | MODE0 */
+				0x1c 0x30	/* gpmc_ad7.gpmc_ad7, INPUT | PULLUP | MODE0 */
+				0x70 0x30	/* gpmc_wait0.gpmc_wait0, INPUT | PULLUP | MODE0 */
+				0x74 0x37	/* gpmc_wpn.gpio0_30, INPUT | PULLUP | MODE7 */
+				0x7c 0x8	/* gpmc_csn0.gpmc_csn0,  PULL DISA */
+				0x90 0x8	/* gpmc_advn_ale.gpmc_advn_ale, PULL DISA */
+				0x94 0x8	/* gpmc_oen_ren.gpmc_oen_ren, PULL DISA */
+				0x98 0x8	/* gpmc_wen.gpmc_wen, PULL DISA */
+				0x9c 0x8	/* gpmc_be0n_cle.gpmc_be0n_cle, PULL DISA */
+			>;
+		};
 	};
 
 	ocp {
@@ -102,6 +122,91 @@
 				reg = <0x48>;
 			};
 		};
+
+		elm: elm@48080000 {
+			status = "okay";
+		};
+
+		gpmc: gpmc@50000000 {
+			status = "okay";
+			pinctrl-names = "default";
+			pinctrl-0 = <&nandflash_pins_s0>;
+			ranges = <0 0 0x08000000 0x10000000>;	/* CS0: NAND */
+			nand@0,0 {
+				reg = <0 0 0>; /* CS0, offset 0 */
+				nand-bus-width = <8>;
+				ti,nand-ecc-opt = "bch8";
+				gpmc,device-nand = "true";
+				gpmc,device-width = <1>;
+				gpmc,sync-clk-ps = <0>;
+				gpmc,cs-on-ns = <0>;
+				gpmc,cs-rd-off-ns = <44>;
+				gpmc,cs-wr-off-ns = <44>;
+				gpmc,adv-on-ns = <6>;
+				gpmc,adv-rd-off-ns = <34>;
+				gpmc,adv-wr-off-ns = <44>;
+				gpmc,we-on-ns = <0>;
+				gpmc,we-off-ns = <40>;
+				gpmc,oe-on-ns = <0>;
+				gpmc,oe-off-ns = <54>;
+				gpmc,access-ns = <64>;
+				gpmc,rd-cycle-ns = <82>;
+				gpmc,wr-cycle-ns = <82>;
+				gpmc,wait-on-read = "true";
+				gpmc,wait-on-write = "true";
+				gpmc,bus-turnaround-ns = <0>;
+				gpmc,cycle2cycle-delay-ns = <0>;
+				gpmc,clk-activation-ns = <0>;
+				gpmc,wait-monitoring-ns = <0>;
+				gpmc,wr-access-ns = <40>;
+				gpmc,wr-data-mux-bus-ns = <0>;
+
+				#address-cells = <1>;
+				#size-cells = <1>;
+				elm_id = <&elm>;
+
+				/* MTD partition table */
+				partition@0 {
+					label = "SPL1";
+					reg = <0x00000000 0x000020000>;
+				};
+
+				partition@1 {
+					label = "SPL2";
+					reg = <0x00020000 0x00020000>;
+				};
+
+				partition@2 {
+					label = "SPL3";
+					reg = <0x00040000 0x00020000>;
+				};
+
+				partition@3 {
+					label = "SPL4";
+					reg = <0x00060000 0x00020000>;
+				};
+
+				partition@4 {
+					label = "U-boot";
+					reg = <0x00080000 0x001e0000>;
+				};
+
+				partition@5 {
+					label = "environment";
+					reg = <0x00260000 0x00020000>;
+				};
+
+				partition@6 {
+					label = "Kernel";
+					reg = <0x00280000 0x00500000>;
+				};
+
+				partition@7 {
+					label = "File-System";
+					reg = <0x00780000 0x0F880000>;
+				};
+			};
+		};
 	};
 
 	vbat: fixedregulator@0 {
-- 
1.8.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4, 3/3] ARM: dts: AM33XX: Add NAND flash device tree data to am335x-evm
@ 2013-05-28 11:41   ` Gupta, Pekon
  0 siblings, 0 replies; 8+ messages in thread
From: Gupta, Pekon @ 2013-05-28 11:41 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap
  Cc: Nori, Sekhar, hvaibhav, Balbi, Felipe, linux-mtd, Gupta, Pekon

From: Philip Avinash <avinashphilip@ti.com>

NAND flash connected in am335x-evm on GPMC controller. This patch adds
device tree node in am3355-evm with GPMC contoller timing for NAND flash
interface, NAND partition table, ECC scheme, elm handle id.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Signed-off-by: Gupta, Pekon <pekon@ti.com>
---
 arch/arm/boot/dts/am335x-evm.dts | 105 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 105 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 0423298..7d2be9c 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -44,6 +44,26 @@
 				0x154 0x27	/* spi0_d0.gpio0_3, INPUT | MODE7 */
 			>;
 		};
+
+		nandflash_pins_s0: nandflash_pins_s0 {
+			pinctrl-single,pins = <
+				0x0 0x30	/* gpmc_ad0.gpmc_ad0, INPUT | PULLUP | MODE0 */
+				0x4 0x30	/* gpmc_ad1.gpmc_ad1, INPUT | PULLUP | MODE0 */
+				0x8 0x30	/* gpmc_ad2.gpmc_ad2, INPUT | PULLUP | MODE0 */
+				0xc 0x30	/* gpmc_ad3.gpmc_ad3, INPUT | PULLUP | MODE0 */
+				0x10 0x30	/* gpmc_ad4.gpmc_ad4, INPUT | PULLUP | MODE0 */
+				0x14 0x30	/* gpmc_ad5.gpmc_ad5, INPUT | PULLUP | MODE0 */
+				0x18 0x30	/* gpmc_ad6.gpmc_ad6, INPUT | PULLUP | MODE0 */
+				0x1c 0x30	/* gpmc_ad7.gpmc_ad7, INPUT | PULLUP | MODE0 */
+				0x70 0x30	/* gpmc_wait0.gpmc_wait0, INPUT | PULLUP | MODE0 */
+				0x74 0x37	/* gpmc_wpn.gpio0_30, INPUT | PULLUP | MODE7 */
+				0x7c 0x8	/* gpmc_csn0.gpmc_csn0,  PULL DISA */
+				0x90 0x8	/* gpmc_advn_ale.gpmc_advn_ale, PULL DISA */
+				0x94 0x8	/* gpmc_oen_ren.gpmc_oen_ren, PULL DISA */
+				0x98 0x8	/* gpmc_wen.gpmc_wen, PULL DISA */
+				0x9c 0x8	/* gpmc_be0n_cle.gpmc_be0n_cle, PULL DISA */
+			>;
+		};
 	};
 
 	ocp {
@@ -102,6 +122,91 @@
 				reg = <0x48>;
 			};
 		};
+
+		elm: elm@48080000 {
+			status = "okay";
+		};
+
+		gpmc: gpmc@50000000 {
+			status = "okay";
+			pinctrl-names = "default";
+			pinctrl-0 = <&nandflash_pins_s0>;
+			ranges = <0 0 0x08000000 0x10000000>;	/* CS0: NAND */
+			nand@0,0 {
+				reg = <0 0 0>; /* CS0, offset 0 */
+				nand-bus-width = <8>;
+				ti,nand-ecc-opt = "bch8";
+				gpmc,device-nand = "true";
+				gpmc,device-width = <1>;
+				gpmc,sync-clk-ps = <0>;
+				gpmc,cs-on-ns = <0>;
+				gpmc,cs-rd-off-ns = <44>;
+				gpmc,cs-wr-off-ns = <44>;
+				gpmc,adv-on-ns = <6>;
+				gpmc,adv-rd-off-ns = <34>;
+				gpmc,adv-wr-off-ns = <44>;
+				gpmc,we-on-ns = <0>;
+				gpmc,we-off-ns = <40>;
+				gpmc,oe-on-ns = <0>;
+				gpmc,oe-off-ns = <54>;
+				gpmc,access-ns = <64>;
+				gpmc,rd-cycle-ns = <82>;
+				gpmc,wr-cycle-ns = <82>;
+				gpmc,wait-on-read = "true";
+				gpmc,wait-on-write = "true";
+				gpmc,bus-turnaround-ns = <0>;
+				gpmc,cycle2cycle-delay-ns = <0>;
+				gpmc,clk-activation-ns = <0>;
+				gpmc,wait-monitoring-ns = <0>;
+				gpmc,wr-access-ns = <40>;
+				gpmc,wr-data-mux-bus-ns = <0>;
+
+				#address-cells = <1>;
+				#size-cells = <1>;
+				elm_id = <&elm>;
+
+				/* MTD partition table */
+				partition@0 {
+					label = "SPL1";
+					reg = <0x00000000 0x000020000>;
+				};
+
+				partition@1 {
+					label = "SPL2";
+					reg = <0x00020000 0x00020000>;
+				};
+
+				partition@2 {
+					label = "SPL3";
+					reg = <0x00040000 0x00020000>;
+				};
+
+				partition@3 {
+					label = "SPL4";
+					reg = <0x00060000 0x00020000>;
+				};
+
+				partition@4 {
+					label = "U-boot";
+					reg = <0x00080000 0x001e0000>;
+				};
+
+				partition@5 {
+					label = "environment";
+					reg = <0x00260000 0x00020000>;
+				};
+
+				partition@6 {
+					label = "Kernel";
+					reg = <0x00280000 0x00500000>;
+				};
+
+				partition@7 {
+					label = "File-System";
+					reg = <0x00780000 0x0F880000>;
+				};
+			};
+		};
 	};
 
 	vbat: fixedregulator@0 {
-- 
1.8.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-28 11:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 11:41 [PATCH v4,0/3] DT support for NAND on OMAP2 Gupta, Pekon
2013-05-28 11:41 ` Gupta, Pekon
2013-05-28 11:41 ` [PATCH v4,1/3] ARM: dts: AM33XX: Add ELM node Gupta, Pekon
2013-05-28 11:41   ` Gupta, Pekon
2013-05-28 11:41 ` [PATCH v4,2/3] ARM: dts: AM33XX: update GPMC node Gupta, Pekon
2013-05-28 11:41   ` Gupta, Pekon
2013-05-28 11:41 ` [PATCH v4,3/3] ARM: dts: AM33XX: Add NAND flash device tree data to am335x-evm Gupta, Pekon
2013-05-28 11:41   ` [PATCH v4, 3/3] " Gupta, Pekon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.