AM335x : placing NAND @ address 0x0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 */
				};
			};
		};
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux