From: Mark Jackson <mpfj-list@mimc.co.uk>
To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: AM335x : placing NAND @ address 0x0
Date: Thu, 14 Feb 2013 11:59:44 +0000 [thread overview]
Message-ID: <511CD1B0.7020609@mimc.co.uk> (raw)
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 */
};
};
};
next reply other threads:[~2013-02-14 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 11:59 Mark Jackson [this message]
2013-02-14 12:14 ` AM335x : placing NAND @ address 0x0 Mark Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=511CD1B0.7020609@mimc.co.uk \
--to=mpfj-list@mimc.co.uk \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox