partition.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Representing flash partitions in devicetree
  2. Partitions can be represented by sub-nodes of an mtd device. This can be used
  3. on platforms which have strong conventions about which portions of a flash are
  4. used for what purposes, but which don't use an on-flash partition table such
  5. as RedBoot.
  6. #address-cells & #size-cells must both be present in the mtd device and be
  7. equal to 1.
  8. Required properties:
  9. - reg : The partition's offset and size within the mtd bank.
  10. Optional properties:
  11. - label : The label / name for this partition. If omitted, the label is taken
  12. from the node name (excluding the unit address).
  13. - read-only : This parameter, if present, is a hint to Linux that this
  14. partition should only be mounted read-only. This is usually used for flash
  15. partitions containing early-boot firmware images or data which should not be
  16. clobbered.
  17. Examples:
  18. flash@0 {
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. partition@0 {
  22. label = "u-boot";
  23. reg = <0x0000000 0x100000>;
  24. read-only;
  25. };
  26. uimage@100000 {
  27. reg = <0x0100000 0x200000>;
  28. };
  29. };