From: Stefan Roese <sr@denx.de>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: linuxppc-dev@ozlabs.org,
devicetree-discuss list <devicetree-discuss@ozlabs.org>
Subject: Re: physmap_of and partitions (mtd concat support)
Date: Wed, 25 Mar 2009 10:35:27 +0100 [thread overview]
Message-ID: <200903251035.28074.sr@denx.de> (raw)
In-Reply-To: <fa686aa40903240928t2a3fcccdrb4508e34c7079aef@mail.gmail.com>
On Tuesday 24 March 2009, Grant Likely wrote:
> > OK, in the example above such a spanning partition is not so likely. But
> > think about my original example, the Intel P30 with two different cfi
> > compatible chips on one die. Here a partition spanning over both devices
> > is very likely.
>
> I agree. Same thing when two or more flash chips are put on a board
> in consecutive addresses. I've worked on plenty of these arrangements
> myself.
Yes, multiple identical devices are no problem at all. This is handled
correctly with the current code and device tree syntax.
> This case really does sound like a driver bug and that the existing
> cfi-flash binding is sufficient to describe the hardware. IIUC, when
> all the flash chips are of the same type the physmap_of driver should
> be smart enough to detect each of the flash chips within the reg
> range.
*When* all are identical then this works, yes. But in the Intel P30 case the 2
chips are not identical. And from my understanding this is not a problem/bug
in the physmap_of driver.
> If I'm wrong and it cannot do this, then it would be a simple matter
> of adding an additional tuple to reg for each discrete chip. A
> simple, backwards compatible extension which doesn't require a new
> binding.
So you are thinking of something like this?
flash@f0000000,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
reg = <0 0x00000000 0x02000000
0 0x02000000 0x02000000>;
bank-width = <2>;
device-width = <2>;
partition@0 {
label = "test-part1";
reg = <0 0x04000000>;
};
};
That's also fine with me. Changes to physmap_of would be minimal this way.
Do we have a consensus that this should be the way to implement concat support
in physmap_of?
Thanks.
Best regards,
Stefan
next prev parent reply other threads:[~2009-03-25 9:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-23 10:51 physmap_of and partitions (mtd concat support) Stefan Roese
2009-03-23 15:37 ` Grant Likely
2009-03-24 9:07 ` Stefan Roese
2009-03-24 14:57 ` Grant Likely
2009-03-24 15:39 ` Stefan Roese
2009-03-24 16:28 ` Grant Likely
2009-03-25 9:35 ` Stefan Roese [this message]
2009-03-25 13:28 ` Grant Likely
2009-03-25 14:14 ` Stefan Roese
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=200903251035.28074.sr@denx.de \
--to=sr@denx.de \
--cc=devicetree-discuss@ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).