Add examples for special values in linux/mtd/partitions.h. Signed-off-by: Edward Chow <equu@xxxxxxxxxxx> --- .../mtd/partitions/fixed-partitions.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml index 331e564f29dc..e7bf466c395f 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -164,3 +164,33 @@ examples: read-only; }; }; + + - | + #include <dt-bindings/mtd/partitions.h> + partitions { + compatible = "fixed-partitions"; + #address-cells = <2>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0 0x000000 0x020000>; + read-only; + }; + + firmware@1 { + label = "firmware"; + /* From the end of the last partition, occupying as mush + * as possible, retaining 0x010000 after it, + * "MTDPART_OFS_SPECIAL MTDPART_OFS_NXTBLK" similar to + * this, but always beginning at erase block boundary. */ + reg = <MTDPART_OFS_SPECIAL MTDPART_OFS_RETAIN 0x010000>; + }; + + calibration@2 { + compatible = "fixed-partitions"; + label = "calibration"; + /* Appending to the last partition, occupying 0x010000 */ + reg = <MTDPART_OFS_SPECIAL MTDPART_OFS_APPEND 0x010000>; + }; + }; -- 2.42.0