~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/mtd/fsmc-nand.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 ST Microelectronics Flexible Static Memory Controller (FSMC)
  2 NAND Interface
  3 
  4 Required properties:
  5 - compatible : "st,spear600-fsmc-nand", "stericsson,fsmc-nand"
  6 - reg : Address range of the mtd chip
  7 - reg-names: Should contain the reg names "fsmc_regs", "nand_data", "nand_addr" and "nand_cmd"
  8 
  9 Optional properties:
 10 - bank-width : Width (in bytes) of the device.  If not present, the width
 11   defaults to 1 byte
 12 - nand-skip-bbtscan: Indicates the BBT scanning should be skipped
 13 - timings: array of 6 bytes for NAND timings. The meanings of these bytes
 14   are:
 15   byte 0 TCLR  : CLE to RE delay in number of AHB clock cycles, only 4 bits
 16                  are valid. Zero means one clockcycle, 15 means 16 clock
 17                  cycles.
 18   byte 1 TAR   : ALE to RE delay, 4 bits are valid. Same format as TCLR.
 19   byte 2 THIZ  : number of HCLK clock cycles during which the data bus is
 20                  kept in Hi-Z (tristate) after the start of a write access.
 21                  Only valid for write transactions. Zero means zero cycles,
 22                  255 means 255 cycles.
 23   byte 3 THOLD : number of HCLK clock cycles to hold the address (and data
 24                  when writing) after the command deassertation. Zero means
 25                  one cycle, 255 means 256 cycles.
 26   byte 4 TWAIT : number of HCLK clock cycles to assert the command to the
 27                  NAND flash in response to SMWAITn. Zero means 1 cycle,
 28                  255 means 256 cycles.
 29   byte 5 TSET  : number of HCLK clock cycles to assert the address before the
 30                  command is asserted. Zero means one cycle, 255 means 256
 31                  cycles.
 32 - bank: default NAND bank to use (0-3 are valid, 0 is the default).
 33 - nand-ecc-mode      : see nand-controller.yaml
 34 - nand-ecc-strength  : see nand-controller.yaml
 35 - nand-ecc-step-size : see nand-controller.yaml
 36 
 37 Can support 1-bit HW ECC (default) or if stronger correction is required,
 38 software-based BCH.
 39 
 40 Example:
 41 
 42         fsmc: flash@d1800000 {
 43                 compatible = "st,spear600-fsmc-nand";
 44                 #address-cells = <1>;
 45                 #size-cells = <1>;
 46                 reg = <0xd1800000 0x1000        /* FSMC Register */
 47                        0xd2000000 0x0010        /* NAND Base DATA */
 48                        0xd2020000 0x0010        /* NAND Base ADDR */
 49                        0xd2010000 0x0010>;      /* NAND Base CMD */
 50                 reg-names = "fsmc_regs", "nand_data", "nand_addr", "nand_cmd";
 51 
 52                 bank-width = <1>;
 53                 nand-skip-bbtscan;
 54                 timings = /bits/ 8 <0 0 0 2 3 0>;
 55                 bank = <1>;
 56 
 57                 partition@0 {
 58                         ...
 59                 };
 60         };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php