From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/9] mtd: nand: stm_nand_bch: provide Device Tree documentation
Date: Wed, 27 Aug 2014 13:42:20 +0100 [thread overview]
Message-ID: <1409143344-22458-6-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1409143344-22458-1-git-send-email-lee.jones@linaro.org>
This is where we describe the different new and generic options used by
the ST BCH driver.
Cc: devicetree at vger.kernel.org
Reviewed-By: Pekon Gupta <pekon@pek-sem.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
Documentation/devicetree/bindings/mtd/stm-nand.txt | 74 ++++++++++++++++++++++
1 file changed, 74 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mtd/stm-nand.txt
diff --git a/Documentation/devicetree/bindings/mtd/stm-nand.txt b/Documentation/devicetree/bindings/mtd/stm-nand.txt
new file mode 100644
index 0000000..5872a39
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/stm-nand.txt
@@ -0,0 +1,74 @@
+STM BCH NAND Support
+--------------------
+
+Required properties:
+
+- compatible : Should be "st,nand-bch"
+- reg : Should contain register's location and length
+- reg-names : "emi_nand" - NAND Controller register map
+ "emiss" - External Memory Interface Subsystem base
+- interrupts : Interrupt number
+- interrupt-names : "nand_irq" - NAND Controller IRQ
+- st,nand-banks : Subnode representing one or more "banks" of NAND
+ Flash, connected to an STM NAND Controller (see
+ description below).
+- nand-ecc-strength : Generic NAND property (See mtd/nand.txt)
+ Options are; 0, 18 or 30. If not present, the driver
+ will choose the strongest scheme compatible if the
+ OOB size.
+
+Properties describing Bank of NAND Flash ("st,nand-banks"):
+
+- st,nand-csn : Chip select associated with the Bank.
+
+- st,nand-timing-relax : [Optional] Number of IP clock cycles by which to
+ "relax" timing configuration. Required on some boards
+ to accommodate board-level limitations. Applies to
+ ONFI timing mode configuration.
+
+- nand-on-flash-bbt : Generic NAND property (See mtd/nand.txt)
+
+- partitions : [Optional] Subnode describing MTD partition map
+ (see mtd/partition.txt)
+
+Note, during initialisation, the NAND Controller timing registers are configured
+according to one of the following methods, in order of precedence:
+
+ 1. Configuration based on ONFI timing mode, as advertised by the
+ device during ONFI-probing (ONFI-compliant NAND only).
+
+ 2. Use reset/safe timing values
+
+Example:
+
+ nand at fe901000 {
+ compatible = "st,nand-bch";
+ reg = <0xfe901000 0x1000>, <0xfef00800 0x0800>;
+ reg-names = "emi_nand", "emiss";
+ interrupts = <0 139 0x0>;
+ interrupt-names = "nand_irq";
+ nand-ecc-strength = <30>;
+
+ status = "okay";
+
+ bank0 {
+ /* NAND_BBT_USE_FLASH */
+ nand-on-flash-bbt;
+ st,nand-csn = <0>;
+
+ partitions {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition at 0{
+ label = "NANDFlash1";
+ reg = <0x00000000 0x00800000>;
+ };
+
+ partition at 800000{
+ label = "NANDFlash2";
+ reg = <0x00800000 0x0f800000>;
+ };
+ };
+ };
+ };
--
1.9.1
next prev parent reply other threads:[~2014-08-27 12:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 12:42 [PATCH v3 0/9] mtd: nand: Support for new DT NAND driver Lee Jones
2014-08-27 12:42 ` [PATCH 1/9] ARM: multi-v7: Enable ST BCH NAND Lee Jones
2014-08-27 12:42 ` [PATCH 2/9] ARM: sti: Add two new clock definitions for use with ST's NAND controllers Lee Jones
2014-08-27 12:42 ` [PATCH 3/9] ARM: sti: Add BCH (NAND Flash) Controller support for STiH41x (Orly) SoCs Lee Jones
2014-08-27 12:42 ` [PATCH 4/9] ARM: sti: Enable BCH NAND for STiH416 B2020-RevE Lee Jones
2014-08-27 12:42 ` Lee Jones [this message]
2014-10-06 5:06 ` [PATCH 5/9] mtd: nand: stm_nand_bch: provide Device Tree documentation Brian Norris
2014-08-27 12:42 ` [PATCH 6/9] mtd: nand: stm_nand_bch: add shared register defines for ST's NAND Controller drivers Lee Jones
2014-08-27 12:42 ` [PATCH 7/9] mtd: nand: stm_nand_bch: adding BBT header Lee Jones
2014-10-06 5:07 ` Brian Norris
2014-08-27 12:42 ` [PATCH 8/9] mtd: nand: stm_nand_bch: add support for ST's BCH NAND controller Lee Jones
2014-10-06 6:21 ` Brian Norris
2014-10-09 14:39 ` Lee Jones
2014-10-15 23:02 ` Brian Norris
2014-11-05 12:01 ` Lee Jones
2014-10-06 6:40 ` Brian Norris
2014-10-08 10:50 ` Lee Jones
2014-08-27 12:42 ` [PATCH 9/9] mtd: nand: stm_nand_bch: provide ST's implementation of Back Block Table Lee Jones
2014-10-06 6:25 ` Brian Norris
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=1409143344-22458-6-git-send-email-lee.jones@linaro.org \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@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 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).