Skip to content

Commit

Permalink
powerpc/device-tree: Document MTD nodes with multiple "reg" tuples
Browse files Browse the repository at this point in the history
Add binding for mtd nodes with multiple reg tuples.  Multiple reg tuples
are used when the flash region covers multiple devices of the same type,
but not necessarily the same size.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Stefan Roese authored and Grant Likely committed Apr 16, 2009
1 parent efcc2da commit c5a88dd
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Documentation/powerpc/dts-bindings/mtd-physmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ file systems on embedded devices.

- compatible : should contain the specific model of flash chip(s)
used, if known, followed by either "cfi-flash" or "jedec-flash"
- reg : Address range of the flash chip
- reg : Address range(s) of the flash chip(s)
It's possible to (optionally) define multiple "reg" tuples so that
non-identical NOR chips can be described in one flash node.
- bank-width : Width (in bytes) of the flash bank. Equal to the
device width times the number of interleaved chips.
- device-width : (optional) Width of a single flash chip. If
Expand Down Expand Up @@ -61,3 +63,18 @@ Example:
read-only;
};
};

Here an example with multiple "reg" tuples:

flash@f0000000,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "intel,PC48F4400P0VB", "cfi-flash";
reg = <0 0x00000000 0x02000000
0 0x02000000 0x02000000>;
bank-width = <2>;
partition@0 {
label = "test-part1";
reg = <0 0x04000000>;
};
};

0 comments on commit c5a88dd

Please sign in to comment.