Merge tag 'v4.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / mtd / jedec,spi-nor.txt
1 * SPI NOR flash: ST M25Pxx (and similar) serial flash chips
2
3 Required properties:
4 - #address-cells, #size-cells : Must be present if the device has sub-nodes
5   representing partitions.
6 - compatible : May include a device-specific string consisting of the
7                manufacturer and name of the chip. A list of supported chip
8                names follows.
9                Must also include "jedec,spi-nor" for any SPI NOR flash that can
10                be identified by the JEDEC READ ID opcode (0x9F).
11
12                Supported chip names:
13                  at25df321a
14                  at25df641
15                  at26df081a
16                  mr25h256
17                  mr25h10
18                  mr25h40
19                  mx25l4005a
20                  mx25l1606e
21                  mx25l6405d
22                  mx25l12805d
23                  mx25l25635e
24                  n25q064
25                  n25q128a11
26                  n25q128a13
27                  n25q512a
28                  s25fl256s1
29                  s25fl512s
30                  s25sl12801
31                  s25fl008k
32                  s25fl064k
33                  sst25vf040b
34                  m25p40
35                  m25p80
36                  m25p16
37                  m25p32
38                  m25p64
39                  m25p128
40                  w25x80
41                  w25x32
42                  w25q32
43                  w25q64
44                  w25q32dw
45                  w25q80bl
46                  w25q128
47                  w25q256
48
49                The following chip names have been used historically to
50                designate quirky versions of flash chips that do not support the
51                JEDEC READ ID opcode (0x9F):
52                  m25p05-nonjedec
53                  m25p10-nonjedec
54                  m25p20-nonjedec
55                  m25p40-nonjedec
56                  m25p80-nonjedec
57                  m25p16-nonjedec
58                  m25p32-nonjedec
59                  m25p64-nonjedec
60                  m25p128-nonjedec
61
62 - reg : Chip-Select number
63 - spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
64
65 Optional properties:
66 - m25p,fast-read : Use the "fast read" opcode to read data from the chip instead
67                    of the usual "read" opcode. This opcode is not supported by
68                    all chips and support for it can not be detected at runtime.
69                    Refer to your chips' datasheet to check if this is supported
70                    by your chip.
71
72 Example:
73
74         flash: m25p80@0 {
75                 #address-cells = <1>;
76                 #size-cells = <1>;
77                 compatible = "spansion,m25p80", "jedec,spi-nor";
78                 reg = <0>;
79                 spi-max-frequency = <40000000>;
80                 m25p,fast-read;
81         };