aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/devicetree/bindings/mmc/sunxi-mmc.txt')
-rw-r--r--Documentation/devicetree/bindings/mmc/sunxi-mmc.txt43
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
3The highspeed MMC host controller on Allwinner SoCs provides an interface
4for MMC, SD and SDIO types of memory cards.
5
6Supported maximum speeds are the ones of the eMMC standard 4.5 as well
7as the speed of SD standard 3.0.
8Absolute maximum transfer rate is 200MB/s
9
10Required 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
17Optional 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
23Examples:
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 };