diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2012-07-24 09:30:03 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 13:58:14 -0400 |
commit | e919fd200033e80b26f152d22c00a8fae7f8d548 (patch) | |
tree | 09cf3583765d3acefe8a09b948c4827da928e9c6 /Documentation/devicetree/bindings/mmc | |
parent | 77dcb3f4c344d4c9619803848f1aba4d271dac7b (diff) |
mmc: atmel-mci: add device tree support
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mmc')
-rw-r--r-- | Documentation/devicetree/bindings/mmc/atmel-hsmci.txt | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mmc/atmel-hsmci.txt b/Documentation/devicetree/bindings/mmc/atmel-hsmci.txt new file mode 100644 index 000000000000..0a85c70cd30a --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/atmel-hsmci.txt | |||
@@ -0,0 +1,68 @@ | |||
1 | * Atmel High Speed MultiMedia Card Interface | ||
2 | |||
3 | This controller on atmel products provides an interface for MMC, SD and SDIO | ||
4 | types of memory cards. | ||
5 | |||
6 | This file documents differences between the core properties described | ||
7 | by mmc.txt and the properties used by the atmel-mci driver. | ||
8 | |||
9 | 1) MCI node | ||
10 | |||
11 | Required properties: | ||
12 | - compatible: should be "atmel,hsmci" | ||
13 | - #address-cells: should be one. The cell is the slot id. | ||
14 | - #size-cells: should be zero. | ||
15 | - at least one slot node | ||
16 | |||
17 | The node contains child nodes for each slot that the platform uses | ||
18 | |||
19 | Example MCI node: | ||
20 | |||
21 | mmc0: mmc@f0008000 { | ||
22 | compatible = "atmel,hsmci"; | ||
23 | reg = <0xf0008000 0x600>; | ||
24 | interrupts = <12 4>; | ||
25 | #address-cells = <1>; | ||
26 | #size-cells = <0>; | ||
27 | |||
28 | [ child node definitions...] | ||
29 | }; | ||
30 | |||
31 | 2) slot nodes | ||
32 | |||
33 | Required properties: | ||
34 | - reg: should contain the slot id. | ||
35 | - bus-width: number of data lines connected to the controller | ||
36 | |||
37 | Optional properties: | ||
38 | - cd-gpios: specify GPIOs for card detection | ||
39 | - cd-inverted: invert the value of external card detect gpio line | ||
40 | - wp-gpios: specify GPIOs for write protection | ||
41 | |||
42 | Example slot node: | ||
43 | |||
44 | slot@0 { | ||
45 | reg = <0>; | ||
46 | bus-width = <4>; | ||
47 | cd-gpios = <&pioD 15 0> | ||
48 | cd-inverted; | ||
49 | }; | ||
50 | |||
51 | Example full MCI node: | ||
52 | mmc0: mmc@f0008000 { | ||
53 | compatible = "atmel,hsmci"; | ||
54 | reg = <0xf0008000 0x600>; | ||
55 | interrupts = <12 4>; | ||
56 | #address-cells = <1>; | ||
57 | #size-cells = <0>; | ||
58 | slot@0 { | ||
59 | reg = <0>; | ||
60 | bus-width = <4>; | ||
61 | cd-gpios = <&pioD 15 0> | ||
62 | cd-inverted; | ||
63 | }; | ||
64 | slot@1 { | ||
65 | reg = <1>; | ||
66 | bus-width = <4>; | ||
67 | }; | ||
68 | }; | ||