2014-05-12 20:04:48 +08:00
|
|
|
* Allwinner sunxi MMC controller
|
|
|
|
|
|
|
|
The highspeed MMC host controller on Allwinner SoCs provides an interface
|
|
|
|
for MMC, SD and SDIO types of memory cards.
|
|
|
|
|
|
|
|
Supported maximum speeds are the ones of the eMMC standard 4.5 as well
|
|
|
|
as the speed of SD standard 3.0.
|
|
|
|
Absolute maximum transfer rate is 200MB/s
|
|
|
|
|
|
|
|
Required properties:
|
2016-07-30 22:25:47 +08:00
|
|
|
- compatible : should be one of:
|
|
|
|
* "allwinner,sun4i-a10-mmc"
|
|
|
|
* "allwinner,sun5i-a13-mmc"
|
|
|
|
* "allwinner,sun7i-a20-mmc"
|
2017-07-24 21:59:01 +08:00
|
|
|
* "allwinner,sun8i-a83t-emmc"
|
2016-07-30 22:25:47 +08:00
|
|
|
* "allwinner,sun9i-a80-mmc"
|
2017-01-30 21:27:13 +08:00
|
|
|
* "allwinner,sun50i-a64-emmc"
|
2016-08-05 10:57:14 +08:00
|
|
|
* "allwinner,sun50i-a64-mmc"
|
2014-05-12 20:04:48 +08:00
|
|
|
- reg : mmc controller base registers
|
2014-07-12 18:01:33 +08:00
|
|
|
- clocks : a list with 4 phandle + clock specifier pairs
|
|
|
|
- clock-names : must contain "ahb", "mmc", "output" and "sample"
|
2014-05-12 20:04:48 +08:00
|
|
|
- interrupts : mmc controller interrupt
|
|
|
|
|
|
|
|
Optional properties:
|
|
|
|
- resets : phandle + reset specifier pair
|
|
|
|
- reset-names : must contain "ahb"
|
|
|
|
- for cd, bus-width and additional generic mmc parameters
|
|
|
|
please refer to mmc.txt within this directory
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
- Within .dtsi:
|
2017-11-09 00:27:48 +08:00
|
|
|
mmc0: mmc@1c0f000 {
|
2014-05-12 20:04:48 +08:00
|
|
|
compatible = "allwinner,sun5i-a13-mmc";
|
|
|
|
reg = <0x01c0f000 0x1000>;
|
2014-07-12 18:01:33 +08:00
|
|
|
clocks = <&ahb_gates 8>, <&mmc0_clk>, <&mmc0_output_clk>, <&mmc0_sample_clk>;
|
|
|
|
clock-names = "ahb", "mod", "output", "sample";
|
2014-05-12 20:04:48 +08:00
|
|
|
interrupts = <0 32 4>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
- Within dts:
|
2017-11-09 00:27:48 +08:00
|
|
|
mmc0: mmc@1c0f000 {
|
2014-05-12 20:04:48 +08:00
|
|
|
pinctrl-names = "default", "default";
|
|
|
|
pinctrl-0 = <&mmc0_pins_a>;
|
|
|
|
pinctrl-1 = <&mmc0_cd_pin_reference_design>;
|
|
|
|
bus-width = <4>;
|
|
|
|
cd-gpios = <&pio 7 1 0>; /* PH1 */
|
|
|
|
cd-inverted;
|
|
|
|
status = "okay";
|
|
|
|
};
|