Commit f902baa9 authored by Miquel Raynal's avatar Miquel Raynal

dt-bindings: mtd: Remove useless file about partitions

There is already a real partitions.yaml file, so assuming everybody
knows hot to read yaml schema now, this text file is no longer needed,
so drop it.

Depending on the situation, the lines referring to this file are either
dropped or edited to point to mtd.yaml which includes partition{,s}.yaml.
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-3-miquel.raynal@bootlin.com
parent 5d96ea42
...@@ -45,10 +45,8 @@ Optional properties: ...@@ -45,10 +45,8 @@ Optional properties:
- atmel,rb: an integer identifying the native Ready/Busy pin. Only meaningful - atmel,rb: an integer identifying the native Ready/Busy pin. Only meaningful
on sama5 SoCs. on sama5 SoCs.
All generic properties described in All generic properties are described in the generic yaml files under
Documentation/devicetree/bindings/mtd/{common,nand}.txt also apply to the NAND Documentation/devicetree/bindings/mtd/.
device node, and NAND partitions should be defined under the NAND node as
described in Documentation/devicetree/bindings/mtd/partition.txt.
* ECC engine (PMECC) bindings: * ECC engine (PMECC) bindings:
......
...@@ -34,7 +34,6 @@ properties: ...@@ -34,7 +34,6 @@ properties:
type: object type: object
description: description:
Node containing description of fixed partitions. Node containing description of fixed partitions.
See Documentation/devicetree/bindings/mtd/partition.txt
patternProperties: patternProperties:
"^nand@[a-f0-9]$": "^nand@[a-f0-9]$":
......
...@@ -19,7 +19,7 @@ accuracy:) ...@@ -19,7 +19,7 @@ accuracy:)
- nxp,wr_low: WR_LOW - nxp,wr_low: WR_LOW
Optional subnodes: Optional subnodes:
- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt - Partitions, see Documentation/devicetree/bindings/mtd/mtd.yaml
Example: Example:
......
...@@ -20,7 +20,7 @@ clock speed:) ...@@ -20,7 +20,7 @@ clock speed:)
- nxp,rsetup: Read setup time (R_SETUP) - nxp,rsetup: Read setup time (R_SETUP)
Optional subnodes: Optional subnodes:
- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt - Partitions, see Documentation/devicetree/bindings/mtd/mtd.yaml
Example: Example:
......
...@@ -131,7 +131,7 @@ Example: ...@@ -131,7 +131,7 @@ Example:
}; };
NAND chip optional subnodes: NAND chip optional subnodes:
- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt - Partitions, see Documentation/devicetree/bindings/mtd/mtd.yaml
Example: Example:
nand@0 { nand@0 {
......
Flash partitions in device tree
===============================
Flash devices can be partitioned into one or more functional ranges (e.g. "boot
code", "nvram", "kernel").
Different devices may be partitioned in a different ways. Some may use a fixed
flash layout set at production time. Some may use on-flash table that describes
the geometry and naming/purpose of each functional region. It is also possible
to see these methods mixed.
To assist system software in locating partitions, we allow describing which
method is used for a given flash device. To describe the method there should be
a subnode of the flash device that is named 'partitions'. It must have a
'compatible' property, which is used to identify the method to use.
When a single partition is represented with a DT node (it depends on a used
format) it may also be described using above rules ('compatible' and optionally
some extra properties / subnodes). It allows describing more complex,
hierarchical (multi-level) layouts and should be used if there is some
significant relation between partitions or some partition internally uses
another partitioning method.
Available bindings are listed in the "partitions" subdirectory.
Deprecated: partitions defined in flash node
============================================
For backwards compatibility partitions as direct subnodes of the flash device are
supported. This use is discouraged.
NOTE: also for backwards compatibility, direct subnodes that have a compatible
string are not considered partitions, as they may be used for other bindings.
...@@ -75,7 +75,7 @@ config MTD_OF_PARTS ...@@ -75,7 +75,7 @@ config MTD_OF_PARTS
This provides a open firmware device tree partition parser This provides a open firmware device tree partition parser
which derives the partition map from the children of the which derives the partition map from the children of the
flash memory node, as described in flash memory node, as described in
Documentation/devicetree/bindings/mtd/partition.txt. Documentation/devicetree/bindings/mtd/mtd.yaml.
config MTD_OF_PARTS_BCM4908 config MTD_OF_PARTS_BCM4908
bool "BCM4908 partitioning support" bool "BCM4908 partitioning support"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment