Devicetree
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org
Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org
Subject: Re: Flash sector size
Date: Sun, 1 Nov 2009 01:07:45 -0600	[thread overview]
Message-ID: <fa686aa40911010007i3eee7131n46dcc968512a81e7@mail.gmail.com> (raw)
In-Reply-To: <4AA900CF.4040304-pSz03upnqPeHXe+LvDLADg@public.gmane.org>

On Thu, Sep 10, 2009 at 7:36 AM, Michal Simek <monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org> wrote:
> Hi All,
>
> I have just found if is possible to write to device tree any information about flash sector size.
>
> Just for clearing we use dts/dtb for run-time qemu(cpu emulator) configuration and I would
> like to configure flash and sectors size based on any information from DTS.
>
> Is it any proposed solution?

Sorry for the really late reply.  I'm just cleaning up my mail backlog now.

Yes, there is a binding for describing flash in the device tree.  See
Documentation/powerpc/dts-bindings/mtd-physmap.txt for some details.
NOR is well supported.  NAND drivers use it, but each NAND driver may
require additional properties depending on the NAND controller device
driver.  Flash size can be specified, but I don't think there is a
binding yet for sector size since in most cases the sector size is
probed from the device itself.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

      parent reply	other threads:[~2009-11-01  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 13:36 Flash sector size Michal Simek
     [not found] ` <4AA900CF.4040304-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2009-11-01  7:07   ` Grant Likely [this message]

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=fa686aa40911010007i3eee7131n46dcc968512a81e7@mail.gmail.com \
    --to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
    --cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    --cc=monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.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