All of lore.kernel.org
 help / color / mirror / Atom feed
* AM335x : placing NAND @ address 0x0
@ 2013-02-14 11:59 Mark Jackson
  2013-02-14 12:14 ` Mark Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Jackson @ 2013-02-14 11:59 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

I'm hitting an issue where I want to register my GPMC connected NAND on CS0 at address 0x0.

Here's the relevant error from the boot messages:-

[    0.293834] omap-gpmc gpmc.3: GPMC revision 6.0
[    0.294175] omap-gpmc gpmc.3: failed to reserve memory
[    0.294267] omap-gpmc: probe of gpmc.3 failed with error -16

The chip select and base address have already been setup under U-Boot and it appears to work fine
(i.e. U-Boot can see the device).

Am I not allowed to place the NAND at address 0x0 ?  If not, why not ?

The GPMC section of my .dts file is shown below.

Cheers
Mark J.

---
		gpmc: gpmc@50000000 {
			compatible = "ti,am3352-gpmc", "simple-bus";
			ti,hwmods = "gpmc";
			status = "okay";
			#address-cells = <2>;
			#size-cells = <1>;
			ranges = <0 0 0x01000000 0x10000000>;	/* CS0: NAND 256M */

			nand@0,0 {
				reg = <0 0 0x10000000>; /* CS0, offset 0 */
				nand-bus-width = <8>;
				ti,nand-ecc-opt = "bch8";

				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>;
				elm_id = <&elm>;

				/* MTD partition table */
				partition@1 {
					label = "boot";
					reg = <0x00000000 0x00100000>; /* 1MB */
				};

				partition@2 {
					label = "rootfs";
					reg = <0x00100000 0x04000000>; /* 64MB */
				};

				partition@3 {
					label = "data";
					reg = <0x04100000 0x0bf00000>; /* 191MB */
				};
			};
		};

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

end of thread, other threads:[~2013-02-14 12:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-14 11:59 AM335x : placing NAND @ address 0x0 Mark Jackson
2013-02-14 12:14 ` Mark Jackson

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.