Back to home page

OSCL-LXR

 
 

    


0001 * Atmel High Speed MultiMedia Card Interface
0002 
0003 This controller on atmel products provides an interface for MMC, SD and SDIO
0004 types of memory cards.
0005 
0006 This file documents differences between the core properties described
0007 by mmc.txt and the properties used by the atmel-mci driver.
0008 
0009 1) MCI node
0010 
0011 Required properties:
0012 - compatible: should be "atmel,hsmci"
0013 - #address-cells: should be one. The cell is the slot id.
0014 - #size-cells: should be zero.
0015 - at least one slot node
0016 - clock-names: tuple listing input clock names.
0017         Required elements: "mci_clk"
0018 - clocks: phandles to input clocks.
0019 
0020 The node contains child nodes for each slot that the platform uses
0021 
0022 Example MCI node:
0023 
0024 mmc0: mmc@f0008000 {
0025         compatible = "atmel,hsmci";
0026         reg = <0xf0008000 0x600>;
0027         interrupts = <12 4>;
0028         #address-cells = <1>;
0029         #size-cells = <0>;
0030         clock-names = "mci_clk";
0031         clocks = <&mci0_clk>;
0032 
0033         [ child node definitions...]
0034 };
0035 
0036 2) slot nodes
0037 
0038 Required properties:
0039 - reg: should contain the slot id.
0040 - bus-width: number of data lines connected to the controller
0041 
0042 Optional properties:
0043 - cd-gpios: specify GPIOs for card detection
0044 - cd-inverted: invert the value of external card detect gpio line
0045 - wp-gpios: specify GPIOs for write protection
0046 
0047 Example slot node:
0048 
0049 slot@0 {
0050         reg = <0>;
0051         bus-width = <4>;
0052         cd-gpios = <&pioD 15 0>
0053         cd-inverted;
0054 };
0055 
0056 Example full MCI node:
0057 mmc0: mmc@f0008000 {
0058         compatible = "atmel,hsmci";
0059         reg = <0xf0008000 0x600>;
0060         interrupts = <12 4>;
0061         #address-cells = <1>;
0062         #size-cells = <0>;
0063         slot@0 {
0064                 reg = <0>;
0065                 bus-width = <4>;
0066                 cd-gpios = <&pioD 15 0>
0067                 cd-inverted;
0068         };
0069         slot@1 {
0070                 reg = <1>;
0071                 bus-width = <4>;
0072         };
0073 };