diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-19 22:17:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-19 22:17:35 -0500 |
commit | da935c66bacb3ed9ada984b053297f87c2dff63a (patch) | |
tree | 46278da2b312c73f1375b830d7e5912bf23abd78 /Documentation/devicetree/bindings/mtd | |
parent | 9435eb1cf0b76b323019cebf8d16762a50a12a19 (diff) | |
parent | 2205a6ea93fea76f88b43727fea53f3ce3790d6f (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/net/e1000e/netdev.c
net/xfrm/xfrm_policy.c
Diffstat (limited to 'Documentation/devicetree/bindings/mtd')
-rw-r--r-- | Documentation/devicetree/bindings/mtd/fsl-upm-nand.txt | 63 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/mtd/mtd-physmap.txt | 90 |
2 files changed, 153 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mtd/fsl-upm-nand.txt b/Documentation/devicetree/bindings/mtd/fsl-upm-nand.txt new file mode 100644 index 000000000000..a48b2cadc7f0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/fsl-upm-nand.txt | |||
@@ -0,0 +1,63 @@ | |||
1 | Freescale Localbus UPM programmed to work with NAND flash | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "fsl,upm-nand". | ||
5 | - reg : should specify localbus chip select and size used for the chip. | ||
6 | - fsl,upm-addr-offset : UPM pattern offset for the address latch. | ||
7 | - fsl,upm-cmd-offset : UPM pattern offset for the command latch. | ||
8 | |||
9 | Optional properties: | ||
10 | - fsl,upm-wait-flags : add chip-dependent short delays after running the | ||
11 | UPM pattern (0x1), after writing a data byte (0x2) or after | ||
12 | writing out a buffer (0x4). | ||
13 | - fsl,upm-addr-line-cs-offsets : address offsets for multi-chip support. | ||
14 | The corresponding address lines are used to select the chip. | ||
15 | - gpios : may specify optional GPIOs connected to the Ready-Not-Busy pins | ||
16 | (R/B#). For multi-chip devices, "n" GPIO definitions are required | ||
17 | according to the number of chips. | ||
18 | - chip-delay : chip dependent delay for transfering data from array to | ||
19 | read registers (tR). Required if property "gpios" is not used | ||
20 | (R/B# pins not connected). | ||
21 | |||
22 | Examples: | ||
23 | |||
24 | upm@1,0 { | ||
25 | compatible = "fsl,upm-nand"; | ||
26 | reg = <1 0 1>; | ||
27 | fsl,upm-addr-offset = <16>; | ||
28 | fsl,upm-cmd-offset = <8>; | ||
29 | gpios = <&qe_pio_e 18 0>; | ||
30 | |||
31 | flash { | ||
32 | #address-cells = <1>; | ||
33 | #size-cells = <1>; | ||
34 | compatible = "..."; | ||
35 | |||
36 | partition@0 { | ||
37 | ... | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||
41 | |||
42 | upm@3,0 { | ||
43 | #address-cells = <0>; | ||
44 | #size-cells = <0>; | ||
45 | compatible = "tqc,tqm8548-upm-nand", "fsl,upm-nand"; | ||
46 | reg = <3 0x0 0x800>; | ||
47 | fsl,upm-addr-offset = <0x10>; | ||
48 | fsl,upm-cmd-offset = <0x08>; | ||
49 | /* Multi-chip NAND device */ | ||
50 | fsl,upm-addr-line-cs-offsets = <0x0 0x200>; | ||
51 | fsl,upm-wait-flags = <0x5>; | ||
52 | chip-delay = <25>; // in micro-seconds | ||
53 | |||
54 | nand@0 { | ||
55 | #address-cells = <1>; | ||
56 | #size-cells = <1>; | ||
57 | |||
58 | partition@0 { | ||
59 | label = "fs"; | ||
60 | reg = <0x00000000 0x10000000>; | ||
61 | }; | ||
62 | }; | ||
63 | }; | ||
diff --git a/Documentation/devicetree/bindings/mtd/mtd-physmap.txt b/Documentation/devicetree/bindings/mtd/mtd-physmap.txt new file mode 100644 index 000000000000..80152cb567d9 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/mtd-physmap.txt | |||
@@ -0,0 +1,90 @@ | |||
1 | CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) | ||
2 | |||
3 | Flash chips (Memory Technology Devices) are often used for solid state | ||
4 | file systems on embedded devices. | ||
5 | |||
6 | - compatible : should contain the specific model of mtd chip(s) | ||
7 | used, if known, followed by either "cfi-flash", "jedec-flash" | ||
8 | or "mtd-ram". | ||
9 | - reg : Address range(s) of the mtd chip(s) | ||
10 | It's possible to (optionally) define multiple "reg" tuples so that | ||
11 | non-identical chips can be described in one node. | ||
12 | - bank-width : Width (in bytes) of the bank. Equal to the | ||
13 | device width times the number of interleaved chips. | ||
14 | - device-width : (optional) Width of a single mtd chip. If | ||
15 | omitted, assumed to be equal to 'bank-width'. | ||
16 | - #address-cells, #size-cells : Must be present if the device has | ||
17 | sub-nodes representing partitions (see below). In this case | ||
18 | both #address-cells and #size-cells must be equal to 1. | ||
19 | |||
20 | For JEDEC compatible devices, the following additional properties | ||
21 | are defined: | ||
22 | |||
23 | - vendor-id : Contains the flash chip's vendor id (1 byte). | ||
24 | - device-id : Contains the flash chip's device id (1 byte). | ||
25 | |||
26 | In addition to the information on the mtd bank itself, the | ||
27 | device tree may optionally contain additional information | ||
28 | describing partitions of the address space. This can be | ||
29 | used on platforms which have strong conventions about which | ||
30 | portions of a flash are used for what purposes, but which don't | ||
31 | use an on-flash partition table such as RedBoot. | ||
32 | |||
33 | Each partition is represented as a sub-node of the mtd device. | ||
34 | Each node's name represents the name of the corresponding | ||
35 | partition of the mtd device. | ||
36 | |||
37 | Flash partitions | ||
38 | - reg : The partition's offset and size within the mtd bank. | ||
39 | - label : (optional) The label / name for this partition. | ||
40 | If omitted, the label is taken from the node name (excluding | ||
41 | the unit address). | ||
42 | - read-only : (optional) This parameter, if present, is a hint to | ||
43 | Linux that this partition should only be mounted | ||
44 | read-only. This is usually used for flash partitions | ||
45 | containing early-boot firmware images or data which should not | ||
46 | be clobbered. | ||
47 | |||
48 | Example: | ||
49 | |||
50 | flash@ff000000 { | ||
51 | compatible = "amd,am29lv128ml", "cfi-flash"; | ||
52 | reg = <ff000000 01000000>; | ||
53 | bank-width = <4>; | ||
54 | device-width = <1>; | ||
55 | #address-cells = <1>; | ||
56 | #size-cells = <1>; | ||
57 | fs@0 { | ||
58 | label = "fs"; | ||
59 | reg = <0 f80000>; | ||
60 | }; | ||
61 | firmware@f80000 { | ||
62 | label ="firmware"; | ||
63 | reg = <f80000 80000>; | ||
64 | read-only; | ||
65 | }; | ||
66 | }; | ||
67 | |||
68 | Here an example with multiple "reg" tuples: | ||
69 | |||
70 | flash@f0000000,0 { | ||
71 | #address-cells = <1>; | ||
72 | #size-cells = <1>; | ||
73 | compatible = "intel,PC48F4400P0VB", "cfi-flash"; | ||
74 | reg = <0 0x00000000 0x02000000 | ||
75 | 0 0x02000000 0x02000000>; | ||
76 | bank-width = <2>; | ||
77 | partition@0 { | ||
78 | label = "test-part1"; | ||
79 | reg = <0 0x04000000>; | ||
80 | }; | ||
81 | }; | ||
82 | |||
83 | An example using SRAM: | ||
84 | |||
85 | sram@2,0 { | ||
86 | compatible = "samsung,k6f1616u6a", "mtd-ram"; | ||
87 | reg = <2 0 0x00200000>; | ||
88 | bank-width = <2>; | ||
89 | }; | ||
90 | |||