All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: linux-mtd@lists.infradead.org
Subject: atmel nand bindings vs. actual dts files
Date: Wed, 06 Mar 2019 15:07:52 +0100	[thread overview]
Message-ID: <1823900.qPX5mxbl1h@ada> (raw)

Hei hei,

I'm currently adapting the at91-sama5d27_som1_ek.dts file for a custom 
modification of that board [1], and had a look at how sama5d3.dtsi, 
sama5d4.dtsi and boards including those define the nand controller and the 
nand chip. What puzzles me is the following. The atmel-nand devicetree binding 
docs say:


Required properties:
- reg: describes the CS lines assigned to the NAND device. If the NAND device
       exposes multiple CS lines (multi-dies chips), your reg property will
       contain X tuples of 3 entries.
       1st entry: the CS line this NAND chip is connected to
       2nd entry: the base offset of the memory region assigned to this
                  device (always 0)
       3rd entry: the memory region size (always 0x800000)


However the actual node of e.g. at91-sama5d3_xplained.dts contains this:

                                nand@3 {
                                        reg = <0x3 0x0 0x2>;
                                        atmel,rb = <0>;
                                        nand-bus-width = <8>;
                                        nand-ecc-mode = "hw";
                                        nand-ecc-strength = <4>;
                                        nand-ecc-step-size = <512>;
                                        nand-on-flash-bbt;

So instead of "always 0x800000" that node has 0x2 as third entry for the 'reg' 
property. Why is that?

Bonus question: if the R/B line is not connected, how is that expressed in 
dts? As far as I understood that is possible, if the driver polls some status 
register instead of that line level, right?

Greets
Alex

[1] we piggyback soldered a raw NAND flash to the som1 module with some 	
enameled copper wire for evaluation, NAND is already responding in a modified 
U-Boot ;-)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

             reply	other threads:[~2019-03-06 14:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06 14:07 Alexander Dahl [this message]
2019-03-07 16:25 ` atmel nand bindings vs. actual dts files Alexander Dahl
2019-04-29  9:55   ` Miquel Raynal
2019-04-30  9:24     ` Alexander Dahl
2019-04-30  9:32       ` Miquel Raynal
2019-06-04  1:53         ` Alexandre Belloni
2019-06-04  7:43           ` Boris Brezillon

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=1823900.qPX5mxbl1h@ada \
    --to=ada@thorsis.com \
    --cc=linux-mtd@lists.infradead.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 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.