linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Add GPMC and NAND support for dm814x-evm and dra62x-j5eco-evm
@ 2015-12-22 16:10 Tony Lindgren
  2015-12-22 16:10 ` [PATCH 1/3] ARM: dts: Add support for GPMC for dm814x and dra62x Tony Lindgren
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tony Lindgren @ 2015-12-22 16:10 UTC (permalink / raw)
  To: linux-omap
  Cc: Matthijs van Duin, Neil Armstrong, Philipp Rosenberger,
	Delio Brignoli, Brian Hutchinson, linux-arm-kernel

Hi all,

Here's support for GPMC and NAND on j5-eco evm and dm814x-evm.
Probably too late for v4.5 merge window , but seems to work here if
somebody wants to play with GPMC.

To test, please use Linux next-20151222 or later and the following
patches:

[PATCH v4] clk: ti: Add support for dm814x ADPLL
[PATCH v2] ARM: dts: Add clocks for dm814x ADPLL

Check that you have CONFIG_COMMON_CLK_TI_ADPLL=y. And then you
probably want to apply this for an unrelated DSS build breakage:

[PATCH] OMAPDSS: fix omapfb build error due missing feat functions declaration

Regards,

Tony


Tony Lindgren (3):
  ARM: dts: Add support for GPMC for dm814x and dra62x
  ARM: dts: Add NAND support for j5-eco evm
  ARM: dts: Add NAND support for dm8148-evm

 arch/arm/boot/dts/dm8148-evm.dts       | 56 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/dm814x.dtsi          | 12 ++++++++
 arch/arm/boot/dts/dra62x-j5eco-evm.dts | 56 ++++++++++++++++++++++++++++++++++
 3 files changed, 124 insertions(+)

-- 
2.6.2

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

* [PATCH 1/3] ARM: dts: Add support for GPMC for dm814x and dra62x
  2015-12-22 16:10 [PATCH 0/3] Add GPMC and NAND support for dm814x-evm and dra62x-j5eco-evm Tony Lindgren
@ 2015-12-22 16:10 ` Tony Lindgren
  2015-12-22 16:10 ` [PATCH 2/3] ARM: dts: Add NAND support for j5-eco evm Tony Lindgren
  2015-12-22 16:10 ` [PATCH 3/3] ARM: dts: Add NAND support for dm8148-evm Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2015-12-22 16:10 UTC (permalink / raw)
  To: linux-omap
  Cc: Matthijs van Duin, Neil Armstrong, Philipp Rosenberger,
	Delio Brignoli, Brian Hutchinson, linux-arm-kernel

Add support for GPMC for dm814x and dra62x

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dm814x.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/dm814x.dtsi b/arch/arm/boot/dts/dm814x.dtsi
index a25cd51..3fe68b1 100644
--- a/arch/arm/boot/dts/dm814x.dtsi
+++ b/arch/arm/boot/dts/dm814x.dtsi
@@ -548,6 +548,18 @@
 				reg-names = "gmii-sel";
 			};
 		};
+
+		gpmc: gpmc@50000000 {
+			compatible = "ti,am3352-gpmc";
+			ti,hwmods = "gpmc";
+			ti,no-idle-on-init;
+			reg = <0x50000000 0x2000>;
+			interrupts = <100>;
+			gpmc,num-cs = <7>;
+			gpmc,num-waitpins = <2>;
+			#address-cells = <2>;
+			#size-cells = <1>;
+		};
 	};
 };
 
-- 
2.6.2

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

* [PATCH 2/3] ARM: dts: Add NAND support for j5-eco evm
  2015-12-22 16:10 [PATCH 0/3] Add GPMC and NAND support for dm814x-evm and dra62x-j5eco-evm Tony Lindgren
  2015-12-22 16:10 ` [PATCH 1/3] ARM: dts: Add support for GPMC for dm814x and dra62x Tony Lindgren
@ 2015-12-22 16:10 ` Tony Lindgren
  2015-12-22 16:10 ` [PATCH 3/3] ARM: dts: Add NAND support for dm8148-evm Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2015-12-22 16:10 UTC (permalink / raw)
  To: linux-omap
  Cc: Matthijs van Duin, Neil Armstrong, Philipp Rosenberger,
	Delio Brignoli, Brian Hutchinson, linux-arm-kernel

Add NAND support for j5-eco evm.

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dra62x-j5eco-evm.dts | 56 ++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/arch/arm/boot/dts/dra62x-j5eco-evm.dts b/arch/arm/boot/dts/dra62x-j5eco-evm.dts
index 7900806..3937a58 100644
--- a/arch/arm/boot/dts/dra62x-j5eco-evm.dts
+++ b/arch/arm/boot/dts/dra62x-j5eco-evm.dts
@@ -35,6 +35,62 @@
 	phy-mode = "rgmii";
 };
 
+&gpmc {
+	ranges = <0 0 0x04000000 0x01000000>;	/* CS0: 16MB for NAND */
+
+	nand@0,0 {
+		linux,mtd-name= "micron,mt29f2g16aadwp";
+		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ti,nand-ecc-opt = "bch8";
+		nand-bus-width = <16>;
+		gpmc,device-width = <2>;
+		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>;
+		partition@0 {
+			label = "X-Loader";
+			reg = <0 0x80000>;
+		};
+		partition@0x80000 {
+			label = "U-Boot";
+			reg = <0x80000 0x1c0000>;
+		};
+		partition@0x1c0000 {
+			label = "Environment";
+			reg = <0x240000 0x40000>;
+		};
+		partition@0x280000 {
+			label = "Kernel";
+			reg = <0x280000 0x500000>;
+		};
+		partition@0x780000 {
+			label = "Filesystem";
+			reg = <0x780000 0xf880000>;
+		};
+	};
+};
+
 &mmc2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&sd1_pins>;
-- 
2.6.2

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

* [PATCH 3/3] ARM: dts: Add NAND support for dm8148-evm
  2015-12-22 16:10 [PATCH 0/3] Add GPMC and NAND support for dm814x-evm and dra62x-j5eco-evm Tony Lindgren
  2015-12-22 16:10 ` [PATCH 1/3] ARM: dts: Add support for GPMC for dm814x and dra62x Tony Lindgren
  2015-12-22 16:10 ` [PATCH 2/3] ARM: dts: Add NAND support for j5-eco evm Tony Lindgren
@ 2015-12-22 16:10 ` Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2015-12-22 16:10 UTC (permalink / raw)
  To: linux-omap
  Cc: Matthijs van Duin, Neil Armstrong, Philipp Rosenberger,
	Delio Brignoli, Brian Hutchinson, linux-arm-kernel

Add NAND support for dm8148-evm.

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dm8148-evm.dts | 56 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/arch/arm/boot/dts/dm8148-evm.dts b/arch/arm/boot/dts/dm8148-evm.dts
index e070862..862977f 100644
--- a/arch/arm/boot/dts/dm8148-evm.dts
+++ b/arch/arm/boot/dts/dm8148-evm.dts
@@ -35,6 +35,62 @@
 	phy-mode = "rgmii";
 };
 
+&gpmc {
+	ranges = <0 0 0x04000000 0x01000000>;	/* CS0: 16MB for NAND */
+
+	nand@0,0 {
+		linux,mtd-name= "micron,mt29f2g16aadwp";
+		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ti,nand-ecc-opt = "bch8";
+		nand-bus-width = <16>;
+		gpmc,device-width = <2>;
+		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>;
+		partition@0 {
+			label = "X-Loader";
+			reg = <0 0x80000>;
+		};
+		partition@0x80000 {
+			label = "U-Boot";
+			reg = <0x80000 0x1c0000>;
+		};
+		partition@0x1c0000 {
+			label = "Environment";
+			reg = <0x240000 0x40000>;
+		};
+		partition@0x280000 {
+			label = "Kernel";
+			reg = <0x280000 0x500000>;
+		};
+		partition@0x780000 {
+			label = "Filesystem";
+			reg = <0x780000 0xf880000>;
+		};
+	};
+};
+
 &mmc2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&sd1_pins>;
-- 
2.6.2

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

end of thread, other threads:[~2015-12-22 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-22 16:10 [PATCH 0/3] Add GPMC and NAND support for dm814x-evm and dra62x-j5eco-evm Tony Lindgren
2015-12-22 16:10 ` [PATCH 1/3] ARM: dts: Add support for GPMC for dm814x and dra62x Tony Lindgren
2015-12-22 16:10 ` [PATCH 2/3] ARM: dts: Add NAND support for j5-eco evm Tony Lindgren
2015-12-22 16:10 ` [PATCH 3/3] ARM: dts: Add NAND support for dm8148-evm Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).