aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-22 15:00:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-22 15:00:44 -0400
commita62d016cece2fce1d5e4eedf36b17f03a7a5c78e (patch)
treeac37b4835be5f4fe0e04611fdb40c85abb98ec78 /Documentation
parent7c034dfd58bbc056280262887acf5b7a98944d0a (diff)
parent3e550d2396d9deef77328237ed992e19dcfefca5 (diff)
Merge tag 'for-linus-20150422' of git://git.infradead.org/linux-mtd
Pull MTD updates from Brian Norris: "Common MTD: - Add Kconfig option for keeping both the 'master' and 'partition' MTDs registered as devices. This would really make a better default if we could do it over, as it allows a lot more flexibility in (1) determining the flash topology of the system from user-space and (2) adding temporary partitions at runtime (ioctl(BLKPG)). Unfortunately, this would possibly cause user-space breakage, as it will cause renumbering of the /dev/mtdX devices. We'll see if we can change this in the future, as there have already been a few people looking for this feature, and I know others have just been working around our current limitations instead of fixing them this way. - Along with the previous change, add some additional information to sysfs, so user-space can read the offset of each partition within its master device SPI NOR: - add new device tree compatible binding to represent the mostly-compatible class of SPI NOR flash which can be detected by their extended JEDEC ID bytes, cutting down the duplication of our ID tables - misc. new IDs Various other miscellaneous fixes and changes" * tag 'for-linus-20150422' of git://git.infradead.org/linux-mtd: (53 commits) mtd: spi-nor: Add support for Macronix mx25u6435f serial flash mtd: spi-nor: Add support for Winbond w25q64dw serial flash mtd: spi-nor: add support for the Winbond W25X05 flash mtd: spi-nor: support en25s64 device mtd: m25p80: bind to "nor-jedec" ID, for auto-detection Documentation: devicetree: m25p80: add "nor-jedec" binding mtd: Make MTD tests cancelable mtd: mtd_oobtest: Fix bitflip_limit usage in test case 3 mtd: docg3: remove invalid __exit annotations mtd: fsl_ifc_nand: use msecs_to_jiffies for time conversion mtd: atmel_nand: don't map the ROM table if no pmecc table offset in DT mtd: atmel_nand: add a definition for the oob reserved bytes mtd: part: Remove partition overlap checks mtd: part: Add sysfs variable for offset of partition mtd: part: Create the master device node when partitioned mtd: ts5500_flash: Fix typo in MODULE_DESCRIPTION in ts5500_flash.c mtd: denali: Disable sub-page writes in Denali NAND driver mtd: pxa3xx_nand: cleanup wait_for_completion handling mtd: nand: gpmi: Check for scan_bbt() error mtd: nand: gpmi: fixup return type of wait_for_completion_timeout ...
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-class-mtd10
-rw-r--r--Documentation/devicetree/bindings/mtd/m25p80.txt13
-rw-r--r--Documentation/devicetree/bindings/mtd/pxa3xx-nand.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/sunxi-nand.txt2
4 files changed, 20 insertions, 7 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-mtd b/Documentation/ABI/testing/sysfs-class-mtd
index 76ee192f80a0..3b5c3bca9186 100644
--- a/Documentation/ABI/testing/sysfs-class-mtd
+++ b/Documentation/ABI/testing/sysfs-class-mtd
@@ -222,3 +222,13 @@ Description:
222 The number of blocks that are marked as reserved, if any, in 222 The number of blocks that are marked as reserved, if any, in
223 this partition. These are typically used to store the in-flash 223 this partition. These are typically used to store the in-flash
224 bad block table (BBT). 224 bad block table (BBT).
225
226What: /sys/class/mtd/mtdX/offset
227Date: March 2015
228KernelVersion: 4.1
229Contact: linux-mtd@lists.infradead.org
230Description:
231 For a partition, the offset of that partition from the start
232 of the master device in bytes. This attribute is absent on
233 main devices, so it can be used to distinguish between
234 partitions and devices that aren't partitions.
diff --git a/Documentation/devicetree/bindings/mtd/m25p80.txt b/Documentation/devicetree/bindings/mtd/m25p80.txt
index 4611aa83531b..f20b111b502a 100644
--- a/Documentation/devicetree/bindings/mtd/m25p80.txt
+++ b/Documentation/devicetree/bindings/mtd/m25p80.txt
@@ -3,10 +3,13 @@
3Required properties: 3Required properties:
4- #address-cells, #size-cells : Must be present if the device has sub-nodes 4- #address-cells, #size-cells : Must be present if the device has sub-nodes
5 representing partitions. 5 representing partitions.
6- compatible : Should be the manufacturer and the name of the chip. Bear in mind 6- compatible : May include a device-specific string consisting of the
7 the DT binding is not Linux-only, but in case of Linux, see the 7 manufacturer and name of the chip. Bear in mind the DT binding
8 "spi_nor_ids" table in drivers/mtd/spi-nor/spi-nor.c for the list 8 is not Linux-only, but in case of Linux, see the "m25p_ids"
9 of supported chips. 9 table in drivers/mtd/devices/m25p80.c for the list of supported
10 chips.
11 Must also include "nor-jedec" for any SPI NOR flash that can be
12 identified by the JEDEC READ ID opcode (0x9F).
10- reg : Chip-Select number 13- reg : Chip-Select number
11- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at 14- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
12 15
@@ -22,7 +25,7 @@ Example:
22 flash: m25p80@0 { 25 flash: m25p80@0 {
23 #address-cells = <1>; 26 #address-cells = <1>;
24 #size-cells = <1>; 27 #size-cells = <1>;
25 compatible = "spansion,m25p80"; 28 compatible = "spansion,m25p80", "nor-jedec";
26 reg = <0>; 29 reg = <0>;
27 spi-max-frequency = <40000000>; 30 spi-max-frequency = <40000000>;
28 m25p,fast-read; 31 m25p,fast-read;
diff --git a/Documentation/devicetree/bindings/mtd/pxa3xx-nand.txt b/Documentation/devicetree/bindings/mtd/pxa3xx-nand.txt
index de8b517a5521..4f833e3c4f51 100644
--- a/Documentation/devicetree/bindings/mtd/pxa3xx-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/pxa3xx-nand.txt
@@ -14,7 +14,7 @@ Optional properties:
14 - marvell,nand-enable-arbiter: Set to enable the bus arbiter 14 - marvell,nand-enable-arbiter: Set to enable the bus arbiter
15 - marvell,nand-keep-config: Set to keep the NAND controller config as set 15 - marvell,nand-keep-config: Set to keep the NAND controller config as set
16 by the bootloader 16 by the bootloader
17 - num-cs: Number of chipselect lines to usw 17 - num-cs: Number of chipselect lines to use
18 - nand-on-flash-bbt: boolean to enable on flash bbt option if 18 - nand-on-flash-bbt: boolean to enable on flash bbt option if
19 not present false 19 not present false
20 - nand-ecc-strength: number of bits to correct per ECC step 20 - nand-ecc-strength: number of bits to correct per ECC step
diff --git a/Documentation/devicetree/bindings/mtd/sunxi-nand.txt b/Documentation/devicetree/bindings/mtd/sunxi-nand.txt
index 0273adb8638c..086d6f44c4b9 100644
--- a/Documentation/devicetree/bindings/mtd/sunxi-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/sunxi-nand.txt
@@ -21,7 +21,7 @@ Optional properties:
21- nand-ecc-mode : one of the supported ECC modes ("hw", "hw_syndrome", "soft", 21- nand-ecc-mode : one of the supported ECC modes ("hw", "hw_syndrome", "soft",
22 "soft_bch" or "none") 22 "soft_bch" or "none")
23 23
24see Documentation/devicetree/mtd/nand.txt for generic bindings. 24see Documentation/devicetree/bindings/mtd/nand.txt for generic bindings.
25 25
26 26
27Examples: 27Examples: