diff options
author | David Lanzendörfer <david.lanzendoerfer@o2s.ch> | 2014-05-12 08:04:48 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-06-03 19:52:34 -0400 |
commit | 3cbcb16095f916f50a5a55066fcc4be06946ce1e (patch) | |
tree | a3eca87f8fb0b3358388a84d726c7c681621b8f3 /Documentation/devicetree/bindings/mmc | |
parent | 1cdf8ee2f88bbc14c697a0b8a2f25f58ed57d591 (diff) |
mmc: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs
The Allwinner sunxi mmc host uses dma in bus-master mode using a built-in
designware idmac controller, which is identical to the one found in the mmc-dw
hosts. However the rest of the host is not identical to mmc-dw, it deals with
sending stop commands in hardware which makes it significantly different
from the mmc-dw devices.
Signed-off-by: David Lanzendörfer <david.lanzendoerfer@o2s.ch>
[hdegoede@redhat.com: various cleanups and fixes]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Chris Ball <chris@printf.net>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mmc')
-rw-r--r-- | Documentation/devicetree/bindings/mmc/sunxi-mmc.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt b/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt new file mode 100644 index 000000000000..91b3a3467150 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt | |||
@@ -0,0 +1,43 @@ | |||
1 | * Allwinner sunxi MMC controller | ||
2 | |||
3 | The highspeed MMC host controller on Allwinner SoCs provides an interface | ||
4 | for MMC, SD and SDIO types of memory cards. | ||
5 | |||
6 | Supported maximum speeds are the ones of the eMMC standard 4.5 as well | ||
7 | as the speed of SD standard 3.0. | ||
8 | Absolute maximum transfer rate is 200MB/s | ||
9 | |||
10 | Required properties: | ||
11 | - compatible : "allwinner,sun4i-a10-mmc" or "allwinner,sun5i-a13-mmc" | ||
12 | - reg : mmc controller base registers | ||
13 | - clocks : a list with 2 phandle + clock specifier pairs | ||
14 | - clock-names : must contain "ahb" and "mmc" | ||
15 | - interrupts : mmc controller interrupt | ||
16 | |||
17 | Optional properties: | ||
18 | - resets : phandle + reset specifier pair | ||
19 | - reset-names : must contain "ahb" | ||
20 | - for cd, bus-width and additional generic mmc parameters | ||
21 | please refer to mmc.txt within this directory | ||
22 | |||
23 | Examples: | ||
24 | - Within .dtsi: | ||
25 | mmc0: mmc@01c0f000 { | ||
26 | compatible = "allwinner,sun5i-a13-mmc"; | ||
27 | reg = <0x01c0f000 0x1000>; | ||
28 | clocks = <&ahb_gates 8>, <&mmc0_clk>; | ||
29 | clock-names = "ahb", "mod"; | ||
30 | interrupts = <0 32 4>; | ||
31 | status = "disabled"; | ||
32 | }; | ||
33 | |||
34 | - Within dts: | ||
35 | mmc0: mmc@01c0f000 { | ||
36 | pinctrl-names = "default", "default"; | ||
37 | pinctrl-0 = <&mmc0_pins_a>; | ||
38 | pinctrl-1 = <&mmc0_cd_pin_reference_design>; | ||
39 | bus-width = <4>; | ||
40 | cd-gpios = <&pio 7 1 0>; /* PH1 */ | ||
41 | cd-inverted; | ||
42 | status = "okay"; | ||
43 | }; | ||