1 Representing flash partitions in devicetree
3 Partitions can be represented by sub-nodes of an mtd device. This can be used
4 on platforms which have strong conventions about which portions of a flash are
5 used for what purposes, but which don't use an on-flash partition table such
8 The partition table should be a subnode of the mtd node and should be named
9 'partitions'. This node should have the following property:
10 - compatible : (required) must be "fixed-partitions"
11 Partitions are then defined in subnodes of the partitions node.
13 For backwards compatibility partitions as direct subnodes of the mtd device are
14 supported. This use is discouraged.
15 NOTE: also for backwards compatibility, direct subnodes that have a compatible
16 string are not considered partitions, as they may be used for other bindings.
18 #address-cells & #size-cells must both be present in the partitions subnode of the
19 mtd device. There are two valid values for both:
20 <1>: for partitions that require a single 32-bit cell to represent their
21 size/address (aka the value is below 4 GiB)
22 <2>: for partitions that require two 32-bit cells to represent their
23 size/address (aka the value is 4 GiB or greater).
26 - reg : The partition's offset and size within the mtd bank.
29 - label : The label / name for this partition. If omitted, the label is taken
30 from the node name (excluding the unit address).
31 - read-only : This parameter, if present, is a hint to Linux that this
32 partition should only be mounted read-only. This is usually used for flash
33 partitions containing early-boot firmware images or data which should not be
35 - lock : Do not unlock the partition at initialization time (not supported on
43 compatible = "fixed-partitions";
49 reg = <0x0000000 0x100000>;
54 reg = <0x0100000 0x200000>;
61 compatible = "fixed-partitions";
65 /* a 4 GiB partition */
68 reg = <0x00000000 0x1 0x00000000>;
75 compatible = "fixed-partitions";
79 /* an 8 GiB partition */
81 label = "filesystem #1";
82 reg = <0x0 0x00000000 0x2 0x00000000>;
85 /* a 4 GiB partition */
87 label = "filesystem #2";
88 reg = <0x2 0x00000000 0x1 0x00000000>;