Skip to contentSkip to conversation

arm/dts: OMAP3: Add gpmc DT node support

PATCH In review Anil Kumar 2 participants 5 messages Feb 16, 2013 Device tree bindings

lore
Share & tools
lore

Anil Kumar

author
#0 lore raw

cover arm/dts: OMAP3: Add gpmc DT node support

Add gpmc DT node in dtsi file.
Add nand DT node and partitions information for devkit8000.

This series is based on top of branch ???omap-for-v3.9/gpmc??? git tree
http://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
and patches.

Anil Kumar:-
ARM: dts: add minimal DT support for DevKit8000

Jon Hunter:-
ARM: OMAP2+: Fix-up gpmc merge error

Done basic testing:-
- #cat /proc/mtd (shows nand partitions)
- Nand partitions by command line.

Anil Kumar (2):
ARM: dts: omap3: Add gpmc node
ARM: dts: omap3-devkit8000: add nand dt node

 arch/arm/boot/dts/omap3-devkit8000.dts |   52 ++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/omap3.dtsi           |   11 +++++++
 2 files changed, 63 insertions(+), 0 deletions(-)
author
#1 lore raw

PATCH 1/2 ARM: dts: omap3: Add gpmc node

Add gpmc DT node.

---
:100644 100644 1acc261... 9f36531... M arch/arm/boot/dts/omap3.dtsi

 arch/arm/boot/dts/omap3.dtsi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap3.dtsi +11 -0
index 1acc261..9f36531 100644
@@ -397,5 +397,16 @@
 			ti,timer-alwon;
 			ti,timer-secure;
 		};
+
+		gpmc: gpmc at 6e000000 {
+			compatible = "ti,omap3430-gpmc";
+			ti,hwmods = "gpmc";
+			reg = <0x6e000000 0x1000000>;
+			interrupts = <20>;
+			gpmc,num-cs = <8>;
+			gpmc,num-waitpins = <4>;
+			#address-cells = <2>;
+			#size-cells = <1>;
+		};
 	};
 };
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH 1/2] ARM: dts: omap3: Add gpmc node

Hi Anil,

Quoted 36 lines · Anil Kumar

Add gpmc DT node.

---
:100644 100644 1acc261... 9f36531... M arch/arm/boot/dts/omap3.dtsi

 arch/arm/boot/dts/omap3.dtsi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap3.dtsi +11 -0
index 1acc261..9f36531 100644
@@ -397,5 +397,16 @@
 			ti,timer-alwon;
 			ti,timer-secure;
 		};
+
+		gpmc: gpmc at 6e000000 {
+			compatible = "ti,omap3430-gpmc";
+			ti,hwmods = "gpmc";
+			reg = <0x6e000000 0x1000000>;
+			interrupts = <20>;
+			gpmc,num-cs = <8>;
+			gpmc,num-waitpins = <4>;
+			#address-cells = <2>;
+			#size-cells = <1>;
+		};
 	};
 };
Signature · 6 lines
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

This patch has been already sent twice to the mailing list. Perhaps it would be more polite if you could base your work on one of those instead of sending it yourself again.

Florian Vaussard sent one on January 28th:
[PATCH 1/2] ARM: dts: OMAP3: Add GPMC controller

Javier Martinez Canillas sent another one on February 09th:
[PATCH RFC 6/7] ARM: dts: OMAP: Add an GPMC node for OMAP3

Moreover, you could help to get patches merged faster by sending your Acked-by or Tested-by.

Thanks,

Signature · 3 lines
Ezequiel Garc?a, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
author
#3 lore raw

Re: [PATCH 1/2] ARM: dts: omap3: Add gpmc node

Hi,

Quoted 44 lines · Ezequiel Garcia

Hi Anil,

Quoted 32 lines · Anil Kumar

Add gpmc DT node.

---
:100644 100644 1acc261... 9f36531... M arch/arm/boot/dts/omap3.dtsi

 arch/arm/boot/dts/omap3.dtsi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap3.dtsi +11 -1
index 1acc261..9f36531 100644
@@ -397,5 +397,16 @@
                      ti,timer-alwon;
                      ti,timer-secure;
              };
+
+             gpmc: gpmc at 6e000000 {
+                     compatible = "ti,omap3430-gpmc";
+                     ti,hwmods = "gpmc";
+                     reg = <0x6e000000 0x1000000>;
+                     interrupts = <20>;
+                     gpmc,num-cs = <8>;
+                     gpmc,num-waitpins = <4>;
+                     #address-cells = <2>;
+                     #size-cells = <1>;
+             };
      };
 };
--

1.7.0.4

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

This patch has been already sent twice to the mailing list. Perhaps it would be more polite if you could base your work on one of those instead of sending it yourself again.

Quoted 2 lines

Florian Vaussard sent one on January 28th:
[PATCH 1/2] ARM: dts: OMAP3: Add GPMC controller

ok, I missed this patch. I will re base my changes on of this patch.

Quoted 7 lines

Javier Martinez Canillas sent another one on February 09th:
[PATCH RFC 6/7] ARM: dts: OMAP: Add an GPMC node for OMAP3

Moreover, you could help to get patches merged faster by sending your Acked-by or Tested-by.

Sure i do that.

Thanks,
Anil

author
#4 lore raw

PATCH 2/2 ARM: dts: omap3-devkit8000: add nand dt node

In reply to Anil Kumar

Add the needed sections to enable nand support on
Devkit8000.

Add nand partitions information.

---
:100644 100644 6338993... 6c6decf... M arch/arm/boot/dts/omap3-devkit8000.dts

 arch/arm/boot/dts/omap3-devkit8000.dts |   52 ++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap3-devkit8000.dts +52 -0
index 6338993..6c6decf 100644
@@ -101,3 +101,55 @@
 &mcbsp5 {
 	status = "disabled";
 };
+
+&gpmc {
+	ranges = <0 0 0x30000000 0x04>;       /* CS0: NAND */
+
+	nand at 0,0 {
+		reg = <0 0 0>; /* CS0, offset 0 */
+		nand-bus-width = <16>;
+
+		gpmc,sync-clk = <0>;
+		gpmc,cs-on = <0>;
+		gpmc,cs-rd-off = <44>;
+		gpmc,cs-wr-off = <44>;
+		gpmc,adv-on = <6>;
+		gpmc,adv-rd-off = <34>;
+		gpmc,adv-wr-off = <44>;
+		gpmc,we-off = <40>;
+		gpmc,oe-off = <54>;
+		gpmc,access = <64>;
+		gpmc,rd-cycle = <82>;
+		gpmc,wr-cycle = <82>;
+		gpmc,wr-access = <40>;
+		gpmc,wr-data-mux-bus = <0>;
+
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		x-loader at 0 {
+			label = "X-Loader";
+			reg = <0 0x80000>;
+		};
+
+		bootloaders at 80000 {
+			label = "U-Boot";
+			reg = <0x80000 0x1e0000>;
+		};
+
+		bootloaders_env at 260000 {
+			label = "U-Boot Env";
+			reg = <0x260000 0x20000>;
+		};
+
+		kernel at 280000 {
+			label = "Kernel";
+			reg = <0x280000 0x400000>;
+		};
+
+		filesystem at 680000 {
+			label = "File System";
+			reg = <0x680000 0xf980000>;
+		};
+	};
+};
Signature · 1 line
1.7.0.4