mtd-physmap.txt 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. CFI or JEDEC memory-mapped NOR flash
  2. Flash chips (Memory Technology Devices) are often used for solid state
  3. file systems on embedded devices.
  4. - compatible : should contain the specific model of flash chip(s)
  5. used, if known, followed by either "cfi-flash" or "jedec-flash"
  6. - reg : Address range(s) of the flash chip(s)
  7. It's possible to (optionally) define multiple "reg" tuples so that
  8. non-identical NOR chips can be described in one flash node.
  9. - bank-width : Width (in bytes) of the flash bank. Equal to the
  10. device width times the number of interleaved chips.
  11. - device-width : (optional) Width of a single flash chip. If
  12. omitted, assumed to be equal to 'bank-width'.
  13. - #address-cells, #size-cells : Must be present if the flash has
  14. sub-nodes representing partitions (see below). In this case
  15. both #address-cells and #size-cells must be equal to 1.
  16. For JEDEC compatible devices, the following additional properties
  17. are defined:
  18. - vendor-id : Contains the flash chip's vendor id (1 byte).
  19. - device-id : Contains the flash chip's device id (1 byte).
  20. In addition to the information on the flash bank itself, the
  21. device tree may optionally contain additional information
  22. describing partitions of the flash address space. This can be
  23. used on platforms which have strong conventions about which
  24. portions of the flash are used for what purposes, but which don't
  25. use an on-flash partition table such as RedBoot.
  26. Each partition is represented as a sub-node of the flash device.
  27. Each node's name represents the name of the corresponding
  28. partition of the flash device.
  29. Flash partitions
  30. - reg : The partition's offset and size within the flash bank.
  31. - label : (optional) The label / name for this flash partition.
  32. If omitted, the label is taken from the node name (excluding
  33. the unit address).
  34. - read-only : (optional) This parameter, if present, is a hint to
  35. Linux that this flash partition should only be mounted
  36. read-only. This is usually used for flash partitions
  37. containing early-boot firmware images or data which should not
  38. be clobbered.
  39. Example:
  40. flash@ff000000 {
  41. compatible = "amd,am29lv128ml", "cfi-flash";
  42. reg = <ff000000 01000000>;
  43. bank-width = <4>;
  44. device-width = <1>;
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. fs@0 {
  48. label = "fs";
  49. reg = <0 f80000>;
  50. };
  51. firmware@f80000 {
  52. label ="firmware";
  53. reg = <f80000 80000>;
  54. read-only;
  55. };
  56. };
  57. Here an example with multiple "reg" tuples:
  58. flash@f0000000,0 {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. compatible = "intel,PC48F4400P0VB", "cfi-flash";
  62. reg = <0 0x00000000 0x02000000
  63. 0 0x02000000 0x02000000>;
  64. bank-width = <2>;
  65. partition@0 {
  66. label = "test-part1";
  67. reg = <0 0x04000000>;
  68. };
  69. };